Workflow Condition on Catalog Task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2010 03:30 PM
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
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2010 08:46 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2010 09:08 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2010 09:17 AM
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 !