public class ProcessDefinitionBuilder extends Object
A builder to conveniently create process definitions.
In Eclipse, you can register this class as a favorite ("Preferences" - "Java" - "Editor" - "Content Assist" - "Favorites"). Content assist will then propose the builder even if the import is missing.
ProcessDefinition
,
ProcessDefinitionBuffer
Modifier and Type | Method and Description |
---|---|
static ProcessDefinitionBuilder |
aProcess(String name,
Class<? extends CommunicativeAgent> implementation)
Creates a builder for process definitions.
|
ProcessDefinition |
build()
Creates the process definition defined by this builder.
|
ProcessDefinitionBuilder |
withAttribute(Attribute attribute)
Adds an attribute to the process definition.
|
ProcessDefinitionBuilder |
withStartTime(Timestamp startTime)
Sets the start time of this process definition.
|
public static ProcessDefinitionBuilder aProcess(String name, Class<? extends CommunicativeAgent> implementation)
name
- the process nameimplementation
- the process implementationNullPointerException
- if the name is null
NullPointerException
- if the type is null
NullPointerException
- if the implementation is null
public ProcessDefinitionBuilder withAttribute(Attribute attribute)
attribute
- the attribute to be addedNullPointerException
- if the attribute is null
public ProcessDefinitionBuilder withStartTime(Timestamp startTime)
startTime
- the start time of this process definitionIllegalStateException
- if the start time is already setNullPointerException
- if the start time is null
public ProcessDefinition build()
Copyright © Aimpulse Intelligent Systems GmbH
All rights reserved.