how to add approval states other than approve or reject in workflow????

suprakash
Giga Expert

I have added a state in sysapproval_approver named review

I have attached an image in which you can see that I have added a state named review in the aproval activity.   when i am changing state in approval table to Approved or rejected the flow is going fine in the workflow. But the problem is when i am changing the state to review the flow is not working .

I given the condition in the workflow activity for state review activity.result == 'reject-review'

'reject-review' is the value of the state   review that I added in approval table

1 ACCEPTED SOLUTION
11 REPLIES 11

Venkateswarlu K
Mega Guru

Hi Suprakash


If u want to add the new condition just right click on the what ever the activity u would like to add and select a   add condition shown in below figures u can please go through thisScreenshot from 2017-04-04 15_04_25.pngScreenshot from 2017-04-04 15_07_36.png


i hope this will helps to u


Daniel Peel
Mega Sage

Is there an updated link... that doesn't work in Docs and I can't find any articles when I search around the wording of that article. 

Here are 2 relevant links for managing workflow activity conditions.

 

Manage transitions between workflow activities

Manage workflow activity conditions

 

When the Approval Activity is processed, it returns the Approval.State value as "activity.result". This value is referenced in the Activity Conditions. If you want to add a custom value, you would need to first add the value to the Approval.State [sysapproval_approver.state] choice list, and then add an Activity Condition to compare the "activity.result" value against the custom value (as shown above in the screen shot).

For example, if your custom State value was Review [review] then the Activity Condition script would be:

activity.result == 'review'