Project

General

Profile

« Previous | Next » 

Revision 44404

last execution date/status for wfTemplates

View differences:

WorkflowsConstants.java
23 23
	public static final String LOG_WF_PROCESS_STATUS = "system:processStatus";
24 24
	public static final String LOG_WF_PROCESS_START_DATE = "system:startDate";
25 25
	public static final String LOG_WF_PROCESS_END_DATE = "system:endDate";
26
	public static final String LOG_WF_PARENT = "system:parentProfileId";
26 27

  
27 28
	public static final String LOG_SYSTEM_ERROR = "system:error";
28 29
	public static final String LOG_SYSTEM_ERROR_STACKTRACE = "system:error:stacktrace";
......
57 58
	@SuppressWarnings("unchecked")
58 59
	public void init() {
59 60
		final Gson gson = new Gson();
60
		this.datasourceProtocols = gson.fromJson(this.datasourceProtocolsJson, List.class);
61
		this.datasourceTypologies = gson.fromJson(this.datasourceTypologiesJson, List.class);
62
		this.datasourceWorkflowStatuses = new ArrayList<>();
61
		datasourceProtocols = gson.fromJson(datasourceProtocolsJson, List.class);
62
		datasourceTypologies = gson.fromJson(datasourceTypologiesJson, List.class);
63
		datasourceWorkflowStatuses = new ArrayList<>();
63 64
		for (final WorkflowStatus s : WorkflowStatus.values()) {
64 65
			final Map<String, String> map = new HashMap<>();
65 66
			map.put("name", s.displayName);
66 67
			map.put("icon", s.icon);
67 68
			map.put("value", s.toString());
68
			this.datasourceWorkflowStatuses.add(map);
69
			datasourceWorkflowStatuses.add(map);
69 70
		}
70 71
	}
71 72

  
72 73
	public String getDatasourceProtocolsJson() {
73
		return this.datasourceProtocolsJson;
74
		return datasourceProtocolsJson;
74 75
	}
75 76

  
76 77
	@Required
......
79 80
	}
80 81

  
81 82
	public String getDatasourceTypologiesJson() {
82
		return this.datasourceTypologiesJson;
83
		return datasourceTypologiesJson;
83 84
	}
84 85

  
85 86
	@Required
......
88 89
	}
89 90

  
90 91
	public List<Map<String, String>> getDatasourceProtocols() {
91
		return this.datasourceProtocols;
92
		return datasourceProtocols;
92 93
	}
93 94

  
94 95
	public List<Map<String, String>> getDatasourceTypologies() {
95
		return this.datasourceTypologies;
96
		return datasourceTypologies;
96 97
	}
97 98

  
98 99
	public List<Map<String, String>> getDatasourceWorkflowStatuses() {
99
		return this.datasourceWorkflowStatuses;
100
		return datasourceWorkflowStatuses;
100 101
	}
101 102

  
102 103
	public enum WorkflowStatus {

Also available in: Unified diff