public interface FlowElementBuilder
DataDefinitionBuilder addIntegerData(String name, Expression defaultValue)
name
- The data namedefaultValue
- The expression representing the default valueDataDefinitionBuilder addLongData(String name, Expression defaultValue)
name
- The data namedefaultValue
- The expression representing the default valueDataDefinitionBuilder addShortTextData(String name, Expression defaultValue)
name
- The data namedefaultValue
- The expression representing the default valueTextDataDefinitionBuilder addLongTextData(String name, Expression defaultValue)
name
- The data namedefaultValue
- The expression representing the default valueDataDefinitionBuilder addDoubleData(String name, Expression defaultValue)
name
- The data namedefaultValue
- The expression representing the default valueDataDefinitionBuilder addFloatData(String name, Expression defaultValue)
name
- The data namedefaultValue
- The expression representing the default valueDataDefinitionBuilder addDateData(String name, Expression defaultValue)
name
- The data namedefaultValue
- The expression representing the default valueXMLDataDefinitionBuilder addXMLData(String name, Expression defaultValue)
name
- The data namedefaultValue
- The expression representing the default valueDataDefinitionBuilder addBlobData(String name, Expression defaultValue)
name
- The data namedefaultValue
- The expression representing the default valueDataDefinitionBuilder addBooleanData(String name, Expression defaultValue)
name
- The data namedefaultValue
- The expression representing the default valueDataDefinitionBuilder addData(String name, String className, Expression defaultValue)
name
- The data nameclassName
- The data type class name (i.e. java.lang.String)defaultValue
- The expression representing the default valueConnectorDefinitionBuilder addConnector(String name, String connectorId, String version, ConnectorEvent activationEvent)
Must also add connector dependencies and connector implementation descriptor
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)
UserTaskDefinitionBuilder addUserTask(String taskName, String actorName)
UserTaskDefinition
on this elementtaskName
- The task nameactorName
- The name of the actor that will perform this taskAutomaticTaskDefinitionBuilder addAutomaticTask(String taskName)
taskName
- The task nameReceiveTaskDefinitionBuilder addReceiveTask(String taskName, String messageName)
ReceiveTaskDefinition
on this elementtaskName
- The task namemessageName
- The name of message to be receivedSendTaskDefinitionBuilder addSendTask(String taskName, String messageName, Expression targetProcess)
SendTaskDefinition
on this elementtaskName
- The task namemessageName
- The name of message to be senttargetProcess
- The expression representing the target process nameManualTaskDefinitionBuilder addManualTask(String name, String actorName)
ManualTaskDefinition
on this elementname
- The task nameactorName
- The name of the actor that will perform this taskTransitionDefinitionBuilder addTransition(String source, String target)
source
- The source element nametarget
- The target element nameTransitionDefinitionBuilder addTransition(String source, String target, Expression condition)
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
.GatewayDefinitionBuilder addGateway(String name, GatewayType gatewayType)
GatewayDefinition
on this elementname
- The gateway namegatewayType
- The gateway typeStartEventDefinitionBuilder addStartEvent(String name)
StartEventDefinition
on this elementname
- The start event nameEndEventDefinitionBuilder addEndEvent(String name)
EndEventDefinition
on this elementname
- The end event nameIntermediateCatchEventDefinitionBuilder addIntermediateCatchEvent(String name)
IntermediateCatchEventDefinition
on this elementname
- The intermediate catch event nameIntermediateThrowEventDefinitionBuilder addIntermediateThrowEvent(String name)
IntermediateThrowEventDefinition
on this elementname
- The intermediate throw event nameCallActivityBuilder addCallActivity(String name, Expression callableElement, Expression callableElementVersion)
CallActivityDefinition
on this elementname
- The call activity namecallableElement
- The expression representing the name of process to be calledcallableElementVersion
- The expression representing the version of process to be calledSubProcessActivityDefinitionBuilder addSubProcess(String name, boolean triggeredByEvent)
SubProcessDefinition
on this elementname
- The sub process nametriggeredByEvent
- true if it's an event sub-process; false if it's a subprocessTransitionDefinitionBuilder addDefaultTransition(String source, String target)
source
- The source element nametarget
- The target element nameCopyright © 2020 Bonitasoft S.A. All rights reserved.