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(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);