/** * Sets the camunda decisionRef attribute. * * @param camundaDecisionRef the decisionRef to set * @return the builder object */ public B camundaDecisionRef(String camundaDecisionRef) { element.setCamundaDecisionRef(camundaDecisionRef); return myself; }
/** * Sets the camunda decisionRef attribute. * * @param camundaDecisionRef the decisionRef to set * @return the builder object */ public B camundaDecisionRef(String camundaDecisionRef) { element.setCamundaDecisionRef(camundaDecisionRef); return myself; }
/** * Sets the camunda decisionRef attribute. * * @param camundaDecisionRef the decisionRef to set * @return the builder object */ public B camundaDecisionRef(String camundaDecisionRef) { element.setCamundaDecisionRef(camundaDecisionRef); return myself; }
public void testBusinessRuleTask() { BpmnModelInstance modelInstance = Bpmn.createExecutableProcess("testProcess") .startEvent() .businessRuleTask("task") .endEvent() .done(); BusinessRuleTask task = modelInstance.getModelElementById("task"); task.setCamundaDecisionRef("decision"); deploymentId = repositoryService.createDeployment() .addModelInstance("process.bpmn", modelInstance) .addClasspathResource(DMN_FILE) .deploy().getId(); assertEquals(0l, getExecutedDecisionElements()); assertEquals(0l, getExecutedDecisionElementsFromDmnEngine()); runtimeService.startProcessInstanceByKey("testProcess", VARIABLES); assertEquals(16l, getExecutedDecisionElements()); assertEquals(16l, getExecutedDecisionElementsFromDmnEngine()); processEngineConfiguration.getDbMetricsReporter().reportNow(); assertEquals(16l, getExecutedDecisionElements()); assertEquals(16l, getExecutedDecisionElementsFromDmnEngine()); }
public void testBusinessRuleTask() { BpmnModelInstance modelInstance = Bpmn.createExecutableProcess("testProcess") .startEvent() .businessRuleTask("task") .endEvent() .done(); BusinessRuleTask task = modelInstance.getModelElementById("task"); task.setCamundaDecisionRef("decision"); deploymentId = repositoryService.createDeployment() .addModelInstance("process.bpmn", modelInstance) .addClasspathResource(DMN_FILE) .deploy().getId(); assertEquals(0l, getExecutedDecisionElements()); assertEquals(0l, getExecutedDecisionElementsFromDmnEngine()); runtimeService.startProcessInstanceByKey("testProcess", VARIABLES); assertEquals(16l, getExecutedDecisionElements()); assertEquals(16l, getExecutedDecisionElementsFromDmnEngine()); processEngineConfiguration.getDbMetricsReporter().reportNow(); assertEquals(16l, getExecutedDecisionElements()); assertEquals(16l, getExecutedDecisionElementsFromDmnEngine()); }