AnsweredAssumed Answered

Pourquoi je n'arrives pas a trouver la définition de mon fichier bpmn2 déployé lorsque je fais un appel REST dans Activiti-Rest

Question asked by f4khri on Mar 8, 2018
Latest reply on Mar 8, 2018 by f4khri

dans activiti-explorer je trouve mon fichier déployé et sa définition dans la liste des "process-definition"
mais lorsque j'effectue un appel Rest sur activiti-rest

je ne trouves pas la définition de mon fichier déployé

voila la requête : 

GET /activiti-rest/service/repository/process-definitions HTTP/1.1
Host: localhost:8100

et voila la réponse :

{
"data": [
{
"id": "createTimersProcess:1:31",
"url": "http://localhost:8100/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:8100/activiti-rest/service/repository/deployments/20",
"resource": "http://localhost:8100/activiti-rest/service/repository/deployments/20/resources/createTimersProcess.bpmn20.xml",
"diagramResource": null,
"category": "Examples",
"graphicalNotationDefined": false,
"suspended": false,
"startFormDefined": false
},
{
"id": "employee-productivity-report:1:2510",
"url": "http://localhost:8100/activiti-rest/service/repository/process-definitions/employee-productivity-report:1:2510",
"key": "employee-productivity-report",
"version": 1,
"name": "Employee productivity",
"description": null,
"tenantId": "",
"deploymentId": "2504",
"deploymentUrl": "http://localhost:8100/activiti-rest/service/repository/deployments/2504",
"resource": "http://localhost:8100/activiti-rest/service/repository/deployments/2504/resources/org/activiti/explorer/demo/process/reports/employeeProductivity.bpmn20.xml",
"diagramResource": null,
"category": "activiti-report",
"graphicalNotationDefined": false,
"suspended": false,
"startFormDefined": false
},
{
"id": "oneTaskProcess:1:34",
"url": "http://localhost:8100/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:8100/activiti-rest/service/repository/deployments/20",
"resource": "http://localhost:8100/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:8100/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:8100/activiti-rest/service/repository/deployments/20",
"resource": "http://localhost:8100/activiti-rest/service/repository/deployments/20/resources/FixSystemFailureProcess.bpmn20.xml",
"diagramResource": "http://localhost:8100/activiti-rest/service/repository/deployments/20/resources/FixSystemFailureProcess.png",
"category": "Examples",
"graphicalNotationDefined": false,
"suspended": false,
"startFormDefined": false
},
{
"id": "escalationExample:1:36",
"url": "http://localhost:8100/activiti-rest/service/repository/process-definitions/escalationExample:1:36",
"key": "escalationExample",
"version": 1,
"name": "Helpdesk process",
"description": null,
"tenantId": "",
"deploymentId": "20",
"deploymentUrl": "http://localhost:8100/activiti-rest/service/repository/deployments/20",
"resource": "http://localhost:8100/activiti-rest/service/repository/deployments/20/resources/Helpdesk.bpmn20.xml",
"diagramResource": "http://localhost:8100/activiti-rest/service/repository/deployments/20/resources/Helpdesk.png",
"category": "Examples",
"graphicalNotationDefined": false,
"suspended": false,
"startFormDefined": false
},
{
"id": "helpdesk-firstline-vs-escalated-report:1:2511",
"url": "http://localhost:8100/activiti-rest/service/repository/process-definitions/helpdesk-firstline-vs-escalated-report:1:2511",
"key": "helpdesk-firstline-vs-escalated-report",
"version": 1,
"name": "Helpdesk process: firstline vs escalated",
"description": null,
"tenantId": "",
"deploymentId": "2504",
"deploymentUrl": "http://localhost:8100/activiti-rest/service/repository/deployments/2504",
"resource": "http://localhost:8100/activiti-rest/service/repository/deployments/2504/resources/org/activiti/explorer/demo/process/reports/helpdeskFirstLineVsEscalated.bpmn20.xml",
"diagramResource": null,
"category": "activiti-report",
"graphicalNotationDefined": false,
"suspended": false,
"startFormDefined": false
},
{
"id": "process-instance-overview-report:1:2512",
"url": "http://localhost:8100/activiti-rest/service/repository/process-definitions/process-instance-overview-report:1:2512",
"key": "process-instance-overview-report",
"version": 1,
"name": "Process Instance Overview",
"description": null,
"tenantId": "",
"deploymentId": "2504",
"deploymentUrl": "http://localhost:8100/activiti-rest/service/repository/deployments/2504",
"resource": "http://localhost:8100/activiti-rest/service/repository/deployments/2504/resources/org/activiti/explorer/demo/process/reports/processInstanceOverview.bpmn20.xml",
"diagramResource": null,
"category": "activiti-report",
"graphicalNotationDefined": false,
"suspended": false,
"startFormDefined": false
},
{
"id": "reviewSaledLead:1:32",
"url": "http://localhost:8100/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:8100/activiti-rest/service/repository/deployments/20",
"resource": "http://localhost:8100/activiti-rest/service/repository/deployments/20/resources/reviewSalesLead.bpmn20.xml",
"diagramResource": "http://localhost:8100/activiti-rest/service/repository/deployments/20/resources/reviewSalesLead.reviewSaledLead.png",
"category": "Examples",
"graphicalNotationDefined": true,
"suspended": false,
"startFormDefined": false
},
{
"id": "task-duration-report:1:2509",
"url": "http://localhost:8100/activiti-rest/service/repository/process-definitions/task-duration-report:1:2509",
"key": "task-duration-report",
"version": 1,
"name": "Task duration report",
"description": null,
"tenantId": "",
"deploymentId": "2504",
"deploymentUrl": "http://localhost:8100/activiti-rest/service/repository/deployments/2504",
"resource": "http://localhost:8100/activiti-rest/service/repository/deployments/2504/resources/org/activiti/explorer/demo/process/reports/taskDurationForProcessDefinition.bpmn20.xml",
"diagramResource": null,
"category": "activiti-report",
"graphicalNotationDefined": false,
"suspended": false,
"startFormDefined": false
},
{
"id": "vacationRequest:1:33",
"url": "http://localhost:8100/activiti-rest/service/repository/process-definitions/vacationRequest:1:33",
"key": "vacationRequest",
"version": 1,
"name": "Vacation request",
"description": null,
"tenantId": "",
"deploymentId": "20",
"deploymentUrl": "http://localhost:8100/activiti-rest/service/repository/deployments/20",
"resource": "http://localhost:8100/activiti-rest/service/repository/deployments/20/resources/VacationRequest.bpmn20.xml",
"diagramResource": "http://localhost:8100/activiti-rest/service/repository/deployments/20/resources/VacationRequest.png",
"category": "http://activiti.org/bpmn20",
"graphicalNotationDefined": false,
"suspended": false,
"startFormDefined": false
}
],
"total": 14,
"start": 0,
"sort": "name",
"order": "asc",
"size": 10
}

 

tout est present sauf ma definition je me demande pourquoi ? et si je fais une faute quelque part .
OK que je le trouve dans : http://localhost:8100/activiti-rest/service/repository/deployments

 

 

{
"data": [
{
"id": "20",
"name": "Demo processes",
"deploymentTime": "2018-02-28T10:03:58.698+01:00",
"category": null,
"url": "http://localhost:8100/activiti-rest/service/repository/deployments/20",
"tenantId": ""
},
{
"id": "2504",
"name": "Demo reports",
"deploymentTime": "2018-02-28T10:16:22.405+01:00",
"category": null,
"url": "http://localhost:8100/activiti-rest/service/repository/deployments/2504",
"tenantId": ""
},
{
"id": "52501",
"name": "ValidationArticle.bpmn",
"deploymentTime": "2018-03-02T09:41:40.853+01:00",
"category": null,
"url": "http://localhost:8100/activiti-rest/service/repository/deployments/52501",
"tenantId": ""
},
{
"id": "55001",
"name": "ValidationArticle.bpmn",
"deploymentTime": "2018-03-02T16:53:49.564+01:00",
"category": null,
"url": "http://localhost:8100/activiti-rest/service/repository/deployments/55001",
"tenantId": ""
},
{
"id": "57501",
"name": "ValidationArticle2.bpmn",
"deploymentTime": "2018-03-05T11:13:27.840+01:00",
"category": null,
"url": "http://localhost:8100/activiti-rest/service/repository/deployments/57501",
"tenantId": ""
},
{
"id": "65001",
"name": "ValidationArticleZZz.bpmn",
"deploymentTime": "2018-03-05T14:14:11.678+01:00",
"category": null,
"url": "http://localhost:8100/activiti-rest/service/repository/deployments/65001",
"tenantId": ""
}
],
"total": 6,
"start": 0,
"sort": "id",
"order": "asc",
"size": 6
}

mais il faut qu'elle soit présente dans "process-definitions" comme c'est le cas d'activiti-explorer

j'utilise le service REST dans mon projet et j'ai besoin de recuperer tous les process definitions 

Je suis la pour toute question
Merci .

Outcomes