-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Read event inputs in next activity? #5306
Comments
To read the "input" field of an event triggered using the API, you should ensure that the input is being passed correctly and that the JavaScript expression used to access the input is valid. The expression However, the error "Cannot read properties of null" suggests that at some point, the input being accessed is Here are a few steps you can take to troubleshoot this issue:
If you provide the version of Elsa you are using and more details about the workflow definition, I might be able to give you a more precise answer. This comment was generated by Glime. |
Hello, Have you made any progress with this?
...and then triggered like this
|
@Muhammad-1990 That works for you? I have tried so many different things and the set variable activity just doesn't work, including your method above. Difference for me is that I have a flowchart workflow instead of a sequence and the payload is not dictionary but a complex type. |
Is there any smooth way to the read the "input" field of an Event triggered using the API?
At the moment I use
getInput("__EventPayloadWorkflowInput")
. This returns the object of the "input" field, but the Activity faults."Cannot read properties of null". Which is strange, because the WriteLine activity outputs the correct value, but the Activity still faults.
The text was updated successfully, but these errors were encountered: