views:

33

answers:

1

Is there a way to control (e.g., prioritize) the order in which SharePoint workflows (not workflow activities, but entire workflows) are being executed?

The set of workflows for a SharePoint list consists of workflows that are either created using SharePoint Designer or are custom workflows installed via WSP. We would like to guarantee that certain workflows (e.g., workflows which compute values for some of the fields) are executed before the rest of the workflow run (e.g., workflows that copy the data).

A: 

If this works for you, you can instead say workflow 1 to run workflow 2.

You can download Start Another Workflow activity to use in your designer workflows.

Janis Veinbergs
I thought about that. Unfortunately, I don't know what other workflows need to be executed at design time. And I would have to be able to modify all workflows in that fashion. What guarantees do I have that workflow 2 will not be called again or will be called before workflow 1?
Philipp Schmid
It's just an activity - you call whatever workflow you like on whatever conditions. 'If value > 1, call wf 5 else just finish.'
Janis Veinbergs
Assume that a list has currently 3 workflows associated with it: w1, w2, and w3, and let's assume i need to execute w3 before any other ones. How can I make sure that w3 is run first? I assume the SharePoint runtime selects the order, no? I know I can write w4 which calls w3, then w2, then w1. But what if the user adds w5, or removes w1, then I will have to modify w4 to account for that change, something we would need to automate.
Philipp Schmid
Yes, your point is correct, that's not an automated solution.
Janis Veinbergs