Skip to main content

Dears


I have the follwoing Situation


i have 3 activities A, B and C. Each has three Actions and Three Outcomes: Approve, Return And Reject.


All of these activities has 3 destination users and all have "Create a slot for each destination"


here is the scenario


1. All the users approved Activity A : this takes us to activity B.


2. Two users Reject Activit B While one users returns it.


The strongest of all Actions/Outcomes is the return; How to implement that in k2 and where.

If the number of destinations are known at design time, you can check in the Outcomes/Succeeding rule, select the if at least 2 = Approved in your example. If the number of approvers are not known at design time, using the UI might be tricky. I think the easiest would be to edit the code for the Succeeding rule to check the number of approvers vs number of selected Actions and see when you reach a continue stage, i.e. where ApprovedActions.Count > (Destinations.Count / 2).


Reply