postEvent using

Avatar

Avatar

alexandred77684

Avatar

alexandred77684

alexandred77684

07-09-2017

Hello Community.

Could you tell me how we can use postEvent to call Signal from Javascript activity with parameter, plesae ?

What is the syntax to call signal with several parameters ? 

xtk.workflow.PostEvent('OTHER_WORKFLOW','SIGNAL','','?????WHAT IS THE SYNTAX?????', false);

What is the syntax to use varaiables after postEvenet, in OTHER_WORKFLOW  ?

vars.XXXX  or vraiables.XXXX or other ?

Thank you for you support.

BR.

Alexandre

View Entire Topic

Avatar

Avatar

LeonieSwart

Avatar

LeonieSwart

LeonieSwart

09-10-2018

This isn't working for me.

How do you access the variables parameter from the postEvent?

I tried the exact same as you described in the solution marked answer but it's returning undefined.

I find it strange the vars.myName variable is reassigned to the varName variable inside the variables. But when you would call it, you still call on vars.myName. So why reassign it in the first place?

I tried calling vars.varName and vars.myName and variables but nothing seems to be returning the wanted result.

Screen Shot 2018-10-09 at 10.39.46.png

Screen Shot 2018-10-09 at 10.40.11.png

Screen Shot 2018-10-09 at 10.40.22.png

I am currently working on build 8863.

Kind regards

Leonie