Author: jeff.yuchang
Date: 2011-04-14 02:40:08 -0400 (Thu, 14 Apr 2011)
New Revision: 1353
Modified:
trunk/console/integration/src/main/java/org/jboss/soa/bpel/console/ProcessHistoryPluginImpl.java
Log:
*RIFTSAW-370, decode process definition id from the url.
Modified:
trunk/console/integration/src/main/java/org/jboss/soa/bpel/console/ProcessHistoryPluginImpl.java
===================================================================
---
trunk/console/integration/src/main/java/org/jboss/soa/bpel/console/ProcessHistoryPluginImpl.java 2011-04-13
14:16:34 UTC (rev 1352)
+++
trunk/console/integration/src/main/java/org/jboss/soa/bpel/console/ProcessHistoryPluginImpl.java 2011-04-14
06:40:08 UTC (rev 1353)
@@ -164,18 +164,21 @@
public String getCompletedInstances4Chart(String processDefinition, String
timespanValue) {
final Timespan timespan = TimespanFactory.fromValue(timespanValue);
- List<Event> events = ds.getInstanceEvents(processDefinition, timespan,
State.Closed_Completed);
+ String decodedId = ModelAdaptor.decodeId(processDefinition);
+ List<Event> events = ds.getInstanceEvents(decodedId, timespan,
State.Closed_Completed);
+
return createDatasetJSO(
new String[]{"Completed"}, timespan, true, events);
}
public String getFailedInstances4Chart(String processDefinition, String
timespanValue) {
final Timespan timespan = TimespanFactory.fromValue(timespanValue);
+ String decodedId = ModelAdaptor.decodeId(processDefinition);
- List<Event> completed = ds.getInstanceEvents(processDefinition, timespan,
State.Closed_Completed);
- List<Event> failed = ds.getInstanceEvents(processDefinition, timespan,
State.Closed_Completed_Failed);
- List<Event> terminated = ds.getInstanceEvents(processDefinition, timespan,
State.Closed_Cancelled_Terminated);
+ List<Event> completed = ds.getInstanceEvents(decodedId, timespan,
State.Closed_Completed);
+ List<Event> failed = ds.getInstanceEvents(decodedId, timespan,
State.Closed_Completed_Failed);
+ List<Event> terminated = ds.getInstanceEvents(decodedId, timespan,
State.Closed_Cancelled_Terminated);
return createDatasetJSO(
new String[]{"Completed", "Failed",
"Terminated"}, timespan, true, completed, failed, terminated);
Show replies by date