Workflow and ServiceDesk Community

 View Only

 Looping change order workflow tasks

Steve Carle's profile image
Steve Carle posted Nov 24, 2021 01:37 PM

Hi everyone,

 

I’m new to this forum and am hoping that I’m posting this in the right spot and that someone will be able to help me. Additionally, I’m brand new dealing with Workflows and SPEL code.

 

We are using SDM 17.2 and Classic Workflows. Here is what I’m trying to do:

 

A Change Order is created with a certain Category which in turn creates workflow tasks to advise our quality control team that they can start their part and then to track the results:

- Task sequence 100 is automatically set to Pending status. Once it is set to “Ready”, it starts Task sequence 200.

- Task sequence 200 has a few statuses but the one that I’m having an issue with is “Failed”.

 

When Task sequence 200 is set to “Failed”, I would like to have the tasks reset. In other words, Task sequence 100 goes back to “Pending” and Task sequence 200 goes back to “Wait” for the process to basically loop.

 

I’m hoping that someone would be able to point me in the right direction and maybe even help with the SPEL macro that I would have to add to the “Failed” true condition to reset the statuses of both tasks.

 

Thank you for your time and your help.