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....",
"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-rep...",
"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/explo...",
"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.bpmn2...",
"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/FixSystemFailureProc...",
"diagramResource": "http://localhost:8100/activiti-rest/service/repository/deployments/20/resources/FixSystemFailureProc...",
"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-esc...",
"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/explo...",
"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...",
"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/explo...",
"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.bpmn...",
"diagramResource": "http://localhost:8100/activiti-rest/service/repository/deployments/20/resources/reviewSalesLead.revi...",
"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:25...",
"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/explo...",
"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.bpmn...",
"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 .
Solved! Go to Solution.
la solution est : http://localhost:8100/activiti-rest/service/repository/process-definitions?size=1000
le "size" par Default n'affiche que les définitions présents par Default
il faut donc augmenter le size afin d'avoir toute la liste hh
une autre chose : je ne trouves pas la définition dans :
/activiti-rest/service/repository/process-definitions
mais lorsque j'ajoute : /ValidationArticle:1:52504
cad /activiti-rest/service/repository/process-definitions/ValidationArticle:1:52504
je le trouves !!
normalement si je le trouves dans "/activiti-rest/service/repository/process-definitions/ValidationArticle:1:52504"
il faut nécessairement qu'il doit présent dans "/activiti-rest/service/repository/process-definitions/"
pourquoi ?
la solution est : http://localhost:8100/activiti-rest/service/repository/process-definitions?size=1000
le "size" par Default n'affiche que les définitions présents par Default
il faut donc augmenter le size afin d'avoir toute la liste hh
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.