Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] tctl does not allow signaling a workflow with more than one input #344

Closed
antmendoza opened this issue Jan 9, 2023 · 0 comments · Fixed by #356
Closed

[Bug] tctl does not allow signaling a workflow with more than one input #344

antmendoza opened this issue Jan 9, 2023 · 0 comments · Fixed by #356
Labels
bug Something isn't working

Comments

@antmendoza
Copy link
Member

What are you really trying to do?

Send a signal to a workflow, one the signal method has more than one parameter.

According to the documentation https://docs.temporal.io/tctl-next/modifiers#--input
Pass input for the Workflow. Input must be in JSON format. For multiple JSON objects, pass each in a separate --input option.

When I try to signal a method with more than one parameter, the signal method only gets the last parameter (as the first parameter)

Tested with versions 1.17.2 and current

Describe the bug

Minimal Reproduction

Signal method:

@Override
    public void signalMethod2(String param1, String param2, String param3) {

      System.out.println("signalMethod2 param1 " + param1);
      System.out.println("signalMethod2 param2 " + param2);
      System.out.println("signalMethod2 param3 " + param3);
    }

Tctl command:

❯ tctl workflow signal --workflow_id 2b17fdca-3f5a-4906-8dde-c285f52be461 --name signalMethod2 --input \"hi\" --input \"hello\"  --input \"you\"

Console output:

signalMethod2 param1 you
signalMethod2 param2 null
signalMethod2 param3 null


Environment/Versions

  • OS and processor: [e.g. M1 Mac, x86 Windows, Linux]
  • Temporal Version: [e.g. 1.14.0?] and/or SDK version
  • Are you using Docker or Kubernetes or building Temporal from source?

Additional context

@antmendoza antmendoza added the bug Something isn't working label Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant