Reto,
Regarding timers, unfortunately it's not possibly to dynamically change
the value of the timer properties based on some process variable.
There's already a JIRA issue for this but it didn't make it into the
source code yet:
https://jira.jboss.org/browse/JBRULES-2501
For wait states, since they are rule constraints, you could potentially
access process variables if you insert the process instance into the
working memory. This is described in the docs here:
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/t...
Kris
Quoting retoy <reto.lamprecht(a)allianz-suisse.ch>:
Is there a way to access process variables within the timer code of a
wait
state node?
I'm not getting anything else than null values there.
Even if I assign a value to my variable in the same timer section it
is null
again in the next iteration... also if I'm accessing it through
context.getVariable("varname"). The same applies to globals...
Does anybody know any kind of way of passing data between timers and
the
rest of the process?
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/how-to-access-process...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Disclaimer:
http://www.kuleuven.be/cwis/email_disclaimer.htm