Discussion:
[jboss-user] [jBPM] - xor gateway - default case?
Jonathan L
2013-01-31 21:53:56 UTC
Permalink
Jonathan L [https://community.jboss.org/people/jhl] created the discussion

"xor gateway - default case?"

To view the discussion, visit: https://community.jboss.org/message/795514#795514

--------------------------------------------------------------
Hi,

Is it possible to have a condition out of an XOR gateway that acts as a "catch-all" or default in case non of the other conditions are satisfied - think of a switch-case statement

I'm trying to find the bpm equivalent for the following:

switch (some condition) {
    case <value 1>:  ....
    case <value 2>:  ...
    default:  .....   // this is what i want
}
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/795514#795514]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Thomas Setiabudi
2013-02-04 01:21:26 UTC
Permalink
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion

"Re: xor gateway - default case?"

To view the discussion, visit: https://community.jboss.org/message/795824#795824

--------------------------------------------------------------
Hi Jonathan L,

I think in XOR Gateway you can write your own java code and it just need to return true / false in the end.  So I think using switch case should be possible there.


Regards,
Thomas Setiabudi
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/795824#795824]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-02-04 09:21:25 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: xor gateway - default case?"

To view the discussion, visit: https://community.jboss.org/message/795856#795856

--------------------------------------------------------------
in bpmn2 you can mark a given sequence flow that goes out of xor gateway to be default path if none is selected based on defined conditions.

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/795856#795856]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...