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

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

    A Ghosh Newbie


      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">
          <transition to="InitializeProcess"/>
        <java name="InitializeProcess" class="com.test.action.InitializeProcess" method="execute">
          <transition to="end"/>
          <end name="end"/>


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