AnsweredAssumed Answered

All process definitions are not showing with REST

Question asked by kris1 on Oct 19, 2015
I invoked the following URL thru REST Client.
http://localhost:8181/activiti-rest/service/repository/process-definitions
I got only 6 definitons. I have few more in the system and I am able see them in activit explorer and able to execute them either from standalone Java code or thru activit explorer.
I tried http://localhost:8181/activiti-rest/service/repository/process-definitions?size=1000
But still same problem.
Why the REST API not showing up all the processes which I deployed? I see only the following.

{
  "data": [
    {
      "id": "createTimersProcess:1:31",
      "url": "http://localhost:8181/activiti-rest/service/repository/process-definitions/createTimersProcess:1:31",
      "key": "createTimersProcess",
      "version": 1,
      "name": "Create timers process",
      "description": "Test process to create a number of timers.",
      "tenantId": "",
      "deploymentId": "20",
      "deploymentUrl": "http://localhost:8181/activiti-rest/service/repository/deployments/20",
      "resource": "http://localhost:8181/activiti-rest/service/repository/deployments/20/resources/createTimersProcess.bpmn20.xml",
      "diagramResource": null,
      "category": "Examples",
      "graphicalNotationDefined": false,
      "suspended": false,
      "startFormDefined": false
    },
    {
      "id": "oneTaskProcess:1:34",
      "url": "http://localhost:8181/activiti-rest/service/repository/process-definitions/oneTaskProcess:1:34",
      "key": "oneTaskProcess",
      "version": 1,
      "name": "Famous One Task Process",
      "description": null,
      "tenantId": "",
      "deploymentId": "20",
      "deploymentUrl": "http://localhost:8181/activiti-rest/service/repository/deployments/20",
      "resource": "http://localhost:8181/activiti-rest/service/repository/deployments/20/resources/oneTaskProcess.bpmn20.xml",
      "diagramResource": null,
      "category": "Examples",
      "graphicalNotationDefined": false,
      "suspended": false,
      "startFormDefined": false
    },
    {
      "id": "fixSystemFailure:1:35",
      "url": "http://localhost:8181/activiti-rest/service/repository/process-definitions/fixSystemFailure:1:35",
      "key": "fixSystemFailure",
      "version": 1,
      "name": "Fix system failure",
      "description": null,
      "tenantId": "",
      "deploymentId": "20",
      "deploymentUrl": "http://localhost:8181/activiti-rest/service/repository/deployments/20",
      "resource": "http://localhost:8181/activiti-rest/service/repository/deployments/20/resources/FixSystemFailureProcess.bpmn20.xml",
      "diagramResource": "http://localhost:8181/activiti-rest/service/repository/deployments/20/resources/FixSystemFailureProcess.png",
      "category": "Examples",
      "graphicalNotationDefined": false,
      "suspended": false,
      "startFormDefined": false
    },
    {
      "id": "escalationExample:1:36",
      "url": "http://localhost:8181/activiti-rest/service/repository/process-definitions/escalationExample:1:36",
      "key": "escalationExample",
      "version": 1,
      "name": "Helpdesk process",
      "description": null,
      "tenantId": "",
      "deploymentId": "20",
      "deploymentUrl": "http://localhost:8181/activiti-rest/service/repository/deployments/20",
      "resource": "http://localhost:8181/activiti-rest/service/repository/deployments/20/resources/Helpdesk.bpmn20.xml",
      "diagramResource": "http://localhost:8181/activiti-rest/service/repository/deployments/20/resources/Helpdesk.png",
      "category": "Examples",
      "graphicalNotationDefined": false,
      "suspended": false,
      "startFormDefined": false
    },
    {
      "id": "reviewSaledLead:1:32",
      "url": "http://localhost:8181/activiti-rest/service/repository/process-definitions/reviewSaledLead:1:32",
      "key": "reviewSaledLead",
      "version": 1,
      "name": "Review sales lead",
      "description": null,
      "tenantId": "",
      "deploymentId": "20",
      "deploymentUrl": "http://localhost:8181/activiti-rest/service/repository/deployments/20",
      "resource": "http://localhost:8181/activiti-rest/service/repository/deployments/20/resources/reviewSalesLead.bpmn20.xml",
      "diagramResource": "http://localhost:8181/activiti-rest/service/repository/deployments/20/resources/reviewSalesLead.reviewSaledLead.png",
      "category": "Examples",
      "graphicalNotationDefined": true,
      "suspended": false,
      "startFormDefined": false
    },
    {
      "id": "vacationRequest:1:33",
      "url": "http://localhost:8181/activiti-rest/service/repository/process-definitions/vacationRequest:1:33",
      "key": "vacationRequest",
      "version": 1,
      "name": "Vacation request",
      "description": null,
      "tenantId": "",
      "deploymentId": "20",
      "deploymentUrl": "http://localhost:8181/activiti-rest/service/repository/deployments/20",
      "resource": "http://localhost:8181/activiti-rest/service/repository/deployments/20/resources/VacationRequest.bpmn20.xml",
      "diagramResource": "http://localhost:8181/activiti-rest/service/repository/deployments/20/resources/VacationRequest.png",
      "category": "http://activiti.org/bpmn20",
      "graphicalNotationDefined": false,
      "suspended": false,
      "startFormDefined": false
    }
  ],
  "total": 6,
  "start": 0,
  "sort": "name",
  "order": "asc",
  "size": 6
}

Outcomes