code: private List<Transition> getIncomingTransitions(Process procdef, Long activityId,
              Map<String,String> idToEscapedName) {
          List<Transition> incomingTransitions = new ArrayList<Transition>();
          for (Transition trans : procdef.getTransitions()) {
              if (trans.getToId().equals(activityId)) {
                  Transition sync = new Transition();
                  sync.setId(trans.getId());
                  Activity act = procdef.getActivityVO(trans.getFromId());
                  String logicalId = act.getLogicalId();
                  // id to escaped name map is for backward compatibility
                  idToEscapedName.put(logicalId, escape(act.getName()));
                  sync.setCompletionCode(logicalId);
                  incomingTransitions.add(sync);
              }
          }
          return incomingTransitions;
      }
docs: reuse WorkTransitionVO for sync info