diff options
Diffstat (limited to 'plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/workitem/AtsRuleEndpointImpl.java')
-rw-r--r-- | plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/workitem/AtsRuleEndpointImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/workitem/AtsRuleEndpointImpl.java b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/workitem/AtsRuleEndpointImpl.java index 7bc603c7057..9f34299b7e4 100644 --- a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/workitem/AtsRuleEndpointImpl.java +++ b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/workitem/AtsRuleEndpointImpl.java @@ -64,7 +64,7 @@ public class AtsRuleEndpointImpl implements AtsRuleEndpointApi { List<IAtsWorkItem> workItemsCreated = new LinkedList<>(); for (long workflowUuid : runRuleData.getWorkItemUuids()) { - ArtifactReadable artifact = atsServer.getArtifactByUuid(workflowUuid); + ArtifactReadable artifact = atsServer.getArtifact(workflowUuid); IAtsWorkItem workItem = atsServer.getWorkItemFactory().getWorkItem(artifact); if (workItem == null) { throw new OseeArgumentException("Workflow of uuid [%d] does not exist", workflowUuid); @@ -86,7 +86,7 @@ public class AtsRuleEndpointImpl implements AtsRuleEndpointApi { @Path("rule") @Override public Response addRuleToConfig(AddRuleData setRuleData) { - ArtifactReadable artifact = atsServer.getArtifactByUuid(setRuleData.getConfigItemUuid()); + ArtifactReadable artifact = atsServer.getArtifact(setRuleData.getConfigItemUuid()); List<String> ruleList = artifact.getAttributeValues(AtsAttributeTypes.RuleDefinition); if (!ruleList.contains(setRuleData.getRuleName())) { IAtsChangeSet changes = |