CMMN Process task


Is it possible to exchange variables between the process task (in a case instance)
and the process instance that it creates?

I wanted to pass some of the case variables as process variables to BPMN 2.0 process and also I wanted output of BPMN 2.0 process to be written to a case variable so that I can access it.

In the SpringProcessEngineConfiguration, I have added cmmn engine configurator like below
processEngineConfiguration.addConfigurator(new CmmnEngineConfigurator().setCmmnEngineConfiguration(cmmnEngineConfiguration()));

I saw that ProcessInstanceService interface was implemented by DefaultProcessInstanceService to start a process by key, I couldn’t see option to pass process variables.

Please suggest.


No, that’s currently not implemented (but it’s on the list of short-term todo’s).

As a workaround for now, you can use the callBackId on the processInstance to fetch the caseInstance which has the variables.