Additional Condition on Approval User Activity

saikatmitra
Tera Contributor

Hi Team,

My requirement is to add another condition like 'Approved' and 'Rejected', called 'More Information Required' in the Approval Group Activity,

 

so I have created the condition 'More Information Required' in the workflow activity

and added the same in Choices of State field on Approval(sys_approval_approver) table.

 

And in the condition field added : activity.result =='more_info_required'

 

Now, when I select approve or reject the workflow goes to the next activity but not when I select More Information Required in the

approval table record, it gets stuck in the same activity and doesn't proceed.

 

find_real_file.png

 

I am sure I am missing something, I don't know how does the activity.result gets set to the state(like in case of approve and reject)

 

Can someone please help me on this.

 

 

Thanks in advance

 

16 REPLIES 16

This piece of code handles the above mentioned scenario. This is a part. Similar conditions are written for approval and rejection. for (var id in groups) { var group = groups[id]; if (group.more_info_required == 1){ gs.log("answer is :"+answer); answer = 'more_info_required'; gs.log("answer is set :"+answer); }

DirkRedeker
Mega Sage

Hi

YOu may be interested in my new article on this topic:

Article #14 - Additional "Approval - User" Workflow Activity Exit Condition

Let me know if that answers your question and mark my answer as correct and helpful.

BR

Dirk