public class FlowElementContainerBuilder extends Object implements FlowElementBuilder
| Constructor and Description |
|---|
FlowElementContainerBuilder(FlowElementContainerDefinitionImpl container,
ProcessDefinitionBuilder processDefinitionBuilder) |
public FlowElementContainerBuilder(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)
FlowElementBuilderUserTaskDefinition on this elementaddUserTask in interface FlowElementBuildertaskName - The task nameactorName - The name of the actor that will perform this taskpublic AutomaticTaskDefinitionBuilder addAutomaticTask(String taskName)
FlowElementBuilderaddAutomaticTask in interface FlowElementBuildertaskName - The task namepublic ReceiveTaskDefinitionBuilder addReceiveTask(String activityName, String messageName)
FlowElementBuilderReceiveTaskDefinition on this elementaddReceiveTask in interface FlowElementBuilderactivityName - The task namemessageName - The name of message to be receivedpublic SendTaskDefinitionBuilder addSendTask(String taskName, String messageName, Expression targetProcess)
FlowElementBuilderSendTaskDefinition on this elementaddSendTask in interface FlowElementBuildertaskName - The task namemessageName - The name of message to be senttargetProcess - The expression representing the target process namepublic ManualTaskDefinitionBuilder addManualTask(String name, String actorName)
FlowElementBuilderManualTaskDefinition on this elementaddManualTask in interface FlowElementBuildername - The task nameactorName - The name of the actor that will perform this taskpublic TransitionDefinitionBuilder addTransition(String source, String target)
FlowElementBuilderaddTransition in interface FlowElementBuildersource - The source element nametarget - The target element namepublic TransitionDefinitionBuilder addTransition(String source, String target, Expression condition)
FlowElementBuilderaddTransition in interface FlowElementBuildersource - 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)
FlowElementBuilderaddDefaultTransition in interface FlowElementBuildersource - The source element nametarget - The target element namepublic GatewayDefinitionBuilder addGateway(String name, GatewayType gatewayType)
FlowElementBuilderGatewayDefinition on this elementaddGateway in interface FlowElementBuildername - The gateway namegatewayType - The gateway typepublic StartEventDefinitionBuilder addStartEvent(String name)
FlowElementBuilderStartEventDefinition on this elementaddStartEvent in interface FlowElementBuildername - The start event namepublic EndEventDefinitionBuilder addEndEvent(String name)
FlowElementBuilderEndEventDefinition on this elementaddEndEvent in interface FlowElementBuildername - The end event namepublic IntermediateCatchEventDefinitionBuilder addIntermediateCatchEvent(String name)
FlowElementBuilderIntermediateCatchEventDefinition on this elementaddIntermediateCatchEvent in interface FlowElementBuildername - The intermediate catch event namepublic IntermediateThrowEventDefinitionBuilder addIntermediateThrowEvent(String name)
FlowElementBuilderIntermediateThrowEventDefinition on this elementaddIntermediateThrowEvent in interface FlowElementBuildername - The intermediate throw event namepublic CallActivityBuilder addCallActivity(String name, Expression callableElement, Expression callableElementVersion)
FlowElementBuilderCallActivityDefinition on this elementaddCallActivity in interface FlowElementBuildername - 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)
FlowElementBuilderSubProcessDefinition on this elementaddSubProcess in interface FlowElementBuildername - 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)
FlowElementBuilderMust also add connector dependencies and connector implementation descriptor
addConnector in interface FlowElementBuildername - 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)
FlowElementBuilderaddIntegerData in interface FlowElementBuildername - The data namedefaultValue - The expression representing the default valuepublic DataDefinitionBuilder addLongData(String name, Expression defaultValue)
FlowElementBuilderaddLongData in interface FlowElementBuildername - The data namedefaultValue - The expression representing the default valuepublic DataDefinitionBuilder addShortTextData(String name, Expression defaultValue)
FlowElementBuilderaddShortTextData in interface FlowElementBuildername - The data namedefaultValue - The expression representing the default valuepublic TextDataDefinitionBuilder addLongTextData(String name, Expression defaultValue)
FlowElementBuilderaddLongTextData in interface FlowElementBuildername - The data namedefaultValue - The expression representing the default valuepublic DataDefinitionBuilder addDoubleData(String name, Expression defaultValue)
FlowElementBuilderaddDoubleData in interface FlowElementBuildername - The data namedefaultValue - The expression representing the default valuepublic DataDefinitionBuilder addFloatData(String name, Expression defaultValue)
FlowElementBuilderaddFloatData in interface FlowElementBuildername - The data namedefaultValue - The expression representing the default valuepublic DataDefinitionBuilder addDateData(String name, Expression defaultValue)
FlowElementBuilderaddDateData in interface FlowElementBuildername - The data namedefaultValue - The expression representing the default valuepublic XMLDataDefinitionBuilder addXMLData(String name, Expression defaultValue)
FlowElementBuilderaddXMLData in interface FlowElementBuildername - The data namedefaultValue - The expression representing the default valuepublic DataDefinitionBuilder addBlobData(String name, Expression defaultValue)
FlowElementBuilderaddBlobData in interface FlowElementBuildername - The data namedefaultValue - The expression representing the default valuepublic DataDefinitionBuilder addBooleanData(String name, Expression defaultValue)
FlowElementBuilderaddBooleanData in interface FlowElementBuildername - The data namedefaultValue - The expression representing the default valuepublic DataDefinitionBuilder addData(String name, String className, Expression defaultValue)
FlowElementBuilderaddData in interface FlowElementBuildername - The data nameclassName - The data type class name (i.e. java.lang.String)defaultValue - The expression representing the default valueprotected FlowElementContainerDefinitionImpl getContainer()
protected ProcessDefinitionBuilder getProcessBuilder()
Copyright © 2018 Bonitasoft S.A.. All rights reserved.