User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:workflow_examples [2016/04/11 18:15]
joebordes
en:workflow_examples [2016/09/10 02:01] (current)
Line 22: Line 22:
 {{ :​en:​corebos:​workflow:​ticketwfinformandclose02.png?​800 |}} {{ :​en:​corebos:​workflow:​ticketwfinformandclose02.png?​800 |}}
  
-The important parts here are the 3 day delay in sending and the additional condition. When an email task is evaluated, in this case when the ticket enters "Wait for Response"​ status, it is automatically put in a queue for it to be sent. Once in the queue it will ALWAYS be sent. In this case we tell the system to send it 3 days from "​now"​ so we get our 3 day offset BUT when the day comes we may not want to send it anymore because the ticket has had some changes. In this case we have to add additional conditions on the email itself to detect this case and abort the email if it shouldn'​t be sent. The condition I use is the "more than hours before"​ on the modified time and also that the status is still "Wait for Response"​. It is possible that just with the last condtion ​we could have enough.+The important parts here are the 3 day delay in sending and the additional condition. When an email task is evaluated, in this case when the ticket enters "Wait for Response"​ status, it is automatically put in a queue for it to be sent. Once in the queue it will ALWAYS be sent. In this case we tell the system to send it 3 days from "​now"​ so we get our 3 day offset BUT when the day comes we may not want to send it anymore because the ticket has had some changes. In this case we have to add additional conditions on the email itself to detect this case and abort the email if it shouldn'​t be sent. The condition I use is the "more than hours before"​ on the modified time and also that the status is still "Wait for Response"​. It is possible that just with the last condition ​we could have enough.
  
 The 4 day offset email is identical but with the 4 day numbers. The 4 day offset email is identical but with the 4 day numbers.
  
 The [[en:​scheduled_workflows|scheduled workflow explanation has a nice image explaining]] the "more than" condition. The [[en:​scheduled_workflows|scheduled workflow explanation has a nice image explaining]] the "more than" condition.
 +
 +The **second workflow** is a scheduled workflow that launches once a day looking for inactive tickets and closing them after sending and email. That will be two task, and **update field** task to change the status and an **email task** to send the email. This looks like this:
 +
 +{{ :​en:​corebos:​workflow:​ticketwfinformandclose03.png?​800 |}}
 +
 +{{ :​en:​corebos:​workflow:​ticketwfinformandclose04.png?​800 |}}