cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti-REST : correction

jplaux
Champ in-the-making
Champ in-the-making
Hi,

I have tried to sort Historic Task Instance with startTime and that didn't work.

In the code, you have :
public class HistoricTaskInstanceBaseResource extends SecuredResource {

  private static Map<String, QueryProperty> allowedSortProperties = new HashMap<String, QueryProperty>();

  static {
    allowedSortProperties.put("deleteReason", HistoricTaskInstanceQueryProperty.DELETE_REASON);
    allowedSortProperties.put("duration", HistoricTaskInstanceQueryProperty.DURATION);
    allowedSortProperties.put("endTime", HistoricTaskInstanceQueryProperty.END);
    allowedSortProperties.put("executionId", HistoricTaskInstanceQueryProperty.EXECUTION_ID);
    allowedSortProperties.put("taskInstanceId", HistoricTaskInstanceQueryProperty.HISTORIC_TASK_INSTANCE_ID);
    allowedSortProperties.put("processDefinitionId", HistoricTaskInstanceQueryProperty.PROCESS_DEFINITION_ID);
    allowedSortProperties.put("processInstanceId", HistoricTaskInstanceQueryProperty.PROCESS_INSTANCE_ID);
    allowedSortProperties.put("start", HistoricTaskInstanceQueryProperty.START);

I think start should be startTime

1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Thanks for reporting this inconsistent naming. I've added another option (startTime) on top of the existing options, to keep backwards-compatibility for people already using that.