4c362231f0634b0159e9dc8e9db58c7ebfad329e
[sdc/sdc-workflow-designer.git] /
1 /**
2  * Copyright (c) 2017-2018 ZTE Corporation.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the Apache License, Version 2.0
5  * and the Eclipse Public License v1.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     ZTE - initial API and implementation and/or initial documentation
11  */
12 package org.onap.sdc.workflowdesigner.model;
13
14 import java.util.List;
15
16 public class Element {
17     public enum TYPE {
18                 startEvent, 
19                 endEvent, 
20                 errorStartEvent,
21                 errorEndEvent,
22                 serviceTask, 
23                 scriptTask,
24                 exclusiveGateway, 
25                 parallelGateway, 
26                 restTask, 
27                 intermediateCatchEvent
28     };
29
30     private String id;
31     private String name;
32     private TYPE type;
33     private String documentation;
34     private Position position;
35     private List<String> connections;
36
37     public String getId() {
38         return id;
39     }
40
41     public Position getPosition() {
42         return position;
43     }
44
45     public void setPosition(Position position) {
46         this.position = position;
47     }
48
49     public List<String> getConnections() {
50         return connections;
51     }
52
53     public void setConnections(List<String> connections) {
54         this.connections = connections;
55     }
56
57     public void setId(String id) {
58         this.id = id;
59     }
60
61     public String getName() {
62         return name;
63     }
64
65     public void setName(String name) {
66         this.name = name;
67     }
68
69     public String getDocumentation() {
70         return documentation;
71     }
72
73     public void setDocumentation(String documentation) {
74         this.documentation = documentation;
75     }
76
77     public TYPE getType() {
78         return type;
79     }
80
81     public void setType(TYPE type) {
82         this.type = type;
83     }
84
85 }