1 Reply Latest reply on Oct 10, 2007 9:57 AM by David Roberts

    TaskInstance Variables?

    s b Newbie

      From the JBoss jBPM jPDL 3.2 User Guide:

      11.4. Task instance variables
      A task instance can have its own set of variables and a task instance can also 'see' the process variables.

      We're using jbpm-jpdl-3.2.GA . Don't see any API for setting/getting TaskInstance variables. Are task instance variables a feature of a newer version or am I missing it?

        • 1. Re: TaskInstance Variables?
          David Roberts Apprentice

          As far as I can remember, taskInstance.getVariablesLocally() returns a Map of variables used for that specific task instance, and taskInstance.getVariables() will also return a Map of variables, but this time all variables belonging to the entire process, and not just the task instance. Someone correct me if I'm wrong.

          Oh and by the way, the API's do show all available methods etc, check your docs directory. eg. \jbpm-jpdl-3.2.2\doc\javadoc-jpdl\index.html and look at TaskInstance class.

          To see what the source code actually does, look at stuff like: \jbpm-jpdl-3.2.2\src\jpdl\org\jbpm\taskmgmt\exe\TaskInstance.java

          Hope this helps...