Hi Amalka, According to the offline chat we had, it was cleared out that the requirement is to retrieve tasks other than user tasks for a particular instance.
In this special case, BPMN names them as Activity. The following approach[1] will help you to retrieve the information required. [1] http://www.activiti.org/userguide/#restHistoricActivityInstancesGet Best regards, Amal. On Mon, Apr 4, 2016 at 10:23 PM, Amal Gunatilake <am...@wso2.com> wrote: > Hi Amalka, > > Try querying the process instances using *query/process-instances* > > The following reference[1] will guide you on how to query the instance > according to your instance details. > > [1] http://www.activiti.org/userguide/#_query_process_instances > > Best regards, > Amal. > > On Mon, Apr 4, 2016 at 8:58 PM, Amalka Subasinghe <ama...@wso2.com> wrote: > >> >> I tried to get it querying historic-task-instances. it always gives user >> tasks only. >> >> https://192.168.1.5:9453/bpmn/history/historic-task-instances?processInstanceId=22575 >> >> is there a better way to do this? >> >> Result of the query: >> >> { >> "sort": "taskInstanceId", >> "order": "asc", >> "start": 0, >> "total": 2, >> "data": [ >> { >> "processDefinitionUrl": " >> https://192.168.1.5:9453/bpmn/history/process-definitions/allocate_consultant_3:1:22542 >> ", >> "processInstanceUrl": " >> https://192.168.1.5:9453/bpmn/history/historic-process-instances/22575", >> "url": " >> https://192.168.1.5:9453/bpmn/history/historic-task-instances/22586", >> "tenantId": "-1234", >> "variables": [], >> "category": null, >> "processInstanceId": "22575", >> "formKey": null, >> "assignee": "admin", >> "dueDate": null, >> "executionId": "22583", >> "processDefinitionId": "allocate_consultant_3:1:22542", >> "taskDefinitionKey": "usertask2", >> "parentTaskId": null, >> "deleteReason": "completed", >> "durationInMillis": 651104, >> "workTimeInMillis": null, >> "claimTime": null, >> "endTime": 1459782351301, >> "startTime": 1459781700197, >> "description": null, >> "name": "Ready for Clearance", >> "id": "22586", >> "priority": 50, >> "owner": null >> }, >> { >> "processDefinitionUrl": " >> https://192.168.1.5:9453/bpmn/history/process-definitions/allocate_consultant_3:1:22542 >> ", >> "processInstanceUrl": " >> https://192.168.1.5:9453/bpmn/history/historic-process-instances/22575", >> "url": " >> https://192.168.1.5:9453/bpmn/history/historic-task-instances/22594", >> "tenantId": "-1234", >> "variables": [], >> "category": null, >> "processInstanceId": "22575", >> "formKey": null, >> "assignee": null, >> "dueDate": null, >> "executionId": "22591", >> "processDefinitionId": "allocate_consultant_3:1:22542", >> "taskDefinitionKey": "usertask9", >> "parentTaskId": null, >> "deleteReason": "deleted", >> "durationInMillis": 13, >> "workTimeInMillis": null, >> "claimTime": null, >> "endTime": 1459782356090, >> "startTime": 1459782356077, >> "description": null, >> "name": "Confirmed", >> "id": "22594", >> "priority": 50, >> "owner": null >> } >> ], >> "message": null, >> "size": 2 >> } >> >> Thanks >> Amalka >> > > > > -- > *Amal Gunatilake* > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > -- *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev