Additional Condition on Approval User Activity

Rishi18
Kilo Expert

Hi Everyone,

My requirement is to add another condition like 'Approved' and 'Rejected', called 'Partially-Approved' in the Approval User Activity,

so I have created the condition 'Partially-Approved' 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 =='partially_approved'

Now, when I select approve or reject the workflow goes to the next activity but not when I select Partially Approved in the

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

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

1 ACCEPTED SOLUTION

The workflow approval activity will return Approved or Rejected, regardless of the extra choice.



In your Approval - User workflow activity, you need to switch to a script to monitor results:


Screen Shot 2018-01-23 at 3.00.32 PM.png



Then find the business rule: SNC - Run parent workflows (Approval), and duplicate it.


Change the condition to be: current.state.changesTo('partially_approved')



Test it out


View solution in original post

12 REPLIES 12

Approval Coordinator is a collection of Approval User & Approval Group. The steps in this thread work on Approval User, never got it working on Approval Group, might be a good test.

Hi Michael,

 

I have a similar requirement but I need to check in the "Approval Group" activity whether any user has submitted any other state value than approved and rejected. Can you please help me to understand how it would work for "Approval Group" activity in Workflow.

Abhishek Patil1
Tera Contributor

Can we add current.state == 'approved' in condition does it work ?