locked
Does WF support patterns like Simple Merge And Multi Merge? RRS feed

  • Question

  • Hey

    Im doing a comparison of serveral workflowframeworks. I need to determine which patterns from www.workflowpatterns.com WF supports. The important part is, we are not allowed to extend the framework to implement / simulate these behaviors.

    My first concrete question, for know, is whether WF support the patten "Simple Merge" where two branches merge together. can we compare this to the IfElse contruct? (link: http://is.tm.tue.nl/research/patterns/simple_merge.htm)

    Second. What about multi merge? http://is.tm.tue.nl/research/patterns/download/swf/pat_8.swf. Guess i would be imposible with the standard Sequential workflow since it is single threaded.

    Have anyone created a list that sums up on these patterns in relation to WF?

    Thanks!

    Friday, January 12, 2007 9:19 PM

Answers

All replies

  • From the link for Simple merge it looks like for the examples described I think ListenActivity would correspond better. For instructions on how to use it refer here: http://msdn2.microsoft.com/en-us/library/system.workflow.activities.listenactivity.aspx

    Vignesh

    Friday, January 12, 2007 9:40 PM
  •  Vignesh Kannappan - MSFT wrote:

    From the link for Simple merge it looks like for the examples described I think ListenActivity would correspond better. For instructions on how to use it refer here: http://msdn2.microsoft.com/en-us/library/system.workflow.activities.listenactivity.aspx

    I think you are absolutly right.(Thanks) What about the other?

    Friday, January 12, 2007 9:45 PM
  • No Multi-merge is not supported out of the box. You could write a custom composite activity out of the box to do something like that yourself.
    Friday, January 12, 2007 9:53 PM
    Moderator
  • You could achieve complex patterns like this with the ConstrainedActivityGroup activity in a rule-based fashion.

    As Kavita pointed out though, you could also achieve this through a custom activity.  This would probably be a great activity to upload to CodeProject for workflow:  http://www.codeproject.com/WF/

    Thanks!
    Angel

    Friday, January 12, 2007 10:05 PM
    Moderator
  • Sorry I couldn't think of an OOB activity that would correspond to the Multi-merge pattern. Since you didnt want to extend the framework in any manner, writing your own custom activity to achieve this, I was out of ideas.

    Vignesh

    Friday, January 12, 2007 10:27 PM
  • Hi,

    I am not sure to what WF Version your Reply (Vignesh, Kavita and Angel) refers to but the Multi Merge Pattern (http://www.workflowpatterns.com/patterns/control/advanced_branching/wcp8.php) is definitely possible, also out of the Box. 

    We did some MMP and realized it with the Conditioned Activity Group. You simply have to tailor the Until-Condition to see which branch is finished if it is XOR.

    Greetings,

     

    Mario

    Wednesday, July 13, 2011 2:02 PM