01: package xflow.forms;
02:
03: import org.apache.struts.action.*;
04: import javax.servlet.http.HttpServletRequest;
05:
06: public class StartWorkflowForm extends ActionForm {
07:
08: private String workflowName;
09: private String model;
10: private String modelVersion;
11: private String payloadType;
12: private String payload;
13: private boolean isChanged = false;
14:
15: public String getWorkflowName() {
16: return workflowName;
17: }
18:
19: public void setWorkflowName(String WorkflowName) {
20: this .workflowName = WorkflowName;
21: isChanged = true;
22:
23: }
24:
25: public String getModel() {
26: return model;
27: }
28:
29: public void setModel(String Model) {
30: this .model = Model;
31: isChanged = true;
32:
33: }
34:
35: public String getModelVersion() {
36: return modelVersion;
37: }
38:
39: public void setModelVersion(String ModelVersion) {
40: this .modelVersion = ModelVersion;
41: isChanged = true;
42:
43: }
44:
45: public String getPayloadType() {
46: return payloadType;
47: }
48:
49: public void setPayloadType(String PayloadType) {
50: this .payloadType = PayloadType;
51: isChanged = true;
52:
53: }
54:
55: public String getPayload() {
56: return payload;
57: }
58:
59: public void setPayload(String Payload) {
60: this .payload = Payload;
61: isChanged = true;
62:
63: }
64:
65: public boolean hasChanged() {
66: return isChanged;
67: }
68:
69: public void reset(ActionMapping mapping, HttpServletRequest request) {
70:
71: workflowName = null;
72: model = null;
73: modelVersion = null;
74: payloadType = null;
75: payload = null;
76: isChanged = false;
77:
78: }
79:
80: }
|