Hi Christian,
You can start a process inside a method of your application like so
HashMap<String, Object> variables = new HashMap<String, Object>();
long customerId = 01234566;
variables.put("customer", customerId);
ProcessEngine defaultProcessEngine = BpmPlatform.getProcessEngineService().getDefaultProcessEngine();
RuntimeService runtimeService = defaultProcessEngine.getRuntimeService();
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("testProcess", variables);
Be sure to import the camunda-engine jar in provided scope in maven.
Cheers,
Christian
> --
> You received this message because you are subscribed to the Google Groups "camunda BPM users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
camunda-bpm-us...@googlegroups.com.
> To post to this group, send email to
camunda-...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/camunda-bpm-users/e78fbc78-6fd5-4ac9-9d59-92f0859ed031%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.