Hunor-Attila Kerekes [
https://community.jboss.org/people/subbass00] created the
discussion
"Process variables rules template relationship"
To view the discussion, visit:
https://community.jboss.org/message/724835#724835
--------------------------------------------------------------
I am a little bit confused about the rules fact variables and process variables
relationship. I have a process with variables: name:String, age:Integer, access:Boolean. I
would like to verify with a business rule if the variable age is less than 18 then the
access would be set to false. I created a model called User with these fields. The rule
separately works fine, but I am inserting a User object in ksession. If I am using a
process model like this:1.Human Task, 2 Business rule, 3.Human task, how can I set these
values or what is the relation ship exactly between my process variables and rule template
data?
Should I use the rule template as a variable in my process? If yes please let me know how
it is possible.
Note: The fields: name, age are filled in runtime by a user.
Thank you in advance.
Kind regards, Hunor-Attila Kerekes
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/724835#724835]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]