Workflow Condition on Catalog Task

koxon
Kilo Explorer

Hi,

I would like to have a condition in my task based on the close state of the task.
If the task is close complete I would like to continue the workflow normally, however, if the state is "close incomplete" or "close skipped" I want to end the workflow.

I added two conditions to my task:
- If Close complete -> continue normally
- Else -> End the workflow

I tried many syntax to match the state field of the task (task.state == 3 ; State == 3 ... etc) ... without success. As this is not documented (again), I don't want to waist my time and I ask here for help.

Could you please tell me how I can have a condition on the closing state of my task ?

Thanks

7 REPLIES 7

rosa8
Mega Contributor

Did you figure this out? I'm looking for a similar solution. If the task is closed complete, I need a notification to go to the user. If the task is canceled the notification step can be skipped.
Thanks,
Rose


rosa8
Mega Contributor

I resolved this by removing the always condition and adding the following on the catalog task in the workflow...

Closed Complete
Condition: activity.result == '3'

All Other
Else: true


koxon
Kilo Explorer

Thanks for the reply. That is a great solution. I will try to implement it.

I found a solution as well but using a "if" statement after the TASK that will check the state of the previous task ...
A workaround that I didn't like.
Hopefully this will make things cleaner.

I hope they will decide to document this as this is crucial in a workflow ...

Thanks again !