public final class ProcessDefinitionBuilderExt extends ProcessDefinitionBuilder
process
Constructor and Description |
---|
ProcessDefinitionBuilderExt() |
Modifier and Type | Method and Description |
---|---|
BusinessDataDefinitionBuilder |
addBusinessData(String name,
String className,
Expression defaultValue)
Add a new
BusinessDataDefinition on this process. |
ParameterDefinitionBuilder |
addParameter(String parameterName,
String type)
Add a parameter on this process.
|
ProcessDefinitionBuilderExt |
createNewInstance(String name,
String version)
Initiates the building of a new
DesignProcessDefinition with the given name and version. |
void |
setStringIndex(int index,
String label,
Expression initialValue)
Set the process string index at the given position.
|
protected void |
validateBusinessData() |
addActor, addActor, addAutomaticTask, addBlobData, addBooleanData, addCallActivity, addConnector, addData, addDateData, addDefaultTransition, addDescription, addDisplayDescription, addDisplayName, addDocumentDefinition, addDocumentListDefinition, addDoubleData, addEndEvent, addError, addFloatData, addGateway, addIntegerData, addIntermediateCatchEvent, addIntermediateThrowEvent, addLongData, addLongTextData, addManualTask, addReceiveTask, addSendTask, addShortTextData, addStartEvent, addSubProcess, addTransition, addTransition, addUserTask, addXMLData, checkName, done, getProcess, setActorInitiator
public ProcessDefinitionBuilderExt createNewInstance(String name, String version)
ProcessDefinitionBuilder
DesignProcessDefinition
with the given name and version. This method is the entry point of this builder. It must
be called before any other method. The DesignProcessDefinition
building will be completed when the method ProcessDefinitionBuilder.done()
or
ProcessDefinitionBuilder.getProcess()
is called.createNewInstance
in class ProcessDefinitionBuilder
name
- the process nameversion
- the process versionpublic ParameterDefinitionBuilder addParameter(String parameterName, String type)
parameterName
- The name of the new ParameterDefinition
type
- The type of the new ParameterDefinition
(complete class name)ParameterDefinitionBuilder
containing the new ParameterDefinition
public void setStringIndex(int index, String label, Expression initialValue)
index
- The position to be set. Valid values are between 1 and 5 (inclusive)label
- The label to be displayed for this positioninitialValue
- The expression representing the initial index valuepublic BusinessDataDefinitionBuilder addBusinessData(String name, String className, Expression defaultValue)
BusinessDataDefinition
on this process.name
- The name of the new BusinessDataDefinition
className
- The complete name of class defining the new BusinessDataDefinition
typedefaultValue
- The expression representing the default valueBusinessDataDefinitionBuilder
containing the new BusinessDataDefinition
protected void validateBusinessData()
validateBusinessData
in class ProcessDefinitionBuilder
Copyright © 2015 Bonitasoft S.A.. All rights reserved.