AnsweredAssumed Answered

Problem with 'Get Process Instance Details' Java API

Question asked by madhusudanjoshi on Aug 20, 2013
Latest reply on Aug 23, 2013 by madhusudanjoshi
I am using Activiti 5.12. You have provided REST API to get he details of a process instance, i.e :
GET /process-instance/{processInstanceId}
Response :
    "id": "2",
    "processDefinitionId": "financialReport:1",
    "businessKey": "55",
    "startTime": "2010-10-13T14:54:26.750+02:00",
    "startActivityId": "startFinancialAnalysis",
    "startUserId": "kermit",
    "completed": false,
    "tasks": [
        "taskId": "3",
        "taskName": "Analyze report",
        "owner": null,
        "assignee": "Kermit",
        "startTime": "2010-10-13T14:53:26.750+02:00",
        "completed": false
    "activities": [
        "activityId": "4",
        "activityName": "Get report",
        "activityType": "ServiceTask",
        "startTime": "2010-10-13T14:53:25.750+02:00",
        "completed": true,
        "startTime": "2010-10-13T14:53:25.950+02:00",
        "duration": 200
    "variables": [
        "variableName": "reportName",
        "variableValue": "classified.pdf",
    "historyVariables": [
        "variableName": "reportName",
        "variableValue": "classified.pdf",
        "variableType": "String",
        "revision": 1,
        "time": "2010-10-13T14:53:26.750+02:00"
Respective JAVA API as provided in user guide is :

This API returns an HistoricProcessInstance, and it does not contain any methods to get the list of tasks.
I need those list of tasks to know which state the process instance is, that means which tasks are completed or which is not.

Can you please help me in that.