Parent workflow waiting for child workflow to complete?

Parent workflow waiting for child workflow to complete?

Post by Eske » Sat, 22 Aug 2009 17:52:26


Hi,
Does anyone know a way of getting a MS CRM 4.0 workflow to wait for a
child workflow to finish?

I have a rather long workflow in which the same rutines (checks and
assignments) appear again and again. To ease future maintenance I
would like to move these rutines into a child workflow but I then
need the parent flow to wait for the child flow to finish before the
parent flow continues I thought of controlling this using some sort of status attribute on
my entity, having the subflow setting the attribute and the parent
flow waiting for it to be set. Unfortunately this will not work since
there might be several instances of the main flow running on the
entity simultaneously, so I will not know which of the flows set the
attribute.

Hoping to hear some good ideas from you,
Mette
 
 
 

Parent workflow waiting for child workflow to complete?

Post by TUQ » Sun, 30 Aug 2009 03:50:01

You may want to consider splitting your parent workflow into 2 parts. The
First will run up until it calls your existing Child Workflow rule. The 2nd
part (the steps in which you want to execute after the Child Workflow rule is
finished) could be saved as a Child Workflow as well. Then you could call
the 2nd part at the end of your child workflow rule.

--
MD





> would like to move these rutines into a child workflow but I then >> need the parent flow to wait for the child flow to finish before the >> parent flow continuesgt; > I thought of controlling this using some sort of status attribute on> > my entity, having the subflow setting the attribute and the parent> > flow waiting for it to be set. Unfortunately this will not work since> > there might be several instances of the main flow running on the> > entity simultaneously, so I will not know which of the flows set the> > attribute.> > > > Hoping to hear some good ideas from you,> > Mette> >