Expand my Community achievements bar.

SOLVED

external signal activity

Avatar

Level 2

Hi All , 

Willing to learn in depth working and functionality  of "External Signal" Activity , i have gone through official document link

"https://experienceleague.adobe.com/en/docs/campaign-classic/using/automating-with-workflows/flow-con..."

Can someone please provide a link or reference where i can learn more.

Thanks in advance.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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:

ParthaSarathy_0-1735905102117.png

Workflow-2:

ParthaSarathy_1-1735905212381.png

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 

 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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:

ParthaSarathy_0-1735905102117.png

Workflow-2:

ParthaSarathy_1-1735905212381.png

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 

 

Avatar

Level 2

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

Avatar

Community Advisor

@at7140 , Only thing is you need to make sure that the target workflow where you use external signal activity should be in started state.