public Map<String, Integer> choiceDistribution(String processDefinitionId, String activityName) {
return (Map) commandService.execute(new ChoiceDistributionQueryCmd(processDefinitionId, activityName));
}
public HistoryProcessInstanceQuery createHistoryProcessInstanceQuery() {
HistoryProcessInstanceQueryImpl query = commandService.execute(new CreateHistoryProcessInstanceQueryCmd());
query.setCommandService(commandService);
return query;
}