Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/task/TaskArtifact.java16
-rw-r--r--plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/workflow/AbstractWorkflowArtifact.java16
2 files changed, 13 insertions, 19 deletions
diff --git a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/task/TaskArtifact.java b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/task/TaskArtifact.java
index 73cc7ebe0d9..53e5fbd3bf7 100644
--- a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/task/TaskArtifact.java
+++ b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/task/TaskArtifact.java
@@ -21,7 +21,6 @@ import org.eclipse.osee.ats.core.type.AtsAttributeTypes;
import org.eclipse.osee.ats.core.type.AtsRelationTypes;
import org.eclipse.osee.ats.core.workdef.StateDefinition;
import org.eclipse.osee.ats.core.workflow.AbstractWorkflowArtifact;
-import org.eclipse.osee.ats.core.workflow.StateManager;
import org.eclipse.osee.ats.core.workflow.log.AtsLog;
import org.eclipse.osee.ats.core.workflow.log.LogItem;
import org.eclipse.osee.ats.core.workflow.log.LogType;
@@ -123,21 +122,6 @@ public class TaskArtifact extends AbstractWorkflowArtifact implements IATSStateM
}
@Override
- public List<IBasicUser> getImplementers() throws OseeCoreException {
- List<IBasicUser> implementers = new ArrayList<IBasicUser>();
- if (isCompleted()) {
- String completedFromStateStr = getSoleAttributeValue(AtsAttributeTypes.CompletedFromState, "");
- if (Strings.isValid(completedFromStateStr)) {
- StateDefinition completedFromState = getWorkDefinition().getStateByName(completedFromStateStr);
- if (completedFromState != null) {
- implementers.addAll(StateManager.getAssigneesByState(this, completedFromState));
- }
- }
- }
- return implementers;
- }
-
- @Override
public double getWorldViewWeeklyBenefit() {
return 0;
}
diff --git a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/workflow/AbstractWorkflowArtifact.java b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/workflow/AbstractWorkflowArtifact.java
index a41c1275e25..8478c42739b 100644
--- a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/workflow/AbstractWorkflowArtifact.java
+++ b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/workflow/AbstractWorkflowArtifact.java
@@ -12,7 +12,6 @@ package org.eclipse.osee.ats.core.workflow;
import java.util.ArrayList;
import java.util.Collection;
-import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
@@ -123,9 +122,20 @@ public abstract class AbstractWorkflowArtifact extends AbstractAtsArtifact imple
return getArtifactTypeName();
}
- @SuppressWarnings("unused")
public List<IBasicUser> getImplementers() throws OseeCoreException {
- return Collections.emptyList();
+ List<IBasicUser> implementers = new ArrayList<IBasicUser>();
+ if (isCompleted()) {
+ String completedFromState = getSoleAttributeValue(AtsAttributeTypes.CompletedFromState, "");
+ if (Strings.isValid(completedFromState)) {
+ StateDefinition stateDef = getWorkDefinition().getStateByName(completedFromState);
+ for (IBasicUser user : getStateMgr().getAssignees(stateDef)) {
+ if (!implementers.contains(user)) {
+ implementers.add(user);
+ }
+ }
+ }
+ }
+ return implementers;
}
@SuppressWarnings("unused")

Back to the top