Get workflow out argument from javascript
How can I pass a variable from my workflow back to my Javascript HTML5 module?

I have a simple workflow which generates an AGS token and saves it in an out argument.

In my Javascript I subscribe to WrokflowCompletedEvent and output the workflow object to console when it has completed. I see the array item of _output that has the "token" key in it but the value is null.

If i insert an alert into my workflow I verify that the "token" out variable indeed has the correct token value before exiting workflow.
So why is the value null or is there a better way to pass a variable back to the javascript client?
0
-
Hello Carlos,
You're doing everything correctly, except the ExitWorkflow activity is causing you workflow to exit without passing your output values. This is why it works if you use the Alert activity.
The ExitWorkflow activity should really only be used when exiting a workflow prematurely (e.g. cancelling).
Regards,
Jon0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar