Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2010-04-07 16:12:53 +0000
committerddunne2010-04-07 16:12:53 +0000
commitd8895682b58d06419b1bc95383b710f43db04735 (patch)
treef334a7aab8cddee32e36c5ade9d3a458dc9af37d /plugins
parent6432c06c8d9194c36e448d6a70279d9037746fcf (diff)
downloadorg.eclipse.osee-d8895682b58d06419b1bc95383b710f43db04735.tar.gz
org.eclipse.osee-d8895682b58d06419b1bc95383b710f43db04735.tar.xz
org.eclipse.osee-d8895682b58d06419b1bc95383b710f43db04735.zip
"Team Workflow" - 5BMF7 - ""Endorse" state is required to exist in workflow"
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java16
1 files changed, 5 insertions, 11 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java
index d0bce7e26f6..00a2f337120 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java
@@ -24,7 +24,6 @@ import java.util.logging.Level;
import org.eclipse.nebula.widgets.xviewer.XViewerCells;
import org.eclipse.osee.ats.actions.wizard.IAtsTeamWorkflow;
import org.eclipse.osee.ats.artifact.ATSLog.LogType;
-import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact.DefaultTeamState;
import org.eclipse.osee.ats.internal.AtsPlugin;
import org.eclipse.osee.ats.util.AtsArtifactTypes;
import org.eclipse.osee.ats.util.AtsRelationTypes;
@@ -747,14 +746,15 @@ public class ActionArtifact extends ATSArtifact implements IWorldViewArtifact {
}
}
- // Initialize state machine
- teamArt.getStateMgr().initializeStateMachine(DefaultTeamState.Endorse.name(), assignees);
- teamArt.getLog().addLog(LogType.StateEntered, DefaultTeamState.Endorse.name(), "");
-
// Relate WorkFlow to Team Definition (by guid due to relation loading
// issues)
teamArt.setTeamDefinition(teamDef);
+ // Initialize state machine
+ String startState = teamArt.getWorkFlowDefinition().getStartPage().getPageName();
+ teamArt.getStateMgr().initializeStateMachine(startState, assignees);
+ teamArt.getLog().addLog(LogType.StateEntered, startState, "");
+
// Relate Action to WorkFlow
addRelation(AtsRelationTypes.ActionToWorkflow_WorkFlow, teamArt);
@@ -765,10 +765,6 @@ public class ActionArtifact extends ATSArtifact implements IWorldViewArtifact {
/**
* Set Team Workflow attributes off given action artifact
- *
- * @param fromAction
- * @param toTeam
- * @throws OseeArgumentException
*/
public static void setArtifactIdentifyData(ActionArtifact fromAction, TeamWorkFlowArtifact toTeam) throws OseeCoreException {
String priorityStr = fromAction.getSoleAttributeValue(ATSAttributes.PRIORITY_TYPE_ATTRIBUTE.getStoreName(), "");
@@ -791,8 +787,6 @@ public class ActionArtifact extends ATSArtifact implements IWorldViewArtifact {
/**
* Since there is no shared attribute yet, action and workflow arts are all populate with identify data
- *
- * @param art
*/
public static void setArtifactIdentifyData(Artifact art, String title, String desc, ChangeType changeType, PriorityType priority, Boolean validationRequired, Date needByDate) throws OseeCoreException {
art.setName(title);

Back to the top