7 Replies Latest reply on May 17, 2007 5:48 PM by Jon Lachelt

    How to get Node name for a TaskInstance?

    Jon Lachelt Newbie

      I have a TaskInstance, which I got by invoking

      taskInstance = JbpmContext.getTaskInstance( instanceId )

      Now I'd like to get the name of the node that this taskInstance is from.
      So I figured this would do the trick:


      But I get a NullPointerException because the Task doesn't seem to be properly initialized... it has a null taskNode member (and many other null members).

      Is this a defect? Or more likely I'm just not understanding something fundamental about jBPM (I am a noob).

      Would someone please enlighten me?