Community

Problems with usage python language in jpdl.xml

reply from Andrey Chuyko in jBPM - View the full discussion

Thahks, Huisheng Xu for your replay!!!

 

I have told about locale variable.

So, script on groovy

<script name="invoke script" var="text" lang="groovy" g="113,18,104,52">
<text>
  int xxx = 13 + 54*12
   println "$xxx -HELLO!"

</text>
<transition to="wait" />
</script>

 

Print following result 661 -HELLO!

And how we see int xxx = 13 + 54*12 remembered and printed !!!!!!!

 

 

But script on python language
<text>
yyy = 13 + 54*12
print yyy, "-HELLO!"
</text>

throw org.jbpm.api.JbpmException: script evaluation error: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: yyy for class: Script1

 

It is strange!

 

Thanrs a lot Andrey.

Reply to this message by going to Community

Start a new discussion in jBPM at Community