/** * Sets the camunda class attribute. * * @param camundaClass the class name to set * @return the builder object */ public B camundaClass(String fullQualifiedClassName) { element.setCamundaClass(fullQualifiedClassName); return myself; }
protected Task createModelAccessTask(BpmnModelInstance modelInstance, Class<?> delegateClass) { ServiceTask serviceTask = modelInstance.newInstance(ServiceTask.class); serviceTask.setId("serviceTask"); serviceTask.setCamundaClass(delegateClass.getName()); return serviceTask; }
/** * Sets the camunda class attribute. * * @param camundaClass the class name to set * @return the builder object */ public B camundaClass(String fullQualifiedClassName) { element.setCamundaClass(fullQualifiedClassName); return myself; }
/** * Sets the camunda class attribute. * * @param camundaClass the class name to set * @return the builder object */ public B camundaClass(String fullQualifiedClassName) { element.setCamundaClass(fullQualifiedClassName); return myself; }
private void addServiceTaskCompensationHandler(BpmnModelInstance modelInstance, String boundaryEventId, String compensationHandlerId) { BoundaryEvent boundaryEvent = modelInstance.getModelElementById(boundaryEventId); BaseElement scope = (BaseElement) boundaryEvent.getParentElement(); ServiceTask compensationHandler = modelInstance.newInstance(ServiceTask.class); compensationHandler.setId(compensationHandlerId); compensationHandler.setForCompensation(true); compensationHandler.setCamundaClass(IncreaseCurrentTimeServiceTask.class.getName()); scope.addChildElement(compensationHandler); Association association = modelInstance.newInstance(Association.class); association.setAssociationDirection(AssociationDirection.One); association.setSource(boundaryEvent); association.setTarget(compensationHandler); scope.addChildElement(association); }
protected Task createModelAccessTask(BpmnModelInstance modelInstance, Class<?> delegateClass) { ServiceTask serviceTask = modelInstance.newInstance(ServiceTask.class); serviceTask.setId("serviceTask"); serviceTask.setCamundaClass(delegateClass.getName()); return serviceTask; }
continue; serviceTask.setCamundaClass(null);
private void addServiceTaskCompensationHandler(BpmnModelInstance modelInstance, String boundaryEventId, String compensationHandlerId) { BoundaryEvent boundaryEvent = modelInstance.getModelElementById(boundaryEventId); BaseElement scope = (BaseElement) boundaryEvent.getParentElement(); ServiceTask compensationHandler = modelInstance.newInstance(ServiceTask.class); compensationHandler.setId(compensationHandlerId); compensationHandler.setForCompensation(true); compensationHandler.setCamundaClass(IncreaseCurrentTimeServiceTask.class.getName()); scope.addChildElement(compensationHandler); Association association = modelInstance.newInstance(Association.class); association.setAssociationDirection(AssociationDirection.One); association.setSource(boundaryEvent); association.setTarget(compensationHandler); scope.addChildElement(association); }