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

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


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


due to the EnvironmentBindings.java, it is not possible to execute script like below (javascript):

{code:borderStyle=solid}
var b = "value b";
var c = b;
{code}

scriptEngine will report error like 

{quote}
sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "b" is not defined. (<Unknown source>#4) in <Unknown source> at line number 4
{quote}

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