Skip to main content

Hi,


I am to create a Workflow in which there is an activity that needs a variable number of destination.


My (much) simplified need :


My Workflow contains 3 steps : "Init", "DoSomething" and "End"


While in step "Init", the user selects one or more people from a list.


The selected people (stored in a smartobject) will then be the destination users of the following step "DoSomething".


The "End" activity is reached when all the destination users have done something in the "DoSomething" step.


 


I thought I knew how to do this, by making a slot for each destination and implementing a succeeding rule based on the number of users who have finished their task.


But I don't know how to create a destination for each guy listed in my field from the smartobject.


I tried to look at the code of the destination rules but saw nothing of interest.


 


Do you know if what I am trying to do is possible ?


How ?


 


Regards

Just found what I missed -_-


To make dynamic destination rules with multiple users, there are three ways :




  • SmartObject Method
  • Make an XML Field containing the users
  • Use the inline text function "split"


 


Sources :


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


http://www.k2underground.com/blogs/johnny/archive/2011/09/07/k2-4-5-tip-of-the-day-destination-rules.aspx


That merill.net link is gold, thank you!

 


@NunurZ wrote:

Just found what I missed -_-

To make dynamic destination rules with multiple users, there are three ways :

  • SmartObject Method
  • Make an XML Field containing the users
  • Use the inline text function "split"

 

Sources :

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

http://www.k2underground.com/blogs/johnny/archive/2011/09/07/k2-4-5-tip-of-the-day-destination-rules.aspx


 


Reply