Expand my Community achievements bar.

SOLVED

Paralel / serial execution

Avatar

Community Advisor

Hi all,

we have one old workflow which receives a parameter, query recipients table, update one flag and send notification via continuous delivery. Recently, there were around 400 simultaneous invokes with different parameter and we noticed that AC waiting to query all 400 recipients and update flag and then send notification. This causing a big delay in notifying customers.

Untitled.png

Any idea how to ensure that process query first recipient, update flag, send notification and then start again with new recipient? I am open for ideas how to completely redesign this workflow based on your good practice.

 

Cheers,

Milan

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @Milan_Vucetic ,

In case you are triggering this external signal from a webApp. You can directly update the recipient schema from an API call and then trigger the email via nms.delivery.QueueNotification  or submitNotification functions via JS.
Documentation available here https://docs.adobe.com/content/help/en/campaign-classic/technicalresources/api/sm-delivery-SubmitNot...
https://docs.adobe.com/content/help/en/campaign-classic/technicalresources/api/sm-delivery-QueueNoti...


If you are triggering this from another workflow then you can go for a sub-workflow which will update the data and then trigger an email.

https://blog.floriancourgey.com/2018/07/sub-workflow-activity-in-adobe-campaign

 

Let me know if that helps.


     Manoj
     Find me on LinkedIn

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hello @Milan_Vucetic ,

In case you are triggering this external signal from a webApp. You can directly update the recipient schema from an API call and then trigger the email via nms.delivery.QueueNotification  or submitNotification functions via JS.
Documentation available here https://docs.adobe.com/content/help/en/campaign-classic/technicalresources/api/sm-delivery-SubmitNot...
https://docs.adobe.com/content/help/en/campaign-classic/technicalresources/api/sm-delivery-QueueNoti...


If you are triggering this from another workflow then you can go for a sub-workflow which will update the data and then trigger an email.

https://blog.floriancourgey.com/2018/07/sub-workflow-activity-in-adobe-campaign

 

Let me know if that helps.


     Manoj
     Find me on LinkedIn

Avatar

Community Advisor
Hi @_Manoj_Kumar_, thanks for the hint. I have redesigned workflow and now have everyting in one JS node (quering, updating and notifying with submitNotification). Adobe does not recommed it for large voulmes as it is developed for maximum of several calls per minute but it will work in my case. Regards, Milan

Avatar

Level 6

Hi Milan,

I think the external signal invoking is asynchronous and that will probably result in triggering the workflow again and again even before it is completed.

Think of a solution to handle that.I am not aware of what exactly you are trying to do there, so cant really comment.

you can use session write and later run the workflow every one or two minutes to send notification