3 Replies Latest reply on Mar 16, 2012 2:32 AM by swiderski.maciej

    Customized gateway node

    annah

      Hi!

       

       

      I have a request to implement a custom task which is a kind of customized gateway node. The requirement is that the condition is writtten as a business rule using domain specific language

      Ruleflow editor allows to create custom tasks, but it can only have one input and one output sequence flow. At this point I see two possible solutions:

       

      1. To create a custom task, and somehow force it to allow multiple outputs

      2. To integrate a DSL rule editor into the current gateway condition editor (it supports Java and MVEL but no domain specific languages)

       

      But I have no idea if any of these is possible to do?

      I'm open for suggestions.

        • 1. Re: Customized gateway node
          swiderski.maciej

          you can use rules in gateway conditions just to make sure that the rule evaluates to boolean value, for instance

           

          <conditionExpression xsi:type="tFormalExpression" language="http://www.jboss.org/drools/rule" >org.jbpm.bpmn2.ScannerChangeSetTest.Message( message matches 'AND' )</conditionExpression>
          
          

           

          HTH

          • 2. Re: Customized gateway node
            annah

            Thank you for your help. I'll try this out.

             

            What about my first question, is it possible to get a custom task with multiple output flows? I guess it requires changing of editor source code, which is not a problem for me, I just need some guidance where to start?

            • 3. Re: Customized gateway node
              swiderski.maciej

              It could be only an eclipse editor limitation. According to BPMN2 spec activity can have both multiple incoming and outgoing sequence flows and in such case it is considered uncontrolled flow. For details look at 10.2 of BPMN2 spec.

               

              HTH