AnsweredAssumed Answered

How to access parent variables from child process?

Question asked by getodac on Oct 28, 2013
Latest reply on Oct 29, 2013 by getodac
Maybe the question is trivial, but for the moment i don't know how to fix that.

I have a parent process that in a Call Activity initiate an child sub-process, and I try to read variables from variableMap (<b>ctype</b>) in a <b>ScriptTask</b>:

    <scriptTask id="scripttask4" name="Script Task" scriptFormat="groovy" activiti:autoStoreVariables="true">
           <script>out:println "Ending main script with parameter: "+ctype</script>

Variable <b>ctype</b> was set

      variableMap.put("ctype", 2);

In parent process it works, but in child process i have this error:
Caused by: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: <b>ctype</b> for class: Script1 […]

How to read parent variables in child processs?