From: Lvbo163 Date: Mon, 25 Sep 2017 07:24:31 +0000 (+0800) Subject: Add BPMN sequence flow definition X-Git-Tag: v1.0.0~28 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F14957%2F1;p=sdc%2Fsdc-workflow-designer.git Add BPMN sequence flow definition Issue-ID: SDC-391 Change-Id: I152a0f8da85d04e3b594dfae71bd99ac1dbf1276 Signed-off-by: Lvbo163 --- 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 elementList = new ArrayList(); private List sequenceFlowList = new ArrayList(); - private List dataObjectList = new ArrayList(); public Process(String id) { this.id = id; @@ -39,12 +50,4 @@ public class Process { this.sequenceFlowList = sequenceFlowList; } - public List getDataObjectList() { - return dataObjectList; - } - - public void setDataObjectList(List 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; + } + +}