(Quick Reference)

Command 'create-process'

You can create a BPMN 2.0 process definition by issueing the following command:

grails create-process [name]

As name choose a 'package and class' like name of your choice, e.g. "org.camunda.my.TestProcess". You should see the following two files generated by Grails:

| Created file grails-app/processes/org/camunda/my/TestProcess.bpmn
| Created file test/integration/org/camunda/my/TestProcessSpec.groovy

You may now want to look at the generated BPMN process definition by making use of camunda modeler.

Find more information about the generated artifacts in the User Guide. You should also read the remarks about conventions in order to understand the consequences of this script command for your camunda API calls. The short version is that you can instantiate this freshly created process via issueing

runtimeService.startProcessInstanceByKey("TestProcess")