Menu

insert subflow anywhere in the flow

2006-02-15
2013-04-25
  • Nobody/Anonymous

    Hi,

    Let me introduce my question with a use case:
    I have a really simple workflow definition :
    ...
    <set participant="alice">
    <set participant="bob">
    <set participant="charly">
    ...
    I launch a flow? I am on  alice activity
    I want to add this subflow
    <set participant="alpha">
    <set participant="bravo">
    BUT AFTER the bob activity.

    How Can I proceed.

    A concrete application is for example :
    On a simple flow :
    Begin - Ask - implementation - end
    I have evaluate a critical activity. I am on the Ask step, after this step, it's normally the implementation step. I want to modify the flow of my instance in order to add a validation step after the implementation step.

    Thanks for your help.

    Noraddine BARAKA

     
    • Nobody/Anonymous

       
    • Nobody/Anonymous

      next time : help forum.

       
    • John Mettraux

      John Mettraux - 2006-02-15

      Hi Anonymous, yes, it's rather a help question that an "open discussion". Good tip on 'eval'.

      Noraddine,

      I would see two ways to achieve what you want. But first saying "insert subflow" is not the OpenWFE way.

      1). you could leave some room for subflows, where they should pop up.
      2). you could make your flow completely iterative and changing at each iteration, and I'm talking about runtime, not design time (that's good, because that's want you want).

      1).
      <sequence>
        <nora-participant nref="x" />
        <nora-participant nref="y" />
      </sequence

      <process-definition name="nora-participant">
        <sequence>
          <participant ref="${nref}" />
          <if>
            <defined field="eval_more" />
            <eval field="eval_more" />
          </if>
        </sequence>
      </process-definition>

      2).

      <loop>
        <eval field="to_eval" />
        <until>
          <equals field-value="break" other-value="true" />
        </until>
      </loop>

      Best regards,

      John

       

Log in to post a comment.