How to get Release Target State From Resulting Object

How to get Release Target State From Resulting Object

Add Comment
1 Answer(s)
public static State getTargetStateFromtransitions(LifeCycleManaged resultingObject, Transition paramTransition)
      throws WTException {
    State targetState = null;
    LifeCycleTemplateReference localLifeCycleTemplateReference = resultingObject.getLifeCycleTemplate();
    State currentState = resultingObject.getState().getState();
    Set setIW = LifeCycleHelper.service.navigate(localLifeCycleTemplateReference, currentState, paramTransition,
        false);
    Iterator setIterIW = setIW.iterator();
    while (setIterIW.hasNext()) {
      targetState = (State) setIterIW.next();
      System.out.println(targetState.getDisplay());
      break;
    }
    return targetState;

  }

 

Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.