You are viewing limited content. For full access, please sign in.

Question

Question

queue workflow instance

asked on March 19, 2017 Show version history

My problem is when a user starts multiple instances of a business process that has an email task and each instance sends like 100 emails, the instances overlap because each email taking a long time.

and this cause some email tasks fail to send with operation timeout error.

is there a way to queue the email task across multiple PB Instances, or queuing the entire PB instance.

0 0

Replies

replied on March 21, 2017

Hi Ayman.

What if instead send an email each time , you use a workflow for this task.

For example yo have a BP and in that process you insert in to SQL Table with the following data:

fields :"to", "cc", "subject", "body" and also you need to have a field for control you can add "send" as boolean when you send the email change the "send" value to "1" if is not send change the value to "0"

The workflow that will send emails maybe can look like this:



with a every 15 minutes shedule. that will be a relief for your SMTP.

Let me know if this help you.

Regards!











 

0 0
replied on March 21, 2017

thank you, we already tried creating web service to do that after saving to SQL but I'll try using BP instead of web service and I will let you know.

because we have custom HTML format for each PB Email body and after retrieving it from SQL I'm not sure about the output

I was hoping there is a better way from inside the workflow administration console as there is already an option to run only one instance at a time, maybe Laserfiche can add the feature of running instances of PB in a queue.

0 0
replied on March 21, 2017

Hy Ayman

I get your point, about the outpot do not worry just give it a format on token editor (right click "token editor") and that´s it.



Regards!!

 

0 0
replied on March 23, 2017

I test it and it's working fine thank you. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.