2 Replies Latest reply on Feb 8, 2010 5:54 AM by pisecs2982

    best way to get a process variable inside a java class  in jbpm4.3

    pisecs2982

      HI,

      Just wanted to know that what is the best possible approach for getting a process variable an dthe process runtime  inside a java class which is a part of the process itself.

      For example I have a simple process defined:

      <?xml version="1.0" encoding="UTF-8"?>

      <process xmlns="http://jbpm.org/4.2/jpdl" name="test_dynamic_process">
        <start>
          <transition to="InitializeProcess"/>
        </start>
        <java name="InitializeProcess" class="com.test.action.InitializeProcess" method="execute">
          <transition to="end"/>
        </java>
          <end name="end"/>
      </process>

       

      If i want to get a handler to the exceution service or process variable inside InitializeProcess what is the best approach?.