aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-be
diff options
context:
space:
mode:
authorayalaben <ayala.benzvi@amdocs.com>2018-06-24 10:42:43 +0300
committerayalaben <ayala.benzvi@amdocs.com>2018-06-24 10:42:43 +0300
commit3fb47c47b301bf8f401cabf63b13f17a39182d85 (patch)
treecef77fe574ee1c24ad4da42149fea42cedd8e450 /workflow-designer-be
parent61c926695f5bd5977dc10a77010b0500a16bb6a1 (diff)
BDD cucumber
Change-Id: I34f9950dab1c15f8c19da5f696783d793ee3511f Issue-ID: SDC-1442 Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
Diffstat (limited to 'workflow-designer-be')
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java
index d5d9851e..aa4bb6f6 100644
--- a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java
@@ -50,6 +50,7 @@ public class WorkflowManagerImpl implements WorkflowManager {
public void create(Workflow workflow) {
Item item = workflowMapper.workflowToItem(workflow);
item.setStatus(ItemStatus.ACTIVE);
+ item.setType(WORKFLOW_TYPE);
uniqueValueService.validateUniqueValue(WORKFLOW_NAME_UNIQUE_TYPE, new String[]{workflow.getName()});
workflow.setId(itemManager.create(item).getId());
@@ -69,7 +70,7 @@ public class WorkflowManagerImpl implements WorkflowManager {
item.setId(workflow.getId());
item.setStatus(retrievedItem.getStatus());
item.setVersionStatusCounters(retrievedItem.getVersionStatusCounters());
-
+ item.setType(retrievedItem.getType());
itemManager.update(item);
}
}