0 Replies Latest reply on Oct 16, 2008 6:43 AM by monkiki

    TaskInstance.getAvailableTransitions() on ended state

    monkiki

      When I request the available transitions from an ended TaskInstance (taskInstance.getEnd() != null) it returns wrong transitions. It returns the transitions of the current token, as I see in method implementation:

      public List getAvailableTransitions() {
       List transitions = null;
       if ( (! isLast())
       && (token!=null)
       ) {
       transitions = new ArrayList(token.getAvailableTransitions());
       }
       return transitions;
       }


      It should return no transitions (or null), but the problem I see is that isLast() is false. When is set to last to true? I always see it as false.