Parallel Approval scenario

  • 23 September 2010
  • 1 reply
  • 4 views

Badge +1

Hi,


We are getting list of users from database and passing to K2 as xml fields. Not using any Group/K2-Roles.


Consider scenario, I have two xml fields of users- XML01 and XML02 added as destination user. I need one guy from XML01 and one guy from XML02 to take action Approve to proceed. If anyone Rejects it follows reject path. How to achieve this by single Activity?


I have tried, all destination rule options and found options to create slots for all users. But couldn't treat XML01 as slot-01 and XML02 as slot-02. Creating different destination set also didn't helped.


xml used to hold user is as follows for reference.


<UserList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <User>DomainTeamMember01</User>
  <User>DomainTeamMember02</User>
  <User>DomainTeamMember03</User>
</UserList>


If have any solution for this please guide. I can achive this with multiple activities, but looking option to complete in a single activity with less coding.


Thanks, Vinoy S 


1 reply

Badge +6

( http://merill.net/2010/06/dynamically-setting-multiple-activity-destinations-in-k2-with-asp-net/)


Hope you prepared Destination xml (UserList) and assigned to destination users in Wizard (ref above link)


 



  1. Step 1: Destination Rule Options – All At Once
  2. Setp 2 : select "Create a slot for each destination "& select "Resolve all roles and groups to users"

In Configure Outcomes


Set "At Least 1 of Action Results = Cancel.


/JP


Reply