summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLvbo163 <lv.bo163@zte.com.cn>2017-09-25 15:24:31 +0800
committerLvbo163 <lv.bo163@zte.com.cn>2017-09-25 15:24:31 +0800
commitd3f700697c117a152c6c06fc8364b199b3825005 (patch)
treea1c41d9f955519aa74605abb761efed9b5870328
parent110e565e1621fa4b9cc4d34ab62c3ebaf0295ab6 (diff)
Add BPMN sequence flow definition
Issue-ID: SDC-391 Change-Id: I152a0f8da85d04e3b594dfae71bd99ac1dbf1276 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
-rw-r--r--sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Position.java30
-rw-r--r--sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Process.java21
-rw-r--r--sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/SequenceFlow.java61
3 files changed, 103 insertions, 9 deletions
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
index 00000000..f227bac4
--- /dev/null
+++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Position.java
@@ -0,0 +1,30 @@
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+public class Position {
+ private int left;
+ private int top;
+
+ public int getLeft() {
+ return left;
+ }
+ public void setLeft(int left) {
+ this.left = left;
+ }
+ public int getTop() {
+ return top;
+ }
+ public void setTop(int top) {
+ this.top = top;
+ }
+}
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Process.java b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Process.java
index d6f04541..e8f9a6ea 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Process.java
+++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Process.java
@@ -1,3 +1,15 @@
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+
package org.onap.sdc.workflowdesigner.model;
import java.util.ArrayList;
@@ -8,7 +20,6 @@ public class Process {
private boolean isExecutable;
private List<Element> elementList = new ArrayList<Element>();
private List<SequenceFlow> sequenceFlowList = new ArrayList<SequenceFlow>();
- private List<DataObject> dataObjectList = new ArrayList<DataObject>();
public Process(String id) {
this.id = id;
@@ -39,12 +50,4 @@ public class Process {
this.sequenceFlowList = sequenceFlowList;
}
- public List<DataObject> getDataObjectList() {
- return dataObjectList;
- }
-
- public void setDataObjectList(List<DataObject> dataObjectList) {
- this.dataObjectList = dataObjectList;
- }
-
}
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
index 00000000..5e664cf6
--- /dev/null
+++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/SequenceFlow.java
@@ -0,0 +1,61 @@
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.model;
+
+public class SequenceFlow {
+ private String id = "";
+ private String name;
+ private String sourceRef;
+ private String targetRef;
+ private String documentation;
+ private String condition;
+
+ public String getId() {
+ return id;
+ }
+ public void setId(String id) {
+ this.id = id;
+ }
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public String getSourceRef() {
+ return sourceRef;
+ }
+ public void setSourceRef(String sourceRef) {
+ this.sourceRef = sourceRef;
+ }
+ public String getTargetRef() {
+ return targetRef;
+ }
+ public void setTargetRef(String targetRef) {
+ this.targetRef = targetRef;
+ }
+ public String getDocumentation() {
+ return documentation;
+ }
+ public void setDocumentation(String documentation) {
+ this.documentation = documentation;
+ }
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public void setCondition(String condition) {
+ this.condition = condition;
+ }
+
+}