code: public List<Transition> getTransitions(Long fromWorkId, Integer eventType, String completionCode) {
          List<Transition> allTransitions = getAllTransitions(fromWorkId);
          List<Transition> returnSet = findTransitions(allTransitions, eventType, completionCode);
          if (returnSet.size() > 0)
              return returnSet;
          // look for default transition
          boolean noLabelIsDefault = getTransitionWithNoLabel().equals(TRANSITION_ON_DEFAULT);
          if (noLabelIsDefault) returnSet = findTransitions(allTransitions, eventType, null);
          else returnSet = findTransitions(allTransitions, eventType, ActivityResultCodeConstant.RESULT_DEFAULT);
          if (returnSet.size() > 0)
              return returnSet;
          // look for resume transition
          if (eventType.equals(EventType.FINISH)) {
              returnSet = new ArrayList<Transition>();
              for (Transition trans : allTransitions) {
                  if (trans.getEventType().equals(EventType.RESUME))
                      returnSet.add(trans);
              }
          }
          return returnSet;
      }
docs: Finds the work transitions from the given activity
  that match the event type and completion code.
  A DEFAULT completion code matches any completion
  code if and only if there is no other matches
  
  @param fromWorkId
  @param eventType
  @parame completionCode
  @return the matching work transition value objects