diff options
author | Lvbo163 <lv.bo163@zte.com.cn> | 2017-09-25 11:15:44 +0800 |
---|---|---|
committer | Lvbo163 <lv.bo163@zte.com.cn> | 2017-09-25 11:15:44 +0800 |
commit | ca348c1f2d124db5059df7b1d37253539f5a0856 (patch) | |
tree | 284499b9261f0afce030f8e13fe75f2d880e484f | |
parent | dcc2640d35dcae27f8babeeeff8d7954b1a307d3 (diff) |
Add basic BPMN element definition
Issue-ID: SDC-387
Change-Id: Ic0ffc8db222d30d7f02776eedc543536711bd55f
Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2 files changed, 111 insertions, 0 deletions
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Element.java b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Element.java new file mode 100644 index 00000000..8b06466d --- /dev/null +++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Element.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;
+
+import java.util.List;
+
+public class Element {
+ private String id;
+ private String name;
+ private String type;
+ private String documentation;
+ private Position position;
+ private List<String> connections;
+
+ public String getId() {
+ return id;
+ }
+ public Position getPosition() {
+ return position;
+ }
+ public void setPosition(Position position) {
+ this.position = position;
+ }
+ public List<String> getConnections() {
+ return connections;
+ }
+ public void setConnections(List<String> connections) {
+ this.connections = connections;
+ }
+ public void setId(String id) {
+ this.id = id;
+ }
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public String getDocumentation() {
+ return documentation;
+ }
+ public void setDocumentation(String documentation) {
+ this.documentation = documentation;
+ }
+ public String getType() {
+ return type;
+ }
+ public void setType(String type) {
+ this.type = type;
+ }
+
+}
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 new file mode 100644 index 00000000..d6f04541 --- /dev/null +++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/model/Process.java @@ -0,0 +1,50 @@ +package org.onap.sdc.workflowdesigner.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class Process {
+ private String id;
+ 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;
+ }
+
+ public String getId() {
+ return id;
+ }
+ public void setId(String id) {
+ this.id = id;
+ }
+ public boolean isExecutable() {
+ return isExecutable;
+ }
+ public void setExecutable(boolean isExecutable) {
+ this.isExecutable = isExecutable;
+ }
+ public List<Element> getElementList() {
+ return elementList;
+ }
+ public void setElementList(List<Element> elementList) {
+ this.elementList = elementList;
+ }
+ public List<SequenceFlow> getSequenceFlowList() {
+ return sequenceFlowList;
+ }
+ public void setSequenceFlowList(List<SequenceFlow> sequenceFlowList) {
+ this.sequenceFlowList = sequenceFlowList;
+ }
+
+ public List<DataObject> getDataObjectList() {
+ return dataObjectList;
+ }
+
+ public void setDataObjectList(List<DataObject> dataObjectList) {
+ this.dataObjectList = dataObjectList;
+ }
+
+}
|