cancel
Showing results for 
Search instead for 
Did you mean: 

Review Approve Custom Workflow

tomoconnell
Champ in-the-making
Champ in-the-making
I have been struggling to find a work around for a problem for awhile and have been trying different solutions with no luck. I thought I might as well write up

I have a custom workflow that on approval will make a copy of the reviewed document as a .pdf in a separate directory. No problems here.

On rejection however it gets the version history of the document and rolls it back to the previous version. This works also.

The problem however is when the document is rolled back, the script that starts the workflow will retrigger, creating a new workflow.


I've dealt with this in other workflows but in this situation I can't think of a aspect or anything to check for in the starter script.
I'm currently messing around with workflow variables to try set a var if the workflow is rejected and then test for this in the starter script.

Any help would be greatly appreciated.

3 REPLIES 3

yogeshpj
Star Contributor
Star Contributor
Please try to set some aspect on document instead of setting a varialble in workflow if document is rejected in workflow.
Check that aspect value in your starter script.

tomoconnell
Champ in-the-making
Champ in-the-making
What would the benefit of using a aspect over a variable be?
Cheers.

bikash
Champ in-the-making
Champ in-the-making
I am trying to create a custom workflow with 3 stage.
1. Submit
2. Review
3. Approve
there are 3 types of user in the repository 1 is creator who creates the content after that a automatic workflow should be triggered send a notification to reviewer of the same group t review. Review Approves the content then the notification goes to Approver of the for final approving.

reviewer and approver can reject and request modification.

Please suggest the best creating this custom workflow.