cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Error while deploying and executing model from script

bond007
Champ in-the-making
Champ in-the-making
Hi

I've used json file and converted into BPMN model, deploying and executing it.

it got deployed but it is giving NULL Pointer exception

ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery()
                  .deploymentId(deploymentId).singleResult();

                processInstance = runtimeService.startProcessInstanceById(processDefinition.getId());


I ve attached the code and json.

Please help


2 REPLIES 2

bond007
Champ in-the-making
Champ in-the-making
I got the issue resolved. I was not giving the correct resource name in the deployment. The resource name should be have the name .bpmn20.xml. I was missing that. when i gave the name. The issue got resolved.

bond007
Champ in-the-making
Champ in-the-making
Even I've tried converting the Json to XML. The problem lies in deployment. It s not fetching the deployment id.  It is giving null