Bypass the activity if the Approver is also the Requestor


Badge +1

Hi Guys,


 


I'm quite new in K2 development. My question is, how to bypass an activity or automatically go to next activity if the approver is also the requestor? 


 


Here's the scenario:


 


The requestor (manager 2) submitted a form. The form will go to the 1st approver (manager 1) to take an action. If the manager1 approve the form, the task will go the 2nd approver (manager 2), since the requestor is also the 2nd approver (manager 2) it should be automatically approve and go to the next approver (manager 3). 


 


Is it possible to be done using out of the box?


 


Thanks and regards,


lakandula


2 replies

Badge +4

Hi lakandula,


I would accomplish this requirement with line rules.


- Make two lines from the preceding activity. One that goes to the 2nd approver, one that goes to the 3rd approver.


- In the line rules, you can compare the originator (workflow context browser) to the destination user. For one of the line rules, it will evaluate true, the other false. (Find the line rule by right clicking on a line and selecting properties. From here, select the "Line rule" tab)


This would bypass the 2nd approval as necessary.


HTH,


Tyler

Badge +1

Hi Tyler,


 


I already considered your suggestion. I'm just wondering if there's any other way for that scenario.


Thanks Tyler


 


regards,


Lakandula

Reply