Discussion:
[jboss-user] [jBPM] - how to set gateway constraints
casey perkins
2013-04-24 09:03:17 UTC
Permalink
casey perkins [https://community.jboss.org/people/casey_0708] created the discussion

"how to set gateway constraints"

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

--------------------------------------------------------------
hello, I use the xor gateway.but i don't know how to set the constraints on the sequence flow in the web designer.
thx.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Shobhit Tyagi
2013-04-24 14:25:50 UTC
Permalink
Shobhit Tyagi [https://community.jboss.org/people/roxy1987] created the discussion

"Re: how to set gateway constraints"

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

--------------------------------------------------------------
To use a xor gate, you need to select the xor gate, click on constraints field in the property view. You will see a pop up like this :

Loading Image... Loading Image...

Click on edit. You will get another pop up like below :

Loading Image... Loading Image...
Variable is a process variable. You can set its value before the xor gate in the flow is reached.
You can set a value similarly in the other constraint as well. Which ever value is matched, it will be returned.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
casey perkins
2013-04-25 04:35:45 UTC
Permalink
casey perkins [https://community.jboss.org/people/casey_0708] created the discussion

"Re: how to set gateway constraints"

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

--------------------------------------------------------------
hello Shobhit,
thanks for your replying,but I don't use the eclipse to design. I use the drools-guvnor to design.it is said that I should edit the constraints on the sequence flow.
after I edit the constraints using "return i<10;",then start the instance in the jbpm-console.it returns error.
the error says " Exception when trying to evaluate constraint i<10 split".
do you know how to fix it ?
thx.
--------------------------------------------------------------

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

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

"Re: how to set gateway constraints"

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

--------------------------------------------------------------
make sure you have value assigned to 'i' process variable and make sure you have defined process variable.

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

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
casey perkins
2013-04-26 15:25:27 UTC
Permalink
casey perkins [https://community.jboss.org/people/casey_0708] created the discussion

"Re: how to set gateway constraints"

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

--------------------------------------------------------------
thanks Maciej,
i have defined process variable,but it still returns error .
is there any way to solve?
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Sergey Kornilov
2013-04-27 11:31:41 UTC
Permalink
Sergey Kornilov [https://community.jboss.org/people/kornilovs] created the discussion

"Re: how to set gateway constraints"

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

--------------------------------------------------------------
Create package: test_mail_files
create bpmn2 diagram: test_mail
import schema
There is variable "approv" type String. For constraint use java.

For start in jbpm-console
add EmailWorkItemHandler to console-server
generate forms
build package
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
casey perkins
2013-05-02 07:29:33 UTC
Permalink
casey perkins [https://community.jboss.org/people/casey_0708] created the discussion

"Re: how to set gateway constraints"

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

--------------------------------------------------------------
thanks Sergey
i have resolved this problem.I use kcontext.setVariable to set the value
--------------------------------------------------------------

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

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