Kris, how hard would it be to implement this ?<br><br><div class="gmail_quote">On Mon, Aug 15, 2011 at 5:53 PM, Kris Verlaenen <span dir="ltr">&lt;<a href="mailto:kverlaen@redhat.com">kverlaen@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Antoine,<br>
<br>
While we would like to support all constructs as defined in the BPMN2 specification, we currently do not support the OR gateway yet.  Since it is a rather advanced construct (especially if you start using it in combination with (unstructured) cycles), we in general recommend users to try and avoid this complexity by trying to remodel the business problem using a combination of (the much simpler) XOR and AND gateways.  Therefore, the construct is not yet on any specific release.<br>

<br>
The best way if you want to track progress would be to create a JIRA issue I would say, that we will then use to report progress when implementing this feature.  It would also allow other users to vote for this issue to keep track of interest.<br>

<br>
The implementation would be an extension of the generic Join node (and JoinInstance), where the logic to decide when to continue would not only keep track of the &quot;tokens&quot; that already arrived (as is already done in the current implementation) but would also check for incoming branches that don&#39;t have a &quot;token&quot; yet whether there aren&#39;t any active node instances that could still reach this incoming branch.  In most cases this can be done by simply traversing the process graph.  But we could add support for complex cases, where the graph reachability analysis is done during process compilation (to avoid runtime overhead) and to support more complex cases (where for example the join instance would need to register as a listener to the process instance to make sure it is re-evaluated whenever necessary).<br>

<br>
Kris<br>
<br>
Antoine Toulme wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
The BPMN spec contains the business requirements and the description of the functionality of this construct.<br>
Anurag also explained the functionality in this thread.<br>
<br>
The questions we have for the jBPM team are:<br>
-is this construct on the roadmap ? if yes, for which release ?<br>
-if yes, is there a way to track its development ?<br>
-Overall, what would the work consist and how hard is it to implement ?<br>
<br>
Please advise.<br>
<br>
Antoine<br>
<br></div><div class="im">
On Fri, Aug 12, 2011 at 9:00 AM, Mauricio Salatino &lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a> &lt;mailto:<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;&gt; wrote:<br>

<br>
    That&#39;s what I mention. it can be easy to implement most of the<br>
    times but there are also some complex business use case that can<br>
    complicate the generic approaches.<br>
    Looking at a concrete use case will help a lot to understand what<br>
    do you want to achieve. <br>
<br>
    On Fri, Aug 12, 2011 at 12:53 PM, mardo &lt;<a href="mailto:mardo@abicola.de" target="_blank">mardo@abicola.de</a><br></div><div class="im">
    &lt;mailto:<a href="mailto:mardo@abicola.de" target="_blank">mardo@abicola.de</a>&gt;&gt; wrote:<br>
<br>
        Hi there,<br>
<br>
         <br>
        just some general remarks from my side:<br>
<br>
         <br>
        the semantics and implementation of the inclusive OR-join are<br>
        far from trivial. See e.g. references below.<br>
<br>
         <br>
        <a href="http://domino.research.ibm.com/library/cyberdig.nsf/papers/331BE249A11C1B3F852577DE003B5477/$File/rz3791.pdf" target="_blank">http://domino.research.ibm.<u></u>com/library/cyberdig.nsf/<u></u>papers/<u></u>331BE249A11C1B3F852577DE003B54<u></u>77/$File/rz3791.pdf</a><br>

<br>
        <a href="http://www.springerlink.com/content/97413825k6141332/" target="_blank">http://www.springerlink.com/<u></u>content/97413825k6141332/</a><br>
<br>
         <br>
        However, I’d be interested in the concrete business<br>
        requirement you have for modeling, since from my experience<br>
        you can cover a very large part of regular requirements just<br>
        using the “simple” gateways.<br>
<br>
         <br>
        Best<br>
<br>
         <br>
        Markus<br>
<br>
         <br>
         <br>
         <br>
        *From:* <a href="mailto:jbpm-dev-bounces@lists.jboss.org" target="_blank">jbpm-dev-bounces@lists.jboss.<u></u>org</a><br>
        &lt;mailto:<a href="mailto:jbpm-dev-bounces@lists.jboss.org" target="_blank">jbpm-dev-bounces@<u></u>lists.jboss.org</a>&gt;<br>
        [mailto:<a href="mailto:jbpm-dev-bounces@lists.jboss.org" target="_blank">jbpm-dev-bounces@<u></u>lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:jbpm-dev-bounces@lists.jboss.org" target="_blank">jbpm-dev-bounces@<u></u>lists.jboss.org</a>&gt;] *On Behalf Of<br>
        *Mauricio Salatino<br>
        *Sent:* Freitag, 12. August 2011 14:21<br>
        *To:* Anurag Aggarwal<br></div>
        *Cc:* <a href="mailto:jbpm-dev@lists.jboss.org" target="_blank">jbpm-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:jbpm-dev@lists.jboss.org" target="_blank">jbpm-dev@lists.jboss.<u></u>org</a>&gt;<div class="im">
<br>
        *Subject:* Re: [jbpm-dev] Re- IOR gateway<br>
<br>
         <br>
        Hi Anurag,<br>
<br>
        Based on your description I think that I&#39;m understanding what<br>
        do you want to do now. <br>
        Right now the behaviors implemented in jBPM5 are XOR and AND.  <br>
        I think what you want to implement is N of M converging<br>
        gateway, as it was in Drools Flow? Am I right?<br>
<br>
        You want to wait 2 of the 3 branches that you have to<br>
        propagate the execution? <br>
         <br>
        Cheers<br>
<br>
        On Fri, Aug 12, 2011 at 5:47 AM, Anurag Aggarwal<br></div><div><div></div><div class="h5">
        &lt;<a href="mailto:anurag@intalio.com" target="_blank">anurag@intalio.com</a> &lt;mailto:<a href="mailto:anurag@intalio.com" target="_blank">anurag@intalio.com</a>&gt;&gt; wrote:<br>
<br>
        Hi Mauricio,<br>
<br>
         <br>
        If an an AND converging gateway has n incoming branches, it<br>
        expects that all incoming have been triggered and when it is<br>
        so - it calls triggerCompleted (so that the rest of the<br>
        process can continue)<br>
<br>
         <br>
        In case of OR converging, lets assume a process<br>
<br>
         <br>
                                branch1 <br>
                             /               \<br>
<br>
        OR (diverging) - branch 2 -  OR (converging)<br>
<br>
                             \               /<br>
<br>
                               branch 3<br>
<br>
         <br>
        now any of branches may be triggered, OR converging has to<br>
        wait for all branches that were actually triggered (say<br>
        branch1 and branch 3). But the problem is it does not know<br>
        which branches were triggered (for AND it was easier - just<br>
        wait for all branches to be triggered). here in case of OR -<br>
        we don&#39;t know to continue to wait for branch 2 or not<br>
<br>
         <br>
        Regards, Anurag<br>
<br>
         <br>
        On Aug 12, 2011, at 1:18 AM, Mauricio Salatino wrote:<br>
<br>
<br>
<br>
        Hi Antoine,<br>
<br>
        So do you want to implement and OR or and AND converging<br>
        gateway, by the description it looks like and AND converging<br>
        gateway. Is there any differences with the AND converging<br>
        gateway that is currently implemented in jBPM5? <br>
         <br>
        Cheers<br>
<br>
        On Thu, Aug 11, 2011 at 4:46 PM, Antoine Toulme<br></div></div><div class="im">
        &lt;<a href="mailto:atoulme@intalio.com" target="_blank">atoulme@intalio.com</a> &lt;mailto:<a href="mailto:atoulme@intalio.com" target="_blank">atoulme@intalio.com</a>&gt;&gt; wrote:<br>
<br>
        Hi Mauricio, that&#39;s an OR converging gateway.<br>
<br>
         <br>
        On Fri, Aug 12, 2011 at 12:42 AM, Mauricio Salatino<br></div><div class="im">
        &lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a> &lt;mailto:<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;&gt; wrote:<br>
<br>
        Hi guys.. that&#39;s the AND Converging gateway right?<br>
<br>
        The AND waits for all the branches that are converging before<br>
        propagate.<br>
<br>
        If that&#39;s not what you are looking for it should be very easy<br>
        to implement.. and probably you can model that with the<br>
        complex converge gateway.<br>
<br>
         <br>
        Cheers.<br>
<br>
        On Thu, Aug 11, 2011 at 4:33 PM, Antoine Toulme<br></div><div class="im">
        &lt;<a href="mailto:atoulme@intalio.com" target="_blank">atoulme@intalio.com</a> &lt;mailto:<a href="mailto:atoulme@intalio.com" target="_blank">atoulme@intalio.com</a>&gt;&gt; wrote:<br>
<br>
            Broadcasting to list in case other committers have an<br>
            insight ?<br>
<br>
             <br>
            Antoine<br>
<br>
            On Thu, Aug 11, 2011 at 12:39 PM, Anurag Aggarwal<br></div><div class="im">
            &lt;<a href="mailto:anurag@intalio.com" target="_blank">anurag@intalio.com</a> &lt;mailto:<a href="mailto:anurag@intalio.com" target="_blank">anurag@intalio.com</a>&gt;&gt; wrote:<br>
<br>
            Hi Kris,<br>
<br>
            How are you<br>
<br>
            Recently one of our requirements came up for converging<br>
            IOR gateway, this is the gateway which according to bpmn<br>
            specification syncs up on all upstream tokens and<br>
            propagates token when no upstream token is left<br>
<br>
            Currently jbpm does not support this construct, I was<br>
            wondering if jbom has this in roadmap and if you can give<br>
            some advice on difficulty and state  of implementation<br>
<br>
            Regards,<br>
            Anurag<br>
<br>
             <br>
             <br>
            ______________________________<u></u>_________________<br>
            jbpm-dev mailing list<br></div>
            <a href="mailto:jbpm-dev@lists.jboss.org" target="_blank">jbpm-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:jbpm-dev@lists.jboss.org" target="_blank">jbpm-dev@lists.jboss.<u></u>org</a>&gt;<div class="im">
<br>
            <a href="https://lists.jboss.org/mailman/listinfo/jbpm-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/jbpm-dev</a><br>
<br>
<br>
<br>
<br></div>
        --          - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a> &lt;<a href="http://www.plugtree.com/" target="_blank">http://www.plugtree.com/</a>&gt;          - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>

        &lt;<a href="http://salaboy.wordpress.com/" target="_blank">http://salaboy.wordpress.com/</a><u></u>&gt;<br>
         - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a> &lt;<a href="http://www.jbug.com.ar/" target="_blank">http://www.jbug.com.ar/</a>&gt;<br>
                  - Salatino &quot;Salaboy&quot; Mauricio -<br>
<br>
         <br>
<br>
<br>
<br>
        --          - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a> &lt;<a href="http://www.plugtree.com/" target="_blank">http://www.plugtree.com/</a>&gt;          - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>

        &lt;<a href="http://salaboy.wordpress.com/" target="_blank">http://salaboy.wordpress.com/</a><u></u>&gt;<br>
         - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a> &lt;<a href="http://www.jbug.com.ar/" target="_blank">http://www.jbug.com.ar/</a>&gt;<div class="im"><br>
                  - Salatino &quot;Salaboy&quot; Mauricio -<br>
<br>
         <br>
<br>
<br>
<br>
        --          - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>          - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>

<br>
        - Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>
         - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
                  - Salatino &quot;Salaboy&quot; Mauricio -<br>
<br>
         <br>
<br>
        ______________________________<u></u>_________________<br>
        jbpm-dev mailing list<br></div>
        <a href="mailto:jbpm-dev@lists.jboss.org" target="_blank">jbpm-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:jbpm-dev@lists.jboss.org" target="_blank">jbpm-dev@lists.jboss.<u></u>org</a>&gt;<div class="im"><br>

        <a href="https://lists.jboss.org/mailman/listinfo/jbpm-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/jbpm-dev</a><br>
<br>
<br>
<br>
<br>
    --      - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>      - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
    - Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>
     - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
          - Salatino &quot;Salaboy&quot; Mauricio -<br>
<br>
<br>
    ______________________________<u></u>_________________<br>
    jbpm-dev mailing list<br></div>
    <a href="mailto:jbpm-dev@lists.jboss.org" target="_blank">jbpm-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:jbpm-dev@lists.jboss.org" target="_blank">jbpm-dev@lists.jboss.<u></u>org</a>&gt;<div class="im"><br>
    <a href="https://lists.jboss.org/mailman/listinfo/jbpm-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/jbpm-dev</a><br>
<br>
<br></div>
------------------------------<u></u>------------------------------<u></u>------------<div class="im"><br>
<br>
______________________________<u></u>_________________<br>
jbpm-dev mailing list<br>
<a href="mailto:jbpm-dev@lists.jboss.org" target="_blank">jbpm-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jbpm-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/jbpm-dev</a><br>
  <br>
</div></blockquote>
</blockquote></div><br>