8 Replies Latest reply on Aug 15, 2009 7:40 AM by Flavio Donzé

    Accessing the parent/super execution from a subprocess execu

    Flavio Donzé Newbie

      I have a little problem/question.

      I'm starting a process "CommitProcess" passing the execution an own "processInstanceKey".
      The CommitProcess starts a sub-process called "ReviewProcess".
      In a Task of the sub-process I'm using an AssignmentHandler and there I would like to access the processInstanceKey from the super-process.

      Well how do I do that?

      OpenExecution.getParent() returns null.
      There is an OpenExecution.getSubProcessInstance() but no OpenExecution.getSuperProcessInstance(), the attribute ExecutionImpl.superProcessExecution is set but I can't access it without casting to ExecutionImpl.

      Any ideas? Thanks
      Flavio