Workflow Execution Design


Badge +10

Hi all

 

When you create a workflow in visual studio how are the rules executed for an activity with multiple destiantions. At the very end of my workflow, I have an activity with one IPC event and the activity has multiple users. I have found a problem where the IPC is only executed for one user and when that is complete the workflow is complete therefore IPC is not called for the other users. I have got round to this by placing another placehoder activity after this activity but I would like to know what the order of execution is for workflow rules if it has multiple destinations and set to plan all at once.

 

Thanks

 

 


3 replies

Userlevel 5
Badge +18

If possible, please add some additional details as to how this is currently configured and what you are attempting to achieve. 


 


Are you by chance, attempting to perform some sort of looping as documented in:


 


http://help.k2.com/helppages/k2blackpearlUserGuide4.6.4/Plan_Per_Slot_-_No_Destinations.html


http://help.k2.com/kb000685


 


If so, a similar behavior that may occur with this configuration; in which case a Succeeding Rule will need to be added as documented:


 


http://help.k2.com/helppages/k2blackpearlGettingStarted4.6.7/webframe.html#Multiple_slots_created_but_not_executed.html

Badge +7

Hello


 


Could you please provide us with the rules that you have set in your process. If the destination rules and the process rules are not set correctly then that can lead to this behaviour.


 


Regards


Nelly

Badge +10

Hi tin

 

I've read throught the documents and it I am not using plan per slot. I am currently using the same configuration for my other activities and they all work. The only difference between the activities that work is that they have a client event in the activity. This activity does not have client event. It only has one IPC call as an event.

 

Activity with multiple destinations. The destiantion is set from a smartobject list method that returns a list of FQDNs.

Plan all at once.

Create a slot for each destination

Activity contains one ipc event.

The issue is that the IPC is only getting called for the first user returned by the list.

 

Thanks

 

 

@Update: I seems that if you set the IPC call as synchronous then the IPC event is executed for all destiantion users. I think this could be a bug. I would like the IPC event to be asynchronous if possible so that if the IPC process fails for whatever reason then the main process will not fail. Since the IPC process only send out notifications, its not critical to the running of the main process. 

 

 

 

 

Reply