How to pass data in a variable from webapp js to workflow js using postevent
I need to pass variable from webapp js to workflow js , we are using an external signal to trigger the workflow from webapp javascript.
when we use vars.variablename
xtk.workflow.PostEvent('calledWorkflow','signal','', <variables varName= {vars.xyz} />,false)
it shows an error in webapp as it does not allow vars.variablename.
we have also tried ctx variable but in the workflow it is coming as undefined.