public class FlowElementContainerBuilder extends Object implements FlowElementBuilder
Constructor and Description |
---|
FlowElementContainerBuilder(org.bonitasoft.engine.bpm.flownode.impl.internal.FlowElementContainerDefinitionImpl container,
ProcessDefinitionBuilder processDefinitionBuilder) |
public FlowElementContainerBuilder(org.bonitasoft.engine.bpm.flownode.impl.internal.FlowElementContainerDefinitionImpl container, ProcessDefinitionBuilder processDefinitionBuilder)
public DesignProcessDefinition getProcess() throws InvalidProcessDefinitionException
InvalidProcessDefinitionException
- when the process definition is inconsistent. The exception contains causespublic UserTaskDefinitionBuilder addUserTask(String taskName, String actorName)
FlowElementBuilder
UserTaskDefinition
on this elementaddUserTask
in interface FlowElementBuilder
taskName
- The task nameactorName
- The name of the actor that will perform this taskpublic AutomaticTaskDefinitionBuilder addAutomaticTask(String taskName)
FlowElementBuilder
addAutomaticTask
in interface FlowElementBuilder
taskName
- The task namepublic ReceiveTaskDefinitionBuilder addReceiveTask(String activityName, String messageName)
FlowElementBuilder
ReceiveTaskDefinition
on this elementaddReceiveTask
in interface FlowElementBuilder
activityName
- The task namemessageName
- The name of message to be receivedpublic SendTaskDefinitionBuilder addSendTask(String taskName, String messageName, Expression targetProcess)
FlowElementBuilder
SendTaskDefinition
on this elementaddSendTask
in interface FlowElementBuilder
taskName
- The task namemessageName
- The name of message to be senttargetProcess
- The expression representing the target process namepublic ManualTaskDefinitionBuilder addManualTask(String name, String actorName)
FlowElementBuilder
ManualTaskDefinition
on this elementaddManualTask
in interface FlowElementBuilder
name
- The task nameactorName
- The name of the actor that will perform this taskpublic TransitionDefinitionBuilder addTransition(String source, String target)
FlowElementBuilder
addTransition
in interface FlowElementBuilder
source
- The source element nametarget
- The target element namepublic TransitionDefinitionBuilder addTransition(String source, String target, Expression condition)
FlowElementBuilder
addTransition
in interface FlowElementBuilder
source
- The source element nametarget
- The target element namecondition
- The transition condition. The transition is taken if and only if the expression is evaluated to Boolean.TRUE
.public TransitionDefinitionBuilder addDefaultTransition(String source, String target)
FlowElementBuilder
addDefaultTransition
in interface FlowElementBuilder
source
- The source element nametarget
- The target element namepublic GatewayDefinitionBuilder addGateway(String name, GatewayType gatewayType)
FlowElementBuilder
GatewayDefinition
on this elementaddGateway
in interface FlowElementBuilder
name
- The gateway namegatewayType
- The gateway typepublic StartEventDefinitionBuilder addStartEvent(String name)
FlowElementBuilder
StartEventDefinition
on this elementaddStartEvent
in interface FlowElementBuilder
name
- The start event namepublic EndEventDefinitionBuilder addEndEvent(String name)
FlowElementBuilder
EndEventDefinition
on this elementaddEndEvent
in interface FlowElementBuilder
name
- The end event namepublic IntermediateCatchEventDefinitionBuilder addIntermediateCatchEvent(String name)
FlowElementBuilder
IntermediateCatchEventDefinition
on this elementaddIntermediateCatchEvent
in interface FlowElementBuilder
name
- The intermediate catch event namepublic IntermediateThrowEventDefinitionBuilder addIntermediateThrowEvent(String name)
FlowElementBuilder
IntermediateThrowEventDefinition
on this elementaddIntermediateThrowEvent
in interface FlowElementBuilder
name
- The intermediate throw event namepublic CallActivityBuilder addCallActivity(String name, Expression callableElement, Expression callableElementVersion)
FlowElementBuilder
CallActivityDefinition
on this elementaddCallActivity
in interface FlowElementBuilder
name
- The call activity namecallableElement
- The expression representing the name of process to be calledcallableElementVersion
- The expression representing the version of process to be calledpublic SubProcessActivityDefinitionBuilder addSubProcess(String name, boolean triggeredByEvent)
FlowElementBuilder
SubProcessDefinition
on this elementaddSubProcess
in interface FlowElementBuilder
name
- The sub process nametriggeredByEvent
- true if it's an event sub-process; false if it's a subprocesspublic ConnectorDefinitionBuilder addConnector(String name, String connectorId, String version, ConnectorEvent activationEvent)
FlowElementBuilder
Must also add connector dependencies and connector implementation descriptor
addConnector
in interface FlowElementBuilder
name
- The name the connector instance will useconnectorId
- The id of the Connector definition (connector implementation added in BusinessArchive
must match this id in
definitionIdversion
- The version of the Connector definitionactivationEvent
- ConnectorEvent
on which the connector will be triggeredBusinessArchiveBuilder.addClasspathResource(org.bonitasoft.engine.bpm.bar.BarResource)
,
BusinessArchiveBuilder.addConnectorImplementation(org.bonitasoft.engine.bpm.bar.BarResource)
public DataDefinitionBuilder addIntegerData(String name, Expression defaultValue)
FlowElementBuilder
addIntegerData
in interface FlowElementBuilder
name
- The data namedefaultValue
- The expression representing the default valuepublic DataDefinitionBuilder addLongData(String name, Expression defaultValue)
FlowElementBuilder
addLongData
in interface FlowElementBuilder
name
- The data namedefaultValue
- The expression representing the default valuepublic DataDefinitionBuilder addShortTextData(String name, Expression defaultValue)
FlowElementBuilder
addShortTextData
in interface FlowElementBuilder
name
- The data namedefaultValue
- The expression representing the default valuepublic TextDataDefinitionBuilder addLongTextData(String name, Expression defaultValue)
FlowElementBuilder
addLongTextData
in interface FlowElementBuilder
name
- The data namedefaultValue
- The expression representing the default valuepublic DataDefinitionBuilder addDoubleData(String name, Expression defaultValue)
FlowElementBuilder
addDoubleData
in interface FlowElementBuilder
name
- The data namedefaultValue
- The expression representing the default valuepublic DataDefinitionBuilder addFloatData(String name, Expression defaultValue)
FlowElementBuilder
addFloatData
in interface FlowElementBuilder
name
- The data namedefaultValue
- The expression representing the default valuepublic DataDefinitionBuilder addDateData(String name, Expression defaultValue)
FlowElementBuilder
addDateData
in interface FlowElementBuilder
name
- The data namedefaultValue
- The expression representing the default valuepublic XMLDataDefinitionBuilder addXMLData(String name, Expression defaultValue)
FlowElementBuilder
addXMLData
in interface FlowElementBuilder
name
- The data namedefaultValue
- The expression representing the default valuepublic DataDefinitionBuilder addBlobData(String name, Expression defaultValue)
FlowElementBuilder
addBlobData
in interface FlowElementBuilder
name
- The data namedefaultValue
- The expression representing the default valuepublic DataDefinitionBuilder addBooleanData(String name, Expression defaultValue)
FlowElementBuilder
addBooleanData
in interface FlowElementBuilder
name
- The data namedefaultValue
- The expression representing the default valuepublic DataDefinitionBuilder addData(String name, String className, Expression defaultValue)
FlowElementBuilder
addData
in interface FlowElementBuilder
name
- The data nameclassName
- The data type class name (i.e. java.lang.String)defaultValue
- The expression representing the default valueprotected org.bonitasoft.engine.bpm.flownode.impl.internal.FlowElementContainerDefinitionImpl getContainer()
protected ProcessDefinitionBuilder getProcessBuilder()
Copyright © 2018 Bonitasoft S.A.. All rights reserved.