-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAction.java
More file actions
60 lines (46 loc) · 1.16 KB
/
Action.java
File metadata and controls
60 lines (46 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.apiflows.model;
import java.util.ArrayList;
import java.util.List;
public abstract class Action {
private String name;
private String type;
private String workflowId;
private String stepId;
private List<Criterion> criteria;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getWorkflowId() {
return workflowId;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public String getStepId() {
return stepId;
}
public void setStepId(String stepId) {
this.stepId = stepId;
}
public List<Criterion> getCriteria() {
return criteria;
}
public void setCriteria(List<Criterion> criteria) {
this.criteria = criteria;
}
public void addCriteria(Criterion criterion) {
if (this.criteria == null) {
this.criteria = new ArrayList<>();
}
this.criteria.add(criterion);
}
}