/** * * * <ol> * <li>create trax shadowed action for destination * <li>create working branch from destination workflow * <li>check that source workflow is completed * <li>relate source workflow to destination workflow * <li>create branch from transaction from the source workflow * <li>commit into from port branch to destination working branch * <li>report conflicts and commit completions if commit completes, delete port branch. */ private void portPair(Pair<String, String> pair) throws OseeCoreException { TeamWorkFlowArtifact sourceWorkflow; TeamWorkFlowArtifact destinationWorkflow; if (useAtsID) { sourceWorkflow = getWorkflowFromAtsID(pair.getFirst()); destinationWorkflow = getWorkflowFromAtsID(pair.getSecond()); } else { sourceWorkflow = getWorkflowFromRpcr(pair.getFirst()); destinationWorkflow = getWorkflowFromRpcr(pair.getSecond()); } doPortWork(sourceWorkflow, destinationWorkflow); }
public static String getInsertionStr( IAtsObject atsObject, IAtsServices services, WorkPackageUtility util) throws OseeCoreException { String result = ""; if (atsObject instanceof IAtsWorkItem) { IAtsWorkItem workItem = (IAtsWorkItem) atsObject; Pair<IAtsInsertion, Boolean> insertion = util.getInsertion(services, workItem); if (insertion.getFirst() != null) { result = String.format( "%s%s", insertion.getFirst().getName(), (insertion.getSecond() ? " (I)" : "")); } } return result; }