public String getName() { return jbpmTransition.getName(); }
public String getTargetName() { return jbpmTransition.getName(); }
/** * retrieves a leaving transition by name. the leaving transitions of the supernode are taken * into account as well. */ public Transition getLeavingTransition(String transitionName) { if (leavingTransitions != null) { for (Iterator i = leavingTransitions.iterator(); i.hasNext();) { Transition transition = (Transition) i.next(); if (transitionName != null ? transitionName.equals(transition.getName()) : transition.getName() == null) return transition; } } return superState != null ? superState.getLeavingTransition(transitionName) : null; }
/** * retrieves a leaving transition by name. the leaving transitions of the supernode are taken * into account as well. */ public Transition getLeavingTransition(String transitionName) { if (leavingTransitions != null) { for (Iterator i = leavingTransitions.iterator(); i.hasNext();) { Transition transition = (Transition) i.next(); if (transitionName != null ? transitionName.equals(transition.getName()) : transition.getName() == null) return transition; } } return superState != null ? superState.getLeavingTransition(transitionName) : null; }
/** * are the leaving {@link Transition}s, mapped by their name (String). */ public Map getLeavingTransitionsMap() { if (leavingTransitionMap == null && leavingTransitions != null) { // initialize the cached leaving transition map leavingTransitionMap = new HashMap(); ListIterator iter = leavingTransitions.listIterator(leavingTransitions.size()); while (iter.hasPrevious()) { Transition leavingTransition = (Transition) iter.previous(); leavingTransitionMap.put(leavingTransition.getName(), leavingTransition); } } return leavingTransitionMap; }
/** * are the leaving {@link Transition}s, mapped by their name (String). */ public Map getLeavingTransitionsMap() { if (leavingTransitionMap == null && leavingTransitions != null) { // initialize the cached leaving transition map leavingTransitionMap = new HashMap(); ListIterator iter = leavingTransitions.listIterator(leavingTransitions.size()); while (iter.hasPrevious()) { Transition leavingTransition = (Transition) iter.previous(); leavingTransitionMap.put(leavingTransition.getName(), leavingTransition); } } return leavingTransitionMap; }
public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof Transition)) return false; Transition other = (Transition) o; if (id != 0 && id == other.getId()) return true; return (name != null ? name.equals(other.getName()) : other.getName() == null) && from != null && from.equals(other.getFrom()); }
public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof Transition)) return false; Transition other = (Transition) o; if (id != 0 && id == other.getId()) return true; return (name != null ? name.equals(other.getName()) : other.getName() == null) && from != null && from.equals(other.getFrom()); }
for (Iterator iter = transitions.iterator(); iter.hasNext();) { Transition transition = (Transition) iter.next(); transitionNames.add(transition.getName());
for (Iterator iter = transitions.iterator(); iter.hasNext();) { Transition transition = (Transition) iter.next(); transitionNames.add(transition.getName());
private void writeTransition(Element transitionElement, Transition transition) { if (transition.getTo() != null) { transitionElement.addAttribute("to", transition.getTo().getName()); } if (transition.getName() != null) { transitionElement.addAttribute("name", transition.getName()); } Event transitionEvent = transition.getEvent(Event.EVENTTYPE_TRANSITION); if (transitionEvent != null && transitionEvent.hasActions()) { writeActions(transitionElement, transitionEvent.getActions()); } }
private void writeTransition(Element transitionElement, Transition transition) { if (transition.getTo() != null) { transitionElement.addAttribute("to", transition.getTo().getName()); } if (transition.getName() != null) { transitionElement.addAttribute("name", transition.getName()); } Event transitionEvent = transition.getEvent(Event.EVENTTYPE_TRANSITION); if (transitionEvent != null && transitionEvent.hasActions()) { writeActions(transitionElement, transitionEvent.getActions()); } }
public void execute(ExecutionContext executionContext) { Token token = executionContext.getToken(); Node interleaveEndNode = token.getNode(); Collection transitionNames = getInterleaveStart().retrieveTransitionNames(token); // if the set is *not* empty if ( ! transitionNames.isEmpty() ) { // go back to the interleave start handler String backTransitionName = "back"; if ( back != null ) { backTransitionName = back.getName(); } interleaveEndNode.leave(executionContext, backTransitionName); } else { // leave the to the getInterleaveStart().removeTransitionNames(token); String doneTransitionName = "done"; if ( done != null ) { doneTransitionName = done.getName(); } interleaveEndNode.leave(executionContext, doneTransitionName); } }
public void execute(ExecutionContext executionContext) { Token token = executionContext.getToken(); Node interleaveEndNode = token.getNode(); Collection transitionNames = getInterleaveStart().retrieveTransitionNames(token); // if the set is *not* empty if ( ! transitionNames.isEmpty() ) { // go back to the interleave start handler String backTransitionName = "back"; if ( back != null ) { backTransitionName = back.getName(); } interleaveEndNode.leave(executionContext, backTransitionName); } else { // leave the to the getInterleaveStart().removeTransitionNames(token); String doneTransitionName = "done"; if ( done != null ) { doneTransitionName = done.getName(); } interleaveEndNode.leave(executionContext, doneTransitionName); } }