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

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


Thanks alot for your help, Michael. It worked perfectly.


Hi Michael,

I have added a condition (reassigned) and put the condition on the relevant field as you have guided above .

But after that when I am trying to add a catalog task after the approval it is not taking me to my desired way .

to be exact I am unable to create catalog task after  approved state.

please help me on this.

Thanks 

 

 

Hi Michael,

I tried all of the steps you suggested for my custom approval condition ('access granted').  My workflow is stuck nonetheless.  The state properly changes on the approval record, but the workflow will not progress.  Also, we are pulling in approvers from a list field.  Any idea how to incorporate "a anyone to approve" type of function where only one acknowledgment is needed to progress as opposed to an answer from all users?

Sarah

Hi Micheal,

 

How do I use this in an Approval Coordinator? 

In my approval coordinator, I have An "Approval - User" and "Approval - Group" 

Should I add this on each approval and the approval coordinator?

 

Thank you!