[jbpm-issues] [JBoss JIRA] Updated: (JBPM-2992) execute multiple statements with variable passing in script tag

Jay Liu (JIRA) jira-events at lists.jboss.org
Wed Jan 12 23:06:49 EST 2011


     [ https://issues.jboss.org/browse/JBPM-2992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jay Liu updated JBPM-2992:
--------------------------

    Attachment: EnvironmentBindings.java


this is a quick fix. just put it on your classpath before jbpm.jar.

> execute multiple statements with variable passing in script tag
> ---------------------------------------------------------------
>
>                 Key: JBPM-2992
>                 URL: https://issues.jboss.org/browse/JBPM-2992
>             Project: jBPM
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: Runtime Engine
>    Affects Versions: jBPM 4.4
>            Reporter: Jay Liu
>              Labels: script
>         Attachments: EnvironmentBindings.java
>
>   Original Estimate: 2 hours
>  Remaining Estimate: 2 hours
>
> due to the EnvironmentBindings.java, it is not possible to execute script like below (javascript):
> var b = "value b";
> var c = b;
> scriptEngine will report error like 
> sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "b" is not defined. (<Unknown source>#4) in <Unknown source> at line number 4
> because EnvironmentBindings never accept new variable passed to it.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbpm-issues mailing list