abhijithumbe opened a new issue, #7057:
URL: https://github.com/apache/incubator-kie/issues/7057

   Currently, the default expression format for onEntry/onExit scripts is MVEL. 
This can cause process execution to fail when Java-specific objects such as 
kcontext are used and the scriptFormat is not defined in the BPMN file, for 
example:  `<drools:onExit-script scriptFormat="">`
   
   Example script: `System.out.println(kcontext.getVariable("var1"));`
   
   The execution fails with an error similar to `unresolvable property or 
identifier: kcontext`
   
   To avoid this issue and improve compatibility with Java-based process 
scripts, change the default expression format from MVEL to Java when 
scriptFormat is not specified.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to