return (List<TaskSummary>) executeCommand(cmd);
}
@Override
public List<TaskSummary> getTasksByStatusByProcessInstanceId( long processInstanceId, List<Status> status, String language ) {
GetTasksByStatusByProcessInstanceIdCommand cmd = new GetTasksByStatusByProcessInstanceIdCommand();
cmd.setProcessInstanceId(processInstanceId);
if( status != null ) {
cmd.getStatuses().addAll(status);
}
// no query filter for language
return (List<TaskSummary>) executeCommand(cmd);
}