Class AbstractUserTaskBuilder<B extends AbstractUserTaskBuilder<B>>
java.lang.Object
io.camunda.zeebe.model.bpmn.builder.AbstractBpmnModelElementBuilder<B,E>
io.camunda.zeebe.model.bpmn.builder.AbstractBaseElementBuilder<B,E>
io.camunda.zeebe.model.bpmn.builder.AbstractFlowElementBuilder<B,E>
io.camunda.zeebe.model.bpmn.builder.AbstractFlowNodeBuilder<B,E>
io.camunda.zeebe.model.bpmn.builder.AbstractActivityBuilder<B,E>
io.camunda.zeebe.model.bpmn.builder.AbstractTaskBuilder<B,UserTask>
io.camunda.zeebe.model.bpmn.builder.AbstractUserTaskBuilder<B>
- All Implemented Interfaces:
ZeebeUserTaskPropertiesBuilder<B>
,ZeebeVariablesMappingBuilder<B>
- Direct Known Subclasses:
UserTaskBuilder
public abstract class AbstractUserTaskBuilder<B extends AbstractUserTaskBuilder<B>>
extends AbstractTaskBuilder<B,UserTask>
implements ZeebeUserTaskPropertiesBuilder<B>
- Author:
- Sebastian Menski
-
Field Summary
Fields inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractFlowNodeBuilder
compensateBoundaryEvent, compensationStarted
Fields inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractBaseElementBuilder
SPACE, ZEEBE_EXPRESSION_FORMAT
Fields inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractBpmnModelElementBuilder
element, modelInstance, myself
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractUserTaskBuilder
(BpmnModelInstance modelInstance, UserTask element, Class<?> selfType) -
Method Summary
Modifier and TypeMethodDescriptionimplementation
(String implementation) Sets the implementation of the build user task.zeebeAssignee
(String assignee) Sets a static assignee for the user taskzeebeAssigneeExpression
(String expression) Sets a dynamic assignee for the user task that is retrieved from the given expressionzeebeCandidateGroups
(String candidateGroups) Sets a static candidateGroups for the user taskzeebeCandidateGroupsExpression
(String expression) Sets a dynamic candidateGroups for the user task that is retrieved from the given expressionzeebeFormKey
(String formKey) Sets the form key of the build user task.zeebeFormKey
(String format, String location, String id) Sets the form key with the format 'format:location:id' of the build user task.zeebeTaskHeader
(String key, String value) zeebeUserTaskForm
(String userTaskForm) Creates a new user task form with the given context, assuming it is of the format camunda-forms and embedded inside the diagram.zeebeUserTaskForm
(String id, String userTaskForm) Creates a new user task form with the given context, assuming it is of the format camunda-forms and embedded inside the diagram.Methods inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractActivityBuilder
boundaryEvent, boundaryEvent, boundaryEvent, calculateXCoordinate, multiInstance, multiInstance, setBoundaryEventCoordinates, zeebeInput, zeebeInputExpression, zeebeOutput, zeebeOutputExpression
Methods inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractFlowNodeBuilder
businessRuleTask, businessRuleTask, businessRuleTask, callActivity, callActivity, callActivity, compensationDone, compensationStart, condition, condition, conditionExpression, connectTarget, connectTargetWithAssociation, connectTargetWithSequenceFlow, connectTo, createTarget, createTargetBuilder, createTargetBuilder, endEvent, endEvent, endEvent, eventBasedGateway, eventBasedGateway, exclusiveGateway, exclusiveGateway, getCurrentSequenceFlowBuilder, inclusiveGateway, inclusiveGateway, intermediateCatchEvent, intermediateCatchEvent, intermediateCatchEvent, intermediateThrowEvent, intermediateThrowEvent, intermediateThrowEvent, isBoundaryEventWithStartedCompensation, isCompensationHandler, manualTask, manualTask, moveToActivity, moveToLastExclusiveGateway, moveToLastGateway, moveToLastInclusiveGateway, moveToNode, parallelGateway, parallelGateway, receiveTask, receiveTask, receiveTask, scriptTask, scriptTask, scriptTask, sendTask, sendTask, sendTask, sequenceFlowId, serviceTask, serviceTask, serviceTask, subProcess, subProcess, subProcess, transaction, transaction, userTask, userTask, userTask
Methods inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractFlowElementBuilder
name
Methods inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractBaseElementBuilder
addExtensionElement, addExtensionElement, asZeebeExpression, createBpmnShape, createChild, createChild, createChild, createChild, createCompensateEventDefinition, createEdge, createEmptyErrorEventDefinition, createEmptyMessageEventDefinition, createErrorEventDefinition, createEscalationEventDefinition, createInstance, createInstance, createMessage, createMessageEventDefinition, createSibling, createSibling, createSignalEventDefinition, createZeebeUserTaskForm, findBpmnEdge, findBpmnPlane, findBpmnShape, findErrorDefinitionForCode, findErrorForNameAndCode, findEscalationForCode, findMessageForName, findProcess, findSignalForName, getCreateSingleChild, getCreateSingleChild, getCreateSingleExtensionElement, id, resizeSubProcess, setCoordinates, setWaypoints, setWaypointsWithSourceAndTarget
Methods inherited from class io.camunda.zeebe.model.bpmn.builder.AbstractBpmnModelElementBuilder
done, getElement, subProcessDone, throwEventDefinitionDone, transactionDone
-
Constructor Details
-
AbstractUserTaskBuilder
protected AbstractUserTaskBuilder(BpmnModelInstance modelInstance, UserTask element, Class<?> selfType)
-
-
Method Details
-
implementation
Sets the implementation of the build user task.- Parameters:
implementation
- the implementation to set- Returns:
- the builder object
-
zeebeFormKey
Description copied from interface:ZeebeUserTaskPropertiesBuilder
Sets the form key with the format 'format:location:id' of the build user task.- Specified by:
zeebeFormKey
in interfaceZeebeUserTaskPropertiesBuilder<B extends AbstractUserTaskBuilder<B>>
- Parameters:
format
- the format of the reference formlocation
- the location where the form is availableid
- the id of the form- Returns:
- the builder object
-
zeebeFormKey
Description copied from interface:ZeebeUserTaskPropertiesBuilder
Sets the form key of the build user task.- Specified by:
zeebeFormKey
in interfaceZeebeUserTaskPropertiesBuilder<B extends AbstractUserTaskBuilder<B>>
- Parameters:
formKey
- the form key to set- Returns:
- the builder object
-
zeebeUserTaskForm
Description copied from interface:ZeebeUserTaskPropertiesBuilder
Creates a new user task form with the given context, assuming it is of the format camunda-forms and embedded inside the diagram.- Specified by:
zeebeUserTaskForm
in interfaceZeebeUserTaskPropertiesBuilder<B extends AbstractUserTaskBuilder<B>>
- Parameters:
userTaskForm
- the XML encoded user task form json in the camunda-forms format- Returns:
- the builder object
-
zeebeUserTaskForm
Description copied from interface:ZeebeUserTaskPropertiesBuilder
Creates a new user task form with the given context, assuming it is of the format camunda-forms and embedded inside the diagram.- Specified by:
zeebeUserTaskForm
in interfaceZeebeUserTaskPropertiesBuilder<B extends AbstractUserTaskBuilder<B>>
- Parameters:
id
- the unique identifier of the user task form elementuserTaskForm
- the XML encoded user task form json in the camunda-forms format- Returns:
- the builder object
-
zeebeAssignee
Description copied from interface:ZeebeUserTaskPropertiesBuilder
Sets a static assignee for the user task- Specified by:
zeebeAssignee
in interfaceZeebeUserTaskPropertiesBuilder<B extends AbstractUserTaskBuilder<B>>
- Parameters:
assignee
- the assignee of the user task- Returns:
- the builder object
-
zeebeAssigneeExpression
Description copied from interface:ZeebeUserTaskPropertiesBuilder
Sets a dynamic assignee for the user task that is retrieved from the given expression- Specified by:
zeebeAssigneeExpression
in interfaceZeebeUserTaskPropertiesBuilder<B extends AbstractUserTaskBuilder<B>>
- Parameters:
expression
- the expression for the assignee of the user task- Returns:
- the builder object
-
zeebeCandidateGroups
Description copied from interface:ZeebeUserTaskPropertiesBuilder
Sets a static candidateGroups for the user task- Specified by:
zeebeCandidateGroups
in interfaceZeebeUserTaskPropertiesBuilder<B extends AbstractUserTaskBuilder<B>>
- Parameters:
candidateGroups
- the candidateGroups of the user task- Returns:
- the builder object
-
zeebeCandidateGroupsExpression
Description copied from interface:ZeebeUserTaskPropertiesBuilder
Sets a dynamic candidateGroups for the user task that is retrieved from the given expression- Specified by:
zeebeCandidateGroupsExpression
in interfaceZeebeUserTaskPropertiesBuilder<B extends AbstractUserTaskBuilder<B>>
- Parameters:
expression
- the expression for the candidateGroups of the user task- Returns:
- the builder object
-
zeebeTaskHeader
-