AnsweredAssumed Answered

REST-API: Deploy and Run a process

Question asked by esseti on Jun 7, 2013
Latest reply on Jul 29, 2016 by mdnoorshid
Hi all,
i've a python/django app that interact with the activitiy engine.
I'm able to deploy a  process, but i've trouble in running it.
i go step by step.

when i do the deployment i've this back

now, what information do i've to send to the /process-instance to make this process running?
do i've to parse the BPMN file in order to extract the key?
or is it the id the one i've back from the deployment (if not, why the information is not in the response of the call)?

just for the record, if i check the /process-definitons i've back

    "data": [
            "id": "helloworld2:1:4",
            "key": "helloworld2",
            "name": "helloworld2",
            "version": 1,
            "deploymentId": "1",
            "resourceName": "Sysout.bpmn",
            "diagramResourceName": "Sysout.helloworld2.png",
            "startFormResourceKey": null,
            "category": "",
            "graphicNotationDefined": true
    "total": 1,
    "start": 0,
    "sort": "id",
    "order": "asc",
    "size": 1

PS: APIs generally reply a JSON when call is correct and an HTML page when something goes wrong. is there a way to have JSON answers also in the error case (it will make everything easier to manage).