Hi Vipul,
I am trying to figure out how to send multiple variables through a signal. I know how to send one through the xml format in the documentation, but sending multiple doesn’t seem to work with standard xml syntax. Are multiple variables supported?
SINGLE VARIABLE
*PostEvent:
vars.name = (‘Lee’);
xtk.workflow.PostEvent("myWorkflow","signal","", <variables varName={vars.name} />,false);
*JS in activity after signal to display variable passed
logInfo(vars.varName);
-----------------------------------------------------------------------
MULTIPLE VARIABLES
Post Event I able to run without failure –however, cannot get it to receive any of the vars on the other side no matter what I try:
vars.firstName = (‘Lee’);
vars.lastName = (‘Cavallo');
xtk.workflow.PostEvent("myWorkflow","signal","",
<variables>
<variables varFirstName={vars.firstName} />
<variables varLastName={vars.lastName}/>
</variables>
,
false);
JS in activity after signal to display variable passed
Nothing seems to work