Add BPMN sequence flow definition 57/14957/1
authorLvbo163 <lv.bo163@zte.com.cn>
Mon, 25 Sep 2017 07:24:31 +0000 (15:24 +0800)
committerLvbo163 <lv.bo163@zte.com.cn>
Mon, 25 Sep 2017 07:24:31 +0000 (15:24 +0800)
Issue-ID: SDC-391

Change-Id: I152a0f8da85d04e3b594dfae71bd99ac1dbf1276
Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Position.java [new file with mode: 0644]
sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Process.java
sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/SequenceFlow.java [new file with mode: 0644]

diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Position.java b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Position.java
new file mode 100644 (file)
index 0000000..f227bac
--- /dev/null
@@ -0,0 +1,30 @@
+/**\r
+ * Copyright (c) 2017 ZTE Corporation.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * and the Apache License 2.0 which both accompany this distribution,\r
+ * and are available at http://www.eclipse.org/legal/epl-v10.html\r
+ * and http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Contributors:\r
+ *     ZTE - initial API and implementation and/or initial documentation\r
+ */\r
+package org.onap.sdc.workflowdesigner.model;\r
+\r
+public class Position {\r
+       private int left;\r
+       private int top;\r
+       \r
+       public int getLeft() {\r
+               return left;\r
+       }\r
+       public void setLeft(int left) {\r
+               this.left = left;\r
+       }\r
+       public int getTop() {\r
+               return top;\r
+       }\r
+       public void setTop(int top) {\r
+               this.top = top;\r
+       }\r
+}\r
index d6f0454..e8f9a6e 100644 (file)
@@ -1,3 +1,15 @@
+/**\r
+ * Copyright (c) 2017 ZTE Corporation.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * and the Apache License 2.0 which both accompany this distribution,\r
+ * and are available at http://www.eclipse.org/legal/epl-v10.html\r
+ * and http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Contributors:\r
+ *     ZTE - initial API and implementation and/or initial documentation\r
+ */\r
+\r
 package org.onap.sdc.workflowdesigner.model;\r
 \r
 import java.util.ArrayList;\r
@@ -8,7 +20,6 @@ public class Process {
        private boolean isExecutable;\r
        private List<Element> elementList = new ArrayList<Element>();\r
        private List<SequenceFlow> sequenceFlowList = new ArrayList<SequenceFlow>();\r
-       private List<DataObject> dataObjectList = new ArrayList<DataObject>();\r
        \r
        public Process(String id) {\r
                this.id = id;\r
@@ -39,12 +50,4 @@ public class Process {
                this.sequenceFlowList = sequenceFlowList;\r
        }\r
 \r
-       public List<DataObject> getDataObjectList() {\r
-               return dataObjectList;\r
-       }\r
-\r
-       public void setDataObjectList(List<DataObject> dataObjectList) {\r
-               this.dataObjectList = dataObjectList;\r
-       }\r
-\r
 }\r
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/SequenceFlow.java b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/SequenceFlow.java
new file mode 100644 (file)
index 0000000..5e664cf
--- /dev/null
@@ -0,0 +1,61 @@
+/**\r
+ * Copyright (c) 2017 ZTE Corporation.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * and the Apache License 2.0 which both accompany this distribution,\r
+ * and are available at http://www.eclipse.org/legal/epl-v10.html\r
+ * and http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Contributors:\r
+ *     ZTE - initial API and implementation and/or initial documentation\r
+ */\r
+package org.onap.sdc.workflowdesigner.model;\r
+\r
+public class SequenceFlow {\r
+       private String id = "";\r
+       private String name;\r
+       private String sourceRef;\r
+       private String targetRef;\r
+       private String documentation;\r
+       private String condition;\r
+       \r
+       public String getId() {\r
+               return id;\r
+       }\r
+       public void setId(String id) {\r
+               this.id = id;\r
+       }\r
+       public String getName() {\r
+               return name;\r
+       }\r
+       public void setName(String name) {\r
+               this.name = name;\r
+       }\r
+       public String getSourceRef() {\r
+               return sourceRef;\r
+       }\r
+       public void setSourceRef(String sourceRef) {\r
+               this.sourceRef = sourceRef;\r
+       }\r
+       public String getTargetRef() {\r
+               return targetRef;\r
+       }\r
+       public void setTargetRef(String targetRef) {\r
+               this.targetRef = targetRef;\r
+       }\r
+       public String getDocumentation() {\r
+               return documentation;\r
+       }\r
+       public void setDocumentation(String documentation) {\r
+               this.documentation = documentation;\r
+       }\r
+\r
+       public String getCondition() {\r
+               return condition;\r
+       }\r
+\r
+       public void setCondition(String condition) {\r
+               this.condition = condition;\r
+       }\r
+       \r
+}\r