I want to create a workflow which verify if the status of the selected object is "TCM Released. Either status is "TCM Released" and nothing is done, or status is different of "TCM Released" and status becomes "TCM Released"
In joined file, you can see my workflow and the handler associated to the task to verify status of the selected object.
In all test, the steps of workflow are : Start - task1 - ouFinal - Finish. It's never pass by step ToReleased.
Thanks by advance for your help.
Solved! Go to Solution.
release_status_list is a typed reference. I dont think you can check for a value using a validation task? You would have to compound release_status_list ReleaseStatus.name property.
I think you need to create a query, based on the class of your ItemRevision with a clause of:
release_status_list.name = TCM Released.
Put this query in a condition task.
Append the query name with "__" so that it doesnt show up for users, only DBAs.
Remember, you will have to modify the scope to all, any or none and control what the targets are when the query is executed.
attached are 2 screenshots.
I do this type of checking in my Workflows. It's pretty simple actually.
Just use the EPM-check-target-status WF handler in a Validation Task and route it successfully if passed and set the error path to your alternate task to assign the status.
Or simpler yet, use the same handler in your Start task to block the WF right from the start if it doesn't have the status.
There are a number of ways to check status and perform an action if the target doesn't comply.