I'm reading the REST API but I'm not able to find a way to create a Process Definition and then Start the Process, once the process is deployed.
Thanks.
--
You received this message because you are subscribed to the Google Groups "camunda BPM users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/be93f0c0-cf2a-463b-b42f-39185533d1f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[
{
"links": [],
"id": "68975508-381e-11e4-9385-a6024ef8be8f",
"name": "test",
"deploymentTime": "2014-09-09T12:39:58"
},
{
"links": [],
"id": "750cb96a-381e-11e4-9385-a6024ef8be8f",
"name": "test",
"deploymentTime": "2014-09-09T12:40:19"
}
]
but calling the process definition API (http://localhost:8080/engine-rest/process-definition/) I get an empty response.
/deployment/{id}/resources--
You received this message because you are subscribed to the Google Groups "camunda BPM users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/1f816097-3cde-4a09-9135-9aeb9aa7bf7c%40googlegroups.com.
Sep 09, 2014 4:15:44 PM org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer deploy
INFO: Processing resource New Process.bpmn.xml
Using GET /deployment/{id}/resources with the ID I get back from the deployment API, I have:
[
{
"id": "8d6d6efd-383c-11e4-9385-a6024ef8be8f",
"name": "New Process.bpmn.xml",
"deploymentId": "8d6d6efc-383c-11e4-9385-a6024ef8be8f"
}
]
Thanks.
thanks, this was one problem (sorry for that :(). The second one is that the ID returned by the Deplyment/create API is different the one used inside the ACT_RE_PROCDEF table. The second one seems to use also the Business Key.
Deplyment/create API ID: 37f72320-385b-11e4-8cbc-ce02e9ad4508
ACT_RE_PROCDEF ID: Process_2:1:37fbde12-385b-11e4-8cbc-ce02e9ad4508
Maybe it would be better to have the actual ID. For now I'm generating from application side the ACT_RE_PROCDEF ID. It's simple since I have one version for every diagram.