Hi All ,
Willing to learn in depth working and functionality of "External Signal" Activity , i have gone through official document link
Can someone please provide a link or reference where i can learn more.
Thanks in advance.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @at7140 ,
Lets say you want to execute the second workflow only after running the first workflow, you can use postEvent script and external signal activity to trigger the second workflow.
Example,
There are 2 workflows, where Workflow-1 is a master workflow used to update records in database. Once the update is done, Workflow-2 needs to get started and send communication.
Workflow-1:
Workflow-2:
In this case, In workflow-1 JavaScript code activity, call the second workflow using below postEvent script,
xtk.workflow.PostEvent("workflow_internal_name", "internal_name_of_signal_activity", "", "", false);
Note: Workflow-2 should be in started state.
Now when the Workflow-1 runs and once the update is done, the postEvent JavaScript will trigger the signal activity in Workflow-2 and the delivery will get triggered.
And if a variable need to be transferred from Workflow-1 to workflow-2, configure the script as below,
xtk.workflow.PostEvent("workflow_internal_name", "internal_name_of_signal_activity", "", <variables mobile={vars.mobile} email={vars.email} />, false);
To explore more on postEvent, Refer this document
Views
Replies
Total Likes
Hi @at7140 ,
Lets say you want to execute the second workflow only after running the first workflow, you can use postEvent script and external signal activity to trigger the second workflow.
Example,
There are 2 workflows, where Workflow-1 is a master workflow used to update records in database. Once the update is done, Workflow-2 needs to get started and send communication.
Workflow-1:
Workflow-2:
In this case, In workflow-1 JavaScript code activity, call the second workflow using below postEvent script,
xtk.workflow.PostEvent("workflow_internal_name", "internal_name_of_signal_activity", "", "", false);
Note: Workflow-2 should be in started state.
Now when the Workflow-1 runs and once the update is done, the postEvent JavaScript will trigger the signal activity in Workflow-2 and the delivery will get triggered.
And if a variable need to be transferred from Workflow-1 to workflow-2, configure the script as below,
xtk.workflow.PostEvent("workflow_internal_name", "internal_name_of_signal_activity", "", <variables mobile={vars.mobile} email={vars.email} />, false);
To explore more on postEvent, Refer this document
Views
Replies
Total Likes
Hi @ParthaSarathy ,
Thanks for explanation , Do we have any limitation/s or best practice of this activity i should take care while using , adding this will give me more brief idea.
Thanks
Views
Replies
Total Likes
@at7140 , Only thing is you need to make sure that the target workflow where you use external signal activity should be in started state.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies