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.
解決済! 解決策の投稿を見る。
トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。
表示
返信
いいね!の合計
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
表示
返信
いいね!の合計
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
表示
返信
いいね!の合計
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
表示
返信
いいね!の合計
@at7140 , Only thing is you need to make sure that the target workflow where you use external signal activity should be in started state.
表示
返信
いいね!の合計