-
1. Re: how to set gateway constraints
roxy1987 Apr 24, 2013 10:25 AM (in response to casey_0708)1 of 1 people found this helpfulTo 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 :
Click on edit. You will get another pop up like below :
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.
-
2. Re: how to set gateway constraints
casey_0708 Apr 25, 2013 12:35 AM (in response to roxy1987)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.
-
3. Re: how to set gateway constraints
swiderski.maciej Apr 25, 2013 4:20 AM (in response to casey_0708)1 of 1 people found this helpfulmake sure you have value assigned to 'i' process variable and make sure you have defined process variable.
HTH
-
4. Re: how to set gateway constraints
casey_0708 Apr 26, 2013 11:25 AM (in response to swiderski.maciej)thanks Maciej,
i have defined process variable,but it still returns error .
is there any way to solve?
-
5. Re: how to set gateway constraints
kornilovs Apr 27, 2013 7:31 AM (in response to casey_0708)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
-
6. Re: how to set gateway constraints
casey_0708 May 2, 2013 3:29 AM (in response to casey_0708)thanks Sergey
i have resolved this problem.I use kcontext.setVariable to set the value