1
|
package eu.dnetlib.rmi.blackboard;
|
2
|
|
3
|
import java.util.Map;
|
4
|
|
5
|
import com.google.common.collect.Maps;
|
6
|
|
7
|
import eu.dnetlib.enabling.annotations.Blackboard;
|
8
|
import eu.dnetlib.rmi.soap.ManagerWorkerService;
|
9
|
|
10
|
@Blackboard(action = "LAUNCH", serviceClass = ManagerWorkerService.class)
|
11
|
public class LaunchWorkflowMessage extends AbstractBlackboardMessage {
|
12
|
|
13
|
// Input parameters
|
14
|
private String procId;
|
15
|
private String metaWfId;
|
16
|
private String wfName;
|
17
|
private String wfType;
|
18
|
private int wfPriority;
|
19
|
private String wfXml;
|
20
|
private Map<String, String> wfParams = Maps.newHashMap();
|
21
|
|
22
|
// Output Parameters
|
23
|
private Map<String, String> logs = Maps.newHashMap();
|
24
|
private String currentNode = "";
|
25
|
|
26
|
public LaunchWorkflowMessage() {}
|
27
|
|
28
|
public LaunchWorkflowMessage(final String procId, final String metaWfId, final String wfName, final String wfType, final int wfPriority,
|
29
|
final String wfXml,
|
30
|
final Map<String, String> wfParams) {
|
31
|
this.procId = procId;
|
32
|
this.setMetaWfId(metaWfId);
|
33
|
this.wfName = wfName;
|
34
|
this.wfType = wfType;
|
35
|
this.wfPriority = wfPriority;
|
36
|
this.wfXml = wfXml;
|
37
|
this.wfParams = wfParams;
|
38
|
}
|
39
|
|
40
|
public final String getProcId() {
|
41
|
return procId;
|
42
|
}
|
43
|
|
44
|
public final void setProcId(final String procId) {
|
45
|
this.procId = procId;
|
46
|
}
|
47
|
|
48
|
public final String getWfName() {
|
49
|
return wfName;
|
50
|
}
|
51
|
|
52
|
public final void setWfName(final String wfName) {
|
53
|
this.wfName = wfName;
|
54
|
}
|
55
|
|
56
|
public final String getWfType() {
|
57
|
return wfType;
|
58
|
}
|
59
|
|
60
|
public final void setWfType(final String wfType) {
|
61
|
this.wfType = wfType;
|
62
|
}
|
63
|
|
64
|
public final int getWfPriority() {
|
65
|
return wfPriority;
|
66
|
}
|
67
|
|
68
|
public final void setWfPriority(final int wfPriority) {
|
69
|
this.wfPriority = wfPriority;
|
70
|
}
|
71
|
|
72
|
public final String getWfXml() {
|
73
|
return wfXml;
|
74
|
}
|
75
|
|
76
|
public final void setWfXml(final String wfXml) {
|
77
|
this.wfXml = wfXml;
|
78
|
}
|
79
|
|
80
|
public final Map<String, String> getWfParams() {
|
81
|
return wfParams;
|
82
|
}
|
83
|
|
84
|
public final void setWfParams(final Map<String, String> wfParams) {
|
85
|
this.wfParams = wfParams;
|
86
|
}
|
87
|
|
88
|
public final Map<String, String> getLogs() {
|
89
|
return logs;
|
90
|
}
|
91
|
|
92
|
public final void setLogs(final Map<String, String> logs) {
|
93
|
this.logs = logs;
|
94
|
}
|
95
|
|
96
|
public final String getCurrentNode() {
|
97
|
return currentNode;
|
98
|
}
|
99
|
|
100
|
public final void setCurrentNode(final String currentNode) {
|
101
|
this.currentNode = currentNode;
|
102
|
}
|
103
|
|
104
|
public String getMetaWfId() {
|
105
|
return metaWfId;
|
106
|
}
|
107
|
|
108
|
public void setMetaWfId(final String metaWfId) {
|
109
|
this.metaWfId = metaWfId;
|
110
|
}
|
111
|
|
112
|
}
|