AnsweredAssumed Answered

Issue with activiti framework

Question asked by chiranjeeviveerni on Nov 7, 2017
Latest reply on Nov 7, 2017 by chiranjeeviveerni
Deployment deployment = processEngine.getRepositoryService().createDeployment()
        .addBpmnModel("DynamicApiExecution.bpmn",model)
        .name("Dynamic Api Execution").key("DynamicApiExecution").deploy();


The above call returns me deployment object. When i try to execute the below call it says Deployment id not found.
The object returned from the above call is not getting persisted in activiti deployment table.
processEngine.getRuntimeService().startProcessInstanceById(deployment.getId(),variables);


But if i execute the below call. It executes the existing latest version of deployment and also creating the deployent
entry which is returned in the above call

processEngine.getRuntimeService().startProcessInstanceByKey("DynamicApiExecution",variables);
its creating the deployment id which is not found in the above call.
Can some one from activiti team please look into this issue.

Outcomes