/** * 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 expression attribute. * * @param camundaExpression the expression to set * @return the builder object */ public B camundaExpression(String camundaExpression) { element.setCamundaExpression(camundaExpression); return myself; }
/** * Sets the camunda delegateExpression attribute. * * @param camundaExpression the delegateExpression to set * @return the builder object */ public B camundaDelegateExpression(String camundaExpression) { element.setCamundaDelegateExpression(camundaExpression); return myself; }
continue; serviceTask.setCamundaClass(null); serviceTask.removeAttributeNs("http://activiti.org/bpmn", "delegateExpression"); serviceTask.removeAttributeNs("http://camunda.org/schema/1.0/bpmn", "delegateExpression"); serviceTask.setCamundaExpression("#{true}"); // Noop
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; }
/** * Sets the camunda type attribute. * * @param camundaType the type of the service task * @return the builder object */ public B camundaType(String camundaType) { element.setCamundaType(camundaType); return myself; }
/** * Sets the camunda resultVariable attribute. * * @param camundaResultVariable the name of the process variable * @return the builder object */ public B camundaResultVariable(String camundaResultVariable) { element.setCamundaResultVariable(camundaResultVariable); return myself; }
/** * Sets the camunda topic attribute. This is only meaningful when * the {@link #camundaType(String)} attribute has the value <code>external</code>. * * @param camundaTopic the topic to set * @return the build object */ public B camundaTopic(String camundaTopic) { element.setCamundaTopic(camundaTopic); return myself; }
/** * Sets the implementation of the build service task. * * @param implementation the implementation to set * @return the builder object */ public B implementation(String implementation) { element.setImplementation(implementation); return myself; }
/** * Sets the camunda task priority attribute. This is only meaningful when * the {@link #camundaType(String)} attribute has the value <code>external</code>. * * * @param taskPriority the priority for the external task * @return the builder object */ public B camundaTaskPriority(String taskPriority) { element.setCamundaTaskPriority(taskPriority); 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; }
/** * Sets the camunda type attribute. * * @param camundaType the type of the service task * @return the builder object */ public B camundaType(String camundaType) { element.setCamundaType(camundaType); return myself; }
/** * Sets the camunda resultVariable attribute. * * @param camundaResultVariable the name of the process variable * @return the builder object */ public B camundaResultVariable(String camundaResultVariable) { element.setCamundaResultVariable(camundaResultVariable); return myself; }
/** * Sets the camunda topic attribute. This is only meaningful when * the {@link #camundaType(String)} attribute has the value <code>external</code>. * * @param camundaTopic the topic to set * @return the build object */ public B camundaTopic(String camundaTopic) { element.setCamundaTopic(camundaTopic); return myself; }
/** * Sets the implementation of the build service task. * * @param implementation the implementation to set * @return the builder object */ public B implementation(String implementation) { element.setImplementation(implementation); return myself; }
/** * Sets the camunda task priority attribute. This is only meaningful when * the {@link #camundaType(String)} attribute has the value <code>external</code>. * * * @param taskPriority the priority for the external task * @return the builder object */ public B camundaTaskPriority(String taskPriority) { element.setCamundaTaskPriority(taskPriority); 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; }
/** * Sets the camunda expression attribute. * * @param camundaExpression the expression to set * @return the builder object */ public B camundaExpression(String camundaExpression) { element.setCamundaExpression(camundaExpression); return myself; }