Dividing Huge workflows

  • 13 April 2016
  • 4 replies
  • 0 views

Badge +5

Hello,

I have a case where my workflow is complex and have a lot of actions, so I decided to divide it to separated workflows, but I read that I can't start workflow on the same item while another workflow is running on it, and that's logically right, I'm not sure how to do this, I tried this:

Start Workflow.png

But this does not work, I need to stop the current workflow and starts another instance with another workflow, if I reversed the actions and stops the workflow before start the other workflow, it will never reach to start the new workflow instance. Any help please.

Thanks


4 replies

Userlevel 5
Badge +14

you can run several instances of different workflows on the same item at the same time.

you can not run two instances of the same workflow on the same item at the same time.

so if you have workflows w1 and w2 defined on a list you can run both of them in the same time. but you can not run 2 instances of w1 nor 2 instances of w2 at the same time.

Badge +5

Thanks Marian,

Okay, now I got it, what I want, when I run the second workflow on the item from the first workflow, I need to stop or terminate the first one, I tried stop it from the second workflow using the action end workflow, but when I tried to run the first one from the second one again, it makes error. I have a case where I want to keep going in some cases from workflow one to workflow two, and then back from workflow two to workflow one, I'm not sure how to do this. If you can help me I will be thankful.

Userlevel 5
Badge +14

inĀ  the start workflow action there is an option "Wait for the workflow to complete before continuing".

if you set it not to wait for spin off workflow, it will continue with next action.

reg. flipping between the two workflows, it's basically possible but will have to ensure somehow you are not trying to start if it's already running. if start another workflows if last action you might be satisfied with some pause. if it is not last one you will have to find some more robust logic, eg. to check workflow status column from list item.

Badge +5

Thanks for your help, your conversation bring up to me another logic without flipping between the workflows.

Reply