-
1. Re: anyone guide me how to access processinstance in split constraints?
salaboy21 Oct 28, 2012 7:20 AM (in response to rickylkl)you should do something like the following if you are writing a Java expression.
return kcontext.getKnowledgeRuntime().getProcessInstance(<id>).getVariable("isValid");
If you wanna write a rule expression it will be in the same way as you showed before:
WorkflowProcessInstance(variables["isValid"] == <true|false>)
Cheers
-
2. Re: anyone guide me how to access processinstance in split constraints?
rickylkl Oct 28, 2012 10:07 PM (in response to salaboy21)Hi Salatino ,
Thanks for the reply, may i ask a bit more?
1. How can i know the processInstance id in split constratins ?
2. By the way, when i try this - WorkflowProcessInstance(variables["isValid"] == true), it shows below exception, any idea ?
unable to resolve method using strict-mode: org.drools.runtime.process.WorkflowProcessInstance.variables
[Near : {... variables["isValid"] == true ....}]
Thanks & Regards
Ricky