plexiti / camunda-grails-plugin

Integrates Camunda BPM with the Grails framework.
http://grails.org/plugin/camunda
Apache License 2.0
18 stars 8 forks source link

no processes deployed with key #63

Open benbenguo opened 8 years ago

benbenguo commented 8 years ago

I deploy grails war, then call repositoryService.getProcessModel(processDefinitionId), got the error below :

org.camunda.bpm.engine.exception.NullValueException: no processes deployed with key 'RegisterCriminalPublicProsecutionProcess': processDefinition is null

my conf is: camunda { deployment { scenario = "embedded" autoreload = true } engine { configuration { databaseSchemaUpdate = true deploymentResources = ['classpath:/*/.bpmn'] jobExecutorActivate = true } } }

Hope any help, thanks

martinschimak commented 8 years ago

Hi. The deploymentResources param should actually read ['classpath:/*/.bpmn'].

Besides, please also make sure that you do not mix up the deployment 'key' (like 'RegisterCriminalPublicProsecutionProcess') with the deployment 'id' when using the Camunda API. The id is unique for a single deployment (version) of a process, while the key is defined in the bpmn xml and therefore identifies the process definition with all its deployed versions.