2 Replies Latest reply on Sep 30, 2005 4:46 AM by miche

    ExecutionContext.getNode() error

    miche

      Hi all, i'm implementing a new ActionHanlder that send an email from a state of a process.
      I have a problem: i want to retrieve the name of the node from which the ActionHandler has been called but every time i try the method getNode() of the interface ExecutionContext return null.
      Somebody know why?
      Please help me thanks
      regards
      michele

        • 1. Re: ExecutionContext.getNode() error
          aguizar

          If your action handler is attached to a node, then you should be able to retrieve that node from the given ExecutionContext. If it is attached to a transition, then the node is undefined. Instead, you can retrieve the transition with getTransition().

          • 2. Re: ExecutionContext.getNode() error
            miche

            I'm working with jBpm 2.0 and the method ExecutionContext.getTransition() is not still present.
            Can i retrieve the name of the state or of the actorId if my handler is called from a transition (in jBpm2.0)?
            thanks for your help
            regards