2 Replies Latest reply on Feb 11, 2010 2:01 PM by Ronald van Kuijk

    java activity inside subprocess

    apurv agnihotri Newbie

      Hi Friends,


      I was trying to use subprocess with java activity within it.This subprocess is being called from a main process.

      Currently I am not sure how to pass value from within the main process to sub process and get the return value back.I am using it in the following way(code inside main process).


      <sub-process name="userdevice"
          <parameter-in var="stateMain" subvar="state" />
          <parameter-out var="deviceNameMain" subvar="deviceName" />
          <transition to="wait" />


      Although the java activity is executed and the control goes within the specified class.But I am not able to provide input variable and am not getting back the result variable from the subprocess.

      can anyone throw light on this.Or any pointers to some articles.I have already gone through user and developers guide.




        • 1. Re: java activity inside subprocess
          apurv agnihotri Newbie

          I am able to get this in variable but I am not able to set this var as an arg/field to java activity.Any pointers how can the existing task var be set as arg/field for java activity.


              <transition to="getXXX"/>

            <task name="getXXX
                 var = "statetask">//this var is available from main process

              <transition to="getZZZ"/>

            <java name="getZZZ"
             <field name="state"><string value="somevalue"/></field>// need to set the stateTask var value to state field here
              <arg><string value="Test"/></arg>// need to do the similar thing here
             <transition to="end" />

            <end name="end" />

          • 2. Re: java activity inside subprocess
            Ronald van Kuijk Master
            Use EL... (Expression Language)