I just want to set a variable in CMMN and overwrite it afterwards.
The simple code is:
@Test @Deployment(resources = {"processes/Case.cmmn"}) public void test_onCreatingCaseInstance_settingVariableWorks() throws Exception { CaseInstance caseInstance = caseService.createCaseInstanceByKey(CaseConstants.CASE_ID); assertTrue(caseInstance.isActive()); caseService.setVariable(caseInstance.getId(), "test", "test"); caseService.setVariable(caseInstance.getId(), "test", "test2");}
Unfortunately, I get the following error when reaching the step of overwriting:
08:35:14.934 [main] ERROR org.camunda.bpm.engine.context - ENGINE-16004 Exception while closing command context: ENGINE-05018 Variable listener invocation failed. Reason: null
Thank you for your help!!