Support TOSCA functions in Node Filters
[sdc.git] / common-be / src / main / java / org / openecomp / sdc / be / datatypes / elements / OperationDataDefinition.java
index 84b6124..f93e41c 100644 (file)
 
 package org.openecomp.sdc.be.datatypes.elements;
 
-import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.IO_WORKFLOW_ASSOCIATION_TYPE;
-import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.IO_WORKFLOW_ID;
-import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.IO_WORKFLOW_VERSION_ID;
-
 import com.fasterxml.jackson.annotation.JsonCreator;
-import java.io.Serializable;
 import org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields;
 import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
 
+import java.io.Serializable;
+
+import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.IO_WORKFLOW_ASSOCIATION_TYPE;
+import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.IO_WORKFLOW_ID;
+import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.IO_WORKFLOW_NAME;
+import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.IO_WORKFLOW_VERSION;
+import static org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields.IO_WORKFLOW_VERSION_ID;
+
 public class OperationDataDefinition extends ToscaDataDefinition implements Serializable {
 
 
@@ -52,6 +55,8 @@ public class OperationDataDefinition extends ToscaDataDefinition implements Seri
         setWorkflowId(p.getWorkflowId());
         setWorkflowVersionId(p.getWorkflowVersionId());
         setWorkflowAssociationType(p.getWorkflowAssociationType());
+        setWorkflowName(p.getWorkflowName());
+        setWorkflowVersion(p.getWorkflowVersion());
     }
 
     public String getDescription() {
@@ -108,6 +113,14 @@ public class OperationDataDefinition extends ToscaDataDefinition implements Seri
         setToscaPresentationValue(IO_WORKFLOW_ID, workflowId);
     }
 
+    public String getWorkflowName() {
+        return (String) getToscaPresentationValue(IO_WORKFLOW_NAME);
+    }
+
+    public void setWorkflowName(String workflowName) {
+        setToscaPresentationValue(IO_WORKFLOW_NAME, workflowName);
+    }
+
     public String getWorkflowVersionId() {
         return (String) getToscaPresentationValue(IO_WORKFLOW_VERSION_ID);
     }
@@ -116,6 +129,14 @@ public class OperationDataDefinition extends ToscaDataDefinition implements Seri
         setToscaPresentationValue(IO_WORKFLOW_VERSION_ID, workflowVersionId);
     }
 
+    public String getWorkflowVersion() {
+        return (String) getToscaPresentationValue(IO_WORKFLOW_VERSION);
+    }
+
+    public void setWorkflowVersion(String workflowVersion) {
+        setToscaPresentationValue(IO_WORKFLOW_VERSION, workflowVersion);
+    }
+
     public String getWorkflowAssociationType() {
         return (String) getToscaPresentationValue(IO_WORKFLOW_ASSOCIATION_TYPE);
     }