How to Setup Multiple Destinations within an Activity within K2.net 2003 Studio

  •  06-03-2007, 4:29 PM

    How to Setup Multiple Destinations within an Activity within K2.net 2003 Studio

    An often overlooked out-of-box feature of K2 is the ability to have multiple destinations for an Activity.  Furthermore, the actual destination(s) used can be controlled by a set of rules.

     

    K2.net 2003 Studio provides the facility to easily create multiple destinations within an Activity Destination Rule.  Rules can then be setup on the individual Destinations to dictate when each destination is used as the basis for that activity assignment.  This permits one activity to be surfaced to potentially many different groups of users when the only thing that differs in the business process logic is the user assignments.  This should significantly ease maintenance since the number of activities is reduced by removing the need to create virtually identical copies of the activity to satisfy the need to handle different assignments.

     

    Please note, that if you are using custom code in the Activity Destination Rule, the techniques here may not necessarily be required as the determination of user assignment would most likely be handled via code.

     

    Below are step-by-step instructions showing how this can be accomplished within K2.net 2003 Studio.

     

    -          Right click on an activity and select Properties

    -          Select “Destination Rule”

    -          Create 2 (or multiple) destinations

     

    -          Right click on one of the first destination (‘Sales’ in this example) and select “Modify Rules”

    -          You should now see the rules dialog around destination routing logic

     

    -          Click the Add button to create the new rule

     

     

    -          Click Ok to save rule

    -          Click Ok again to close the Rules dialog

    -          Repeat steps for all destinations

     

     

    Note:

     

     

     

    Notice the “All True” and “First True” radio buttons on the Destination Rule dialog.  This is only enabled when there are multiple destinations.  This means that K2 will either assign the task to all destinations that meet their corresponding rules as set here, or just the first destination that satisfies its rule.


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
    Filed under: ,
View Complete Thread