Discussion:
[jboss-user] [jBPM] - Is it possible to dynamically substitute a gate condition ?
Shiju John
2013-01-22 11:11:50 UTC
Permalink
Shiju John [https://community.jboss.org/people/shijuj] created the discussion

"Is it possible to dynamically substitute a gate condition ?"

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

--------------------------------------------------------------
Is it possible to dynamically substitute a gate condition ? I am Using JBPM 5.2 .

Example : suppose my condition in a gate is *amount > 100*
Is it possible to change this condition at run-time to *amount = 200*
--------------------------------------------------------------

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

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-01-22 18:05:36 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Is it possible to dynamically substitute a gate condition ?"

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

--------------------------------------------------------------
don't think you can do it as you described by maybe you could compare two process variables:

amount > limit

where both limit and amount are process variables

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

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Shiju John
2013-01-23 09:10:14 UTC
Permalink
Shiju John [https://community.jboss.org/people/shijuj] created the discussion

"Re: Is it possible to dynamically substitute a gate condition ?"

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

--------------------------------------------------------------
Hi https://community.jboss.org/people/swiderski.maciej *Maciej Swiderski*

Thanks for your replay. Actually i need to replace the condition operator at runtime .

--------------------------------------------------------------

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

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-01-23 10:25:54 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Is it possible to dynamically substitute a gate condition ?"

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

--------------------------------------------------------------
then maybe you could se process variable methods to do the calculation:

boolean verifier.checkAmount(amount)

so that based on some criteria your verifier can take the decision which operator shall be used.

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

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

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