AnsweredAssumed Answered

Process Instance Post throwing error -no processes deployed with key

Question asked by lambav on Apr 16, 2014
Latest reply on Apr 22, 2014 by frederikheremans1
Hi

When I hit the url : http://host/activiti-rest/service/runtime/process-instances with request body
{
    "processDefinitionKey": "enablements",
    "variables": [
        {
          "name":"requestId",
          "value":"1"
        },
         {
          "name":"raisedBy",
          "value":"Vivek"
        },
        {
          "name":"termsConditions",
          "value":"Online"
        },
        {
          "name":"paperSigned",
          "value":true
        }
    ]
}

It gives me an error :
{
    "errorMessage": "no processes deployed with key 'enablements'",
    "statusCode": 400
}


But when I hit the url : http://host/activiti-rest/service/repository/process-definitions

It returns me :

{
            "id": "enablements:1:204",
            "url": "http://delmw14392.fm.rbsgrp.net:8080/activiti-rest/service/repository/process-definitions/enablements%3A1%3A204",
            "key": "enablements",
            "version": 1,
            "name": "Enablements",
            "description": null,
            "deploymentId": "201",
            "deploymentUrl": "http://delmw14392.fm.rbsgrp.net:8080/activiti-rest/service/repository/deployments/201",
            "resource": "http://delmw14392.fm.rbsgrp.net:8080/activiti-rest/service/repository/deployments/201/resources/EnablementsNew.bpmn",
            "diagramResource": "http://delmw14392.fm.rbsgrp.net:8080/activiti-rest/service/repository/deployments/201/resources/EnablementsNew.enablements.png",
            "category": "http://www.activiti.org/test",
            "graphicalNotationDefined": true,
            "suspended": false,
            "startFormDefined": false
        }

It clearly says the key is "enablements"

And if I change the key to Id , it works for me .. Any clue ?

Outcomes