public interface ProcessModelFactory extends CommonModelFactory
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ProcessModelFactory.StructuralNodeData
Structural node data.
|
| Modifier and Type | Method and Description |
|---|---|
Activity |
createActivity(java.util.UUID id,
java.lang.String executableComponentDescriptionName,
java.lang.String operationName,
java.lang.String configurationSetName,
java.lang.String name,
java.lang.String description,
java.lang.String implementationClass,
java.util.Map<ActivityConstants.ActivityModelEntityType,java.util.List<java.lang.String>> separatedClassPaths,
ClassLoaderUsage classLoaderUsage,
byte[] systemComponentSignature,
java.lang.String guiContextID,
ExecutionControlProperties executionControlProperties,
boolean supportsViewOnly,
boolean supportsTestExecution,
java.util.UUID iconID,
java.util.Map<ActivityConstants.LocallyOverrideableActivityAttribute,ActivityConstants.ActivityModelEntityType> attributeOrigins,
ActivityConfiguration configuration,
ActivityConfiguration testConfiguration,
ParameterChangePolicy parameterChangePolicy,
java.util.Set<ProcessModelParameter> inputParameters,
java.util.Set<ProcessModelParameter> outputParameters,
PluginDataContainer pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Create an activity object.
|
ChangeableActivityConfiguration |
createConfiguration(ActivityConfiguration template)
Creates a new
ChangeableActivityConfiguration containing the values
from the given template. |
DataEdge |
createDataEdge(ActivityConstants.AccessType type,
boolean optional,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Create a data edge.
|
DataElement |
createDataElement(int id,
java.lang.String name,
ProcessConstants.AdeptDataType type,
java.lang.String description,
java.lang.String userDefinedType,
java.util.UUID iconID,
java.util.UUID identifierID,
boolean isPublic,
boolean virtual,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins,
java.util.Map<java.lang.String,PluginData> pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Create a DataElement.
|
DecisionActivity |
createDecisionActivity(Activity activity,
ProcessModelParameter decisionParameter,
java.util.Map<java.lang.Long,java.util.Collection<DecisionStatement>> decisionMapping)
Creates a new decision activity object, based on the given activity.
|
DecisionActivity |
createDecisionActivity(java.util.UUID id,
java.lang.String executableComponentDescriptionName,
java.lang.String operationName,
java.lang.String configurationSetName,
java.lang.String name,
java.lang.String description,
java.lang.String implementationClass,
java.util.Map<ActivityConstants.ActivityModelEntityType,java.util.List<java.lang.String>> separatedClassPaths,
ClassLoaderUsage classLoaderUsage,
byte[] systemComponentSignature,
java.lang.String guiContextID,
ExecutionControlProperties executionControlProperties,
boolean supportsViewOnly,
boolean supportsTestExecution,
java.util.UUID iconID,
java.util.Map<ActivityConstants.LocallyOverrideableActivityAttribute,ActivityConstants.ActivityModelEntityType> attributeOrigins,
ActivityConfiguration configuration,
ActivityConfiguration testConfiguration,
ParameterChangePolicy parameterChangePolicy,
java.util.Set<ProcessModelParameter> inputParameters,
java.util.Set<ProcessModelParameter> outputParameters,
PluginDataContainer pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes,
ProcessModelParameter decisionParameter,
java.util.Map<java.lang.Long,java.util.Collection<DecisionStatement>> decisionMapping)
Creates a decision activity object.
|
DecisionStatement |
createDecisionStatement(java.lang.String decisionLabel,
java.lang.String decisionStatement,
long decisionId,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins,
java.util.Map<java.lang.String,PluginData> pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Creates a new decision statement object.
|
TemplateStatus |
createDefaultTemplateStatus(java.util.UUID templateID)
Create an initial TemplateStatus object with all comments set to "initial
template status".
|
EBPInstanceReference |
createEBPInstanceReference(EBPType type,
java.util.UUID instanceID,
java.util.UUID instanceLogID,
java.util.UUID baseTemplateID,
int nodeID,
int nodeIteration,
java.net.URI[] executionManagerURIs)
Create a new EBP instance reference object.
|
EBPInstanceReference |
createEBPInstanceReference(EBPType type,
java.util.UUID instanceID,
java.util.UUID instanceLogID,
java.util.UUID baseTemplateID,
int nodeID,
int nodeIteration,
java.net.URI[] executionManagerURIs,
java.net.URI[] runtimeManagerURIs)
Create a new EBP instance reference object.
|
EBPInstanceReference |
createEBPInstanceReference(int nodeID,
Instance instance,
java.net.URI[] executionManagerURIs)
Create a new EBP instance reference object for the designated node of the
designated instance being from the designated execution manager.
|
Edge |
createEdge(ProcessConstants.EdgeType type,
long edgeCode,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Create an Edge.
|
EmbeddedProcess |
createEmbeddedProcess(Template embeddedTemplate,
java.util.UUID parentTemplateID,
java.util.UUID ownInternalID,
Configuration configuration,
Configuration testConfiguration,
ExecutionControlProperties executionControlProperties,
PluginDataContainer pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Creates an EmbeddedProcess object.
|
Instance |
createInstance(java.util.UUID id,
java.util.UUID logID,
java.lang.String name,
boolean isModified,
java.util.UUID baseTemplateID,
Template template,
QualifiedAgent supervisorAgent,
QualifiedAgent initiatorAgent,
EBPInstanceReference ebpInstanceReference,
long creationTime,
java.util.Map<java.lang.Integer,ProcessConstants.NodeState> nodeStates,
java.util.Map<java.lang.Integer,java.lang.Integer> nodeIterations,
java.util.Map<java.lang.Integer,ProcessConstants.ExecutionMode> nodeExecutionModes,
java.util.Map<java.lang.Integer,java.util.List<java.util.UUID>> nodeLWPInstanceIDs,
java.util.Map<java.lang.Integer,QualifiedAgent> activityAgents,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins,
java.util.Map<java.lang.String,PluginData> pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
|
InstanceHistories |
createInstanceHistories(java.util.UUID instanceID,
org.w3c.dom.Document executionHistoryXML,
org.w3c.dom.Document changeHistoryXML)
Creates an object containing all histories of an instance.
|
Instance |
createInstanceLwpIts(java.util.UUID id,
java.util.UUID logId,
java.lang.String name,
boolean isModified,
java.util.UUID baseTemplateId,
Template template,
QualifiedAgent supervisorAgent,
QualifiedAgent initiatorAgent,
EBPInstanceReference ebpInstanceReference,
long creationTime,
java.util.Map<java.lang.Integer,ProcessConstants.NodeState> nodeStates,
java.util.Map<java.lang.Integer,java.lang.Integer> nodeIterations,
java.util.Map<java.lang.Integer,ProcessConstants.ExecutionMode> nodeExecutionModes,
java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.List<java.util.UUID>>> nodeLwpInstanceIds,
java.util.Map<java.lang.Integer,QualifiedAgent> activityAgents,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins,
java.util.Map<java.lang.String,PluginData> pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Create an Instance.
|
InstanceReference |
createInstanceReference(java.util.UUID id,
java.util.UUID logID,
java.lang.String name,
boolean isModified,
TemplateReference template,
QualifiedAgent supervisorAgent,
QualifiedAgent initiatorAgent,
long creationTime,
java.util.UUID parentInstanceID,
ProcessConstants.InstanceExecutionStatus executionStatus,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins,
java.util.Map<java.lang.String,PluginData> pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Create an InstanceReference.
|
InstanceStatus |
createInstanceStatus(java.util.UUID instanceID,
ProcessConstants.InstanceMigrationStatus migrationStatus,
long migrationStatusDate,
java.lang.String migrationStatusComment,
ProcessConstants.InstanceExecutionStatus executionStatus,
long executionStatusDate,
java.lang.String executionStatusComment) |
InstanceStatus |
createInstanceStatus(java.util.UUID instanceID,
ProcessConstants.InstanceMigrationStatus migrationStatus,
java.lang.String migrationStatusComment,
ProcessConstants.InstanceExecutionStatus executionStatus,
java.lang.String executionStatusComment) |
Node |
createNode(int id,
java.lang.String name,
java.lang.String description,
java.lang.String staffAssignmentRule,
ExecutableBusinessProcess executableBusinessProcess,
boolean autoStart,
java.util.UUID iconID,
java.lang.String groupName,
java.lang.String groupExecutionContext,
java.util.Map<ActivityConstants.AccessType,java.util.Map<java.lang.String,java.lang.Integer>> parameterConnectorMapping,
java.util.Map<ActivityConstants.AccessType,java.util.Set<ProcessModelParameter>> systemParameters,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins,
java.util.Map<java.lang.String,PluginData> pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Create a Node object.
|
Template |
createNullTemplate(QualifiedAgent supervisorAgent)
Creates a null template using the underlaying implementation.
|
ProcessModelParameter |
createProcessModelParameter(java.lang.String name,
java.lang.String description,
ProcessConstants.AdeptDataType dataType,
java.lang.String udtName,
java.util.UUID identifierID,
boolean isOptional,
boolean isVirtual,
boolean isFailure,
java.lang.String defaultValue,
ActivityConfiguration configuration,
PluginDataContainer pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Create a process model parameter object.
|
ProcessType |
createProcessType(java.lang.String name,
TemplateProxy templateProxy)
Creates a new process type.
|
ReferencedProcess |
createReferencedProcess(java.util.UUID templateID,
boolean fork,
Configuration configuration,
Configuration testConfiguration,
ExecutionControlProperties executionControlProperties,
java.util.Set<ProcessModelParameter> inputParameters,
java.util.Set<ProcessModelParameter> outputParameters,
PluginDataContainer pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Creates a ReferencedProcess object.
|
ProcessModelFactory.StructuralNodeData |
createStructuralNodeData(int nodeID,
ProcessConstants.NodeType nodeType,
int topologicalID,
int branchID,
int splitNodeID,
int correspondingBlockNodeID)
Create a temporary object, containing all structural information
of a node.
|
StructuredDataEdge |
createStructuredDataEdge(DataEdge dataEdge,
int nodeID,
int connectorID,
int dataElementID)
Create a structured data edge (a container for a data edge and its
structural information).
|
StructuredEdge |
createStructuredEdge(Edge edge,
int sourceNodeID,
int destinationNodeID)
Create a structured edge (a container for an edge and its
structural information).
|
Template |
createTemplate(java.util.UUID id,
java.lang.String name,
java.lang.String description,
ConfigurationDescription configurationDescription,
Configuration configuration,
Configuration testConfiguration,
java.lang.String processType,
QualifiedAgent supervisorAgent,
java.lang.String version,
java.util.Set<ProcessModelParameter> inputParameters,
java.util.Set<ProcessModelParameter> outputParameters,
TemplateDeltaLayer deltaLayer,
java.util.Collection<Node> nodes,
java.util.Collection<DataElement> dataElements,
java.util.Set<StructuredEdge> edges,
java.util.Set<StructuredDataEdge> dataEdges,
java.util.Map<java.lang.Integer,ProcessModelFactory.StructuralNodeData> structuralNodeData,
java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> nodeDisabledConnectors,
int startNodeID,
int endNodeID,
java.lang.String instanceNameTemplate,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins,
java.util.Map<java.lang.String,PluginData> pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Create a Template.
|
TemplateProxy |
createTemplateProxy(TemplateReference templRef,
java.util.UUID parent,
java.util.List<java.util.UUID> children,
java.util.Set<java.net.URI[]> deployedPm,
long creationTime,
long modificationTime,
java.lang.String internalVersion,
QualifiedAgent lockingAgent)
Creates a new template proxy.
|
TemplateReference |
createTemplateReference(java.util.UUID templateID,
java.lang.String processType,
java.lang.String version,
java.lang.String name,
java.lang.String description,
QualifiedAgent supervisorAgent,
java.util.Set<ProcessModelParameter> inputParameters,
java.util.Set<ProcessModelParameter> outputParameters,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins,
java.util.Map<java.lang.String,PluginData> pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes,
boolean topLevelUsable,
ProcessConstants.TemplateUsage usageAsSubprocess,
ProcessConstants.TemplateBuildtimeState buildtimeState,
boolean derivable,
boolean spOutdated,
boolean tlOutdated,
boolean spInstantiable,
boolean tlInstantiable,
boolean spMigratable,
boolean tlMigratable,
boolean spChangeable,
boolean tlChangeable)
Create a TemplateReference.
|
TemplateStatus |
createTemplateStatus(java.util.UUID templateID,
ProcessConstants.TemplateBuildtimeState buildtimeState,
ProcessConstants.TemplateUsage subprocessUsage,
boolean topLevelUsage,
boolean derivable,
java.lang.String derivableComment,
boolean tlOutdated,
java.lang.String tlOutdatedComment,
boolean spOutdated,
java.lang.String spOutdatedComment,
boolean tlInstantiable,
java.lang.String tlInstantiableComment,
boolean spInstantiable,
java.lang.String spInstantiableComment,
boolean tlInstancesMigratableTo,
java.lang.String tlInstancesMigratableComment,
boolean spInstancesMigratableTo,
java.lang.String spInstancesMigratableComment,
boolean tlInstancesChangeable,
java.lang.String tlInstancesChangeableComment,
boolean spInstancesChangeable,
java.lang.String spInstancesChangeableComment,
java.lang.String starterRule)
Create a TemplateStatus object with all comments set as provided.
|
VariableParallelismEBP |
createVariableParallelismEBP(LightWeightProcess lwp,
java.util.Set<ProcessModelParameter> indexedInputParameters,
Configuration configuration,
Configuration testConfiguration,
ExecutionControlProperties executionControlProperties,
java.util.Set<ProcessModelParameter> inputParameters,
java.util.Set<ProcessModelParameter> outputParameters,
PluginDataContainer pluginData,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Create an EBP for variable parallelism.
|
void |
setCreateChangeable(boolean changeable)
Configures the factory to either create changeable or not changeable
objects.
|
createActivityConfiguration, createActivityConfiguration, createActivityConfiguration, createChangeableActivityConfiguration, createChangeableActivityConfiguration, createChangeableConfiguration, createChangeableConfiguration, createChangeableConfigurationDescription, createConfiguration, createConfiguration, createConfiguration, createConfigurationDescription, createConfigurationEntry, createConfigurationWrapper, createIconDescriptor, createMergingConfiguration, createPluginData, createPluginDataContainer, createResourceDescriptorvoid setCreateChangeable(boolean changeable)
createTemplate(UUID, String, String, ConfigurationDescription, Configuration, Configuration, String, QualifiedAgent, String, Set, Set, TemplateDeltaLayer, Collection, Collection, Set, Set, Map, Map, int, int, String, Map, Map, Map)
and the
createInstance
methods only.
Note: The default behaviour is to create unchangeable objects.
Note: do not use a process model factory objects from different threads and different purposes (i.e. changeable or not)! Since the access to the methods is not synchronised, any change to the setting may overwrite the setting done by a different thread!
changeable - If set to true, the factory will create changeable
templates and instances.java.lang.RuntimeException - In case the process model factory has no
implementation for changeable objects and changeable
is set to true.Node createNode(int id, java.lang.String name, java.lang.String description, java.lang.String staffAssignmentRule, ExecutableBusinessProcess executableBusinessProcess, boolean autoStart, java.util.UUID iconID, java.lang.String groupName, java.lang.String groupExecutionContext, java.util.Map<ActivityConstants.AccessType,java.util.Map<java.lang.String,java.lang.Integer>> parameterConnectorMapping, java.util.Map<ActivityConstants.AccessType,java.util.Set<ProcessModelParameter>> systemParameters, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins, java.util.Map<java.lang.String,PluginData> pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes)
id - The ID of the new node.name - The name of the new node.description - A description for the new node.staffAssignmentRule - The staff assignment rule for the new node.executableBusinessProcess - The EBP for the new node.autoStart - Whether the node could be started automatically.iconID - The icon ID of the new node.groupName - The name of the group this node can be part of, null or the empty
string for a node that cannot be part of a group.groupExecutionContext - The execution context of the group this node can be part of,
null or the empty string for a group for structuring purpose. The
execution context specifies the UI element to use for the combined execution of the
nodes of the group.parameterConnectorMapping - Mapping from access type to parameter name, to connector ID.systemParameters - Mapping from access type to parameters.supportedPlugins - Mapping from extensionPointID to pluginIDs.pluginData - Mapping from pluginID to plugin data.userAttributes - User defined Attributes for the new node.Edge createEdge(ProcessConstants.EdgeType type, long edgeCode, java.util.Map<java.lang.String,java.lang.String> userAttributes)
type - The type of the new edge.edgeCode - The edge code of the new edge.userAttributes - User defined attributes for the new edge.Template createTemplate(java.util.UUID id, java.lang.String name, java.lang.String description, ConfigurationDescription configurationDescription, Configuration configuration, Configuration testConfiguration, java.lang.String processType, QualifiedAgent supervisorAgent, java.lang.String version, java.util.Set<ProcessModelParameter> inputParameters, java.util.Set<ProcessModelParameter> outputParameters, TemplateDeltaLayer deltaLayer, java.util.Collection<Node> nodes, java.util.Collection<DataElement> dataElements, java.util.Set<StructuredEdge> edges, java.util.Set<StructuredDataEdge> dataEdges, java.util.Map<java.lang.Integer,ProcessModelFactory.StructuralNodeData> structuralNodeData, java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> nodeDisabledConnectors, int startNodeID, int endNodeID, java.lang.String instanceNameTemplate, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins, java.util.Map<java.lang.String,PluginData> pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes)
id - The ID of the new template.name - The name of the new template.description - The description of the new template.processType - The process Type of the new template.supervisorAgent - The supervisor agent of the new template.version - The version of the new template.inputParameters - The input parameters of the new template.outputParameters - The output parameters of the new template.deltaLayer - The delta layer of the new template.nodes - The nodes the new template contains.dataElements - The data elements the new template contains.edges - The edges the new template contains.dataEdges - The dataEdges the new template contains.structuralNodeData - A map from the ID of the node to its structural
data.nodeDisabledConnectors - The connectors of a node, which have been
disabled (key is the node ID, List are the IDs of the disabled
connectors).startNodeID - The ID of the start node of the new template.endNodeID - The ID of the end node of the new template.instanceNameTemplate - The pattern for the name of an instance of this
template.supportedPlugins - Mapping from extensionPointID to pluginIDs.pluginData - Mapping from pluginID to plugin data.userAttributes - User defined attributes for the new template.TemplateReference createTemplateReference(java.util.UUID templateID, java.lang.String processType, java.lang.String version, java.lang.String name, java.lang.String description, QualifiedAgent supervisorAgent, java.util.Set<ProcessModelParameter> inputParameters, java.util.Set<ProcessModelParameter> outputParameters, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins, java.util.Map<java.lang.String,PluginData> pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes, boolean topLevelUsable, ProcessConstants.TemplateUsage usageAsSubprocess, ProcessConstants.TemplateBuildtimeState buildtimeState, boolean derivable, boolean spOutdated, boolean tlOutdated, boolean spInstantiable, boolean tlInstantiable, boolean spMigratable, boolean tlMigratable, boolean spChangeable, boolean tlChangeable)
templateID - The ID of the template.processType - The process type of the template.version - The version of the template.name - The name of the template.description - The description of the template.supervisorAgent - The supervisor agent of the template.inputParameters - The input parameters of the template.outputParameters - The output parameters of the template.supportedPlugins - Mapping from extensionPointID to pluginIDs.pluginData - Mapping from pluginID to plugin data.userAttributes - User defined attributes for the new template.topLevelUsable - Whether the template is top level usable.usageAsSubprocess - The usage as subprocess of the template.buildtimeState - The buildtime state of the template.derivable - Whether the template is derivable.spOutdated - Whether the template is outdated (subprocess scope).tlOutdated - Whether the template is outdated (toplevel scope).spInstantiable - Whether the template is instantiable (subprocess
scope).tlInstantiable - Whether the template is instantiable (toplevel
scope).spMigratable - Whether the template is migratable (subprocess scope).tlMigratable - Whether the template is migratable (toplevel scope).spChangeable - Whether the template is changeable (subprocess scope).tlChangeable - Whether the template is changeable (toplevel scope).TemplateStatus createDefaultTemplateStatus(java.util.UUID templateID)
templateID - The ID of the template this status object belongs to.TemplateStatus createTemplateStatus(java.util.UUID templateID, ProcessConstants.TemplateBuildtimeState buildtimeState, ProcessConstants.TemplateUsage subprocessUsage, boolean topLevelUsage, boolean derivable, java.lang.String derivableComment, boolean tlOutdated, java.lang.String tlOutdatedComment, boolean spOutdated, java.lang.String spOutdatedComment, boolean tlInstantiable, java.lang.String tlInstantiableComment, boolean spInstantiable, java.lang.String spInstantiableComment, boolean tlInstancesMigratableTo, java.lang.String tlInstancesMigratableComment, boolean spInstancesMigratableTo, java.lang.String spInstancesMigratableComment, boolean tlInstancesChangeable, java.lang.String tlInstancesChangeableComment, boolean spInstancesChangeable, java.lang.String spInstancesChangeableComment, java.lang.String starterRule)
templateID - The ID of the template this status object belongs to.buildtimeState - The TemplateBuildtimeState of this template
specifying whether changes are allowed.subprocessUsage - How the template may be used as subprocess.topLevelUsage - Whether the template may be used and instantiated as
top-level processderivable - Whether the template is derivable or not.derivableComment - The derivable comment.tlOutdated - Whether the template is outdated for top-level usage.tlOutdatedComment - The outdated comment for top-level usage.spOutdated - Whether the template is outdated for subprocess usage.spOutdatedComment - The outdated comment for subprocess usage.tlInstantiable - Whether the template is instantiable as top-level.tlInstantiableComment - The instantiable comment for top-level usage.spInstantiable - Whether the template is instantiable as subprocess.spInstantiableComment - The instantiable comment for subprocess usage.tlInstancesMigratableTo - Whether parent top-level instances may be
migrated to the template.tlInstancesMigratableComment - The migratable comment for top-level
usage.spInstancesMigratableTo - Whether parent subprocess instances may be
migrated to the template.spInstancesMigratableComment - The migratable comment for subprocess
usage.tlInstancesChangeable - Whether top-level instances are changeable.tlInstancesChangeableComment - The changeable comment for top-level
usage.spInstancesChangeable - Whether subprocess instances are changeable.spInstancesChangeableComment - The changeable comment for subprocess
usage.starterRule - The staff assignment rule which specifies which agent
may create and start an instance of this template.TemplateProxy createTemplateProxy(TemplateReference templRef, java.util.UUID parent, java.util.List<java.util.UUID> children, java.util.Set<java.net.URI[]> deployedPm, long creationTime, long modificationTime, java.lang.String internalVersion, QualifiedAgent lockingAgent)
templRef - A lightweight object representing the template.parent - The ID of the parent template of the template the proxy represents.children - The IDs of the derived children of the template the proxy represents. The
children have to be sorted by their creation date.deployedPm - The ProcessManagers the template is deployed to.creationTime - The time the template was created.modificationTime - The time the template was last modified.internalVersion - The internal version number.lockingAgent - The current locking agent.ProcessType createProcessType(java.lang.String name, TemplateProxy templateProxy)
name - The name of the process type.templateProxy - The proxy of the root template of the process type.@Deprecated Instance createInstance(java.util.UUID id, java.util.UUID logID, java.lang.String name, boolean isModified, java.util.UUID baseTemplateID, Template template, QualifiedAgent supervisorAgent, QualifiedAgent initiatorAgent, EBPInstanceReference ebpInstanceReference, long creationTime, java.util.Map<java.lang.Integer,ProcessConstants.NodeState> nodeStates, java.util.Map<java.lang.Integer,java.lang.Integer> nodeIterations, java.util.Map<java.lang.Integer,ProcessConstants.ExecutionMode> nodeExecutionModes, java.util.Map<java.lang.Integer,java.util.List<java.util.UUID>> nodeLWPInstanceIDs, java.util.Map<java.lang.Integer,QualifiedAgent> activityAgents, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins, java.util.Map<java.lang.String,PluginData> pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes)
createInstanceLwpIts(UUID, UUID, String, boolean, UUID, Template, QualifiedAgent, QualifiedAgent, EBPInstanceReference, long, Map, Map, Map, Map, Map, Map, Map, Map)
instead.id - The ID of the instance.logID - The log ID of the instance.name - The name of the instance.isModified - Whether the instance previously has been modified.baseTemplateID - The ID of the base template.template - The template or instance delta layer with the structural information on the
instance.supervisorAgent - The supervisor agent of the instance.initiatorAgent - The initiatorAgent of the instance.ebpInstanceReference - If the instance is a sub process, this contains an "up-reference"
to the super process. Else it is null.creationTime - The creation time of the instance.nodeStates - The states of the nodes, key is the node ID, value is the NodeState.nodeIterations - The iterations of the nodes, key is the node ID.nodeExecutionModes - The execution modes of the nodes, key is the node ID.nodeLWPInstanceIDs - The instance IDs of subprocesses at a node, key is the node ID.activityAgents - The assigned agents of an activity in the current iteration of the node,
key is the node ID.supportedPlugins - Mapping from extensionPointID to pluginIDs.pluginData - Mapping from pluginID to plugin data.userAttributes - User defined attributes for the new template.Instance createInstanceLwpIts(java.util.UUID id, java.util.UUID logId, java.lang.String name, boolean isModified, java.util.UUID baseTemplateId, Template template, QualifiedAgent supervisorAgent, QualifiedAgent initiatorAgent, EBPInstanceReference ebpInstanceReference, long creationTime, java.util.Map<java.lang.Integer,ProcessConstants.NodeState> nodeStates, java.util.Map<java.lang.Integer,java.lang.Integer> nodeIterations, java.util.Map<java.lang.Integer,ProcessConstants.ExecutionMode> nodeExecutionModes, java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.List<java.util.UUID>>> nodeLwpInstanceIds, java.util.Map<java.lang.Integer,QualifiedAgent> activityAgents, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins, java.util.Map<java.lang.String,PluginData> pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes)
id - The ID of the instance.logId - The log ID of the instance.name - The name of the instance.isModified - Whether the instance previously has been modified.baseTemplateId - The ID of the base template.template - The template or instance delta layer with the structural information on the
instance.supervisorAgent - The supervisor agent of the instance.initiatorAgent - The initiatorAgent of the instance.ebpInstanceReference - If the instance is a sub process, this contains an "up-reference"
to the super process. Else it is null.creationTime - The creation time of the instance.nodeStates - The states of the nodes, key is the node ID, value is the NodeState.nodeIterations - The iterations of the nodes, key is the node ID.nodeExecutionModes - The execution modes of the nodes, key is the node ID.nodeLwpInstanceIds - The instance IDs of subprocesses at a node, key is the node ID, inner
key is the iteration.activityAgents - The assigned agents of an activity in the current iteration of the node,
key is the node ID.supportedPlugins - Mapping from extensionPointID to pluginIDs.pluginData - Mapping from pluginID to plugin data.userAttributes - User defined attributes for the new template.InstanceReference createInstanceReference(java.util.UUID id, java.util.UUID logID, java.lang.String name, boolean isModified, TemplateReference template, QualifiedAgent supervisorAgent, QualifiedAgent initiatorAgent, long creationTime, java.util.UUID parentInstanceID, ProcessConstants.InstanceExecutionStatus executionStatus, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins, java.util.Map<java.lang.String,PluginData> pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes)
id - The ID of the instance.logID - The log ID of the instance.name - The name of the instance.isModified - Whether the instance is modified.template - The reference to the template.supervisorAgent - The supervisor agent of the instance.initiatorAgent - The initiator agent of the instance.parentInstanceID - The instanceID of the parent instance, if this is a
subprocess-instance, or null.executionStatus - The execution status of the instance.supportedPlugins - Mapping from extensionPointID to pluginIDs.pluginData - Mapping from pluginID to plugin data.userAttributes - User defined attributes for the new template.InstanceHistories createInstanceHistories(java.util.UUID instanceID, org.w3c.dom.Document executionHistoryXML, org.w3c.dom.Document changeHistoryXML)
instanceID - The ID of the instance, the histories belong to.executionHistoryXML - The execution history as DOM document.changeHistoryXML - The change history as DOM document.EBPInstanceReference createEBPInstanceReference(EBPType type, java.util.UUID instanceID, java.util.UUID instanceLogID, java.util.UUID baseTemplateID, int nodeID, int nodeIteration, java.net.URI[] executionManagerURIs)
type - instanceID - The (logical) ID of the instance.instanceLogID - The (unchangeable) log ID of the instance.baseTemplateID - nodeID - The ID of the node.nodeIteration - The ID of the node iteration.executionManagerURIs - The communication protocol depended references
to the execution manager managing the execution of the referenced
EBP/the containing node.EBPInstanceReference createEBPInstanceReference(EBPType type, java.util.UUID instanceID, java.util.UUID instanceLogID, java.util.UUID baseTemplateID, int nodeID, int nodeIteration, java.net.URI[] executionManagerURIs, java.net.URI[] runtimeManagerURIs)
type - instanceID - The (logical) ID of the instance.instanceLogID - The (unchangeable) log ID of the instance.baseTemplateID - nodeID - The ID of the node.nodeIteration - The ID of the node iteration.executionManagerURIs - A reference to the execution manager managing
the execution of the referenced EBP/the containing node.runtimeManagerURIs - A reference to the runtime manager which is/was
used for execution of the referenced EBP.EBPInstanceReference createEBPInstanceReference(int nodeID, Instance instance, java.net.URI[] executionManagerURIs)
nodeID - The ID of the node.instance - The instance for which to retrieve an EBP instance
reference for the designated node.executionManagerURIs - The communication protocol depended references
to the execution manager managing the execution of the designated
instance.InstanceStatus createInstanceStatus(java.util.UUID instanceID, ProcessConstants.InstanceMigrationStatus migrationStatus, java.lang.String migrationStatusComment, ProcessConstants.InstanceExecutionStatus executionStatus, java.lang.String executionStatusComment)
instanceID - The ID of the instance this status object belongs to.migrationStatus - The migration status of the instance.migrationStatusComment - The comment of the migration status.executionStatus - The execution status of the instance.executionStatusComment - The comment of the migration status.InstanceStatus createInstanceStatus(java.util.UUID instanceID, ProcessConstants.InstanceMigrationStatus migrationStatus, long migrationStatusDate, java.lang.String migrationStatusComment, ProcessConstants.InstanceExecutionStatus executionStatus, long executionStatusDate, java.lang.String executionStatusComment)
instanceID - The ID of the instance this status object belongs to.migrationStatus - The migration status of the instance.migrationStatusDate - The date the designated migration status has
been set.migrationStatusComment - The comment of the migration status.executionStatus - The execution status of the instance.executionStatusDate - The date the designated execution status has
been set.executionStatusComment - The comment of the migration status.ProcessModelParameter createProcessModelParameter(java.lang.String name, java.lang.String description, ProcessConstants.AdeptDataType dataType, java.lang.String udtName, java.util.UUID identifierID, boolean isOptional, boolean isVirtual, boolean isFailure, java.lang.String defaultValue, ActivityConfiguration configuration, PluginDataContainer pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes)
name - The name of the parameter.dataType - The type of the parameter.udtName - A user defined type for the parameter.identifierID - The identifierID of the parameter.isOptional - Whether the parameter is optional.description - A description of the parameter.isVirtual - Whether the parameter is virtual.ChangeableActivityConfiguration createConfiguration(ActivityConfiguration template)
ChangeableActivityConfiguration containing the values
from the given template. This may be null to create an empty configuration.template - the template to take the values from or null to
create an empty configurationChangeableActivityConfigurationDataElement createDataElement(int id, java.lang.String name, ProcessConstants.AdeptDataType type, java.lang.String description, java.lang.String userDefinedType, java.util.UUID iconID, java.util.UUID identifierID, boolean isPublic, boolean virtual, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins, java.util.Map<java.lang.String,PluginData> pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes)
id - The ID of the data element.type - The type of the data element.name - The name of the data element.description - A description of the data element.userDefinedType - A user defined type for the data element.iconID - The iconID of the data element.identifierID - The identifierID of the data element.isPublic - Whether the data element is publicvirtual - Whether the data element is virtual.supportedPlugins - Mapping from extensionPointID to pluginIDs.pluginData - Mapping from pluginID to plugin data.userAttributes - User defined attributes for the data element.DataEdge createDataEdge(ActivityConstants.AccessType type, boolean optional, java.util.Map<java.lang.String,java.lang.String> userAttributes)
type - The type of the data edge.optional - Whether the data edge is optional.userAttributes - User defined Attributes for the data edge.ReferencedProcess createReferencedProcess(java.util.UUID templateID, boolean fork, Configuration configuration, Configuration testConfiguration, ExecutionControlProperties executionControlProperties, java.util.Set<ProcessModelParameter> inputParameters, java.util.Set<ProcessModelParameter> outputParameters, PluginDataContainer pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes)
templateID - The template ID of the referenced process.fork - The boolean flag if the referenced process could be forked.inputParameters - The input parameters of the referenced process.outputParameters - The output parameters of the referenced process.executionControlProperties - the execution control properties
ExecutableBusinessProcess.getExecutionControlProperties()userAttributes - User defined Attributes for the referenced process.EmbeddedProcess createEmbeddedProcess(Template embeddedTemplate, java.util.UUID parentTemplateID, java.util.UUID ownInternalID, Configuration configuration, Configuration testConfiguration, ExecutionControlProperties executionControlProperties, PluginDataContainer pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes)
embeddedTemplate - The template object of the embedded process.parentTemplateID - The ID of the parent template which will be used
for Template.getID() of the embedded template since an
embedded template does not have an own ID to be used outside the
ExecutionManager.ownInternalID - The internal ID of the template (which may be
internally stored as reference); usually this ID is not
interpreted. If it does not exist or is unknown, use
null, it will be set when first storing the
embedded template.executionControlProperties - the execution control properties
ExecutableBusinessProcess.getExecutionControlProperties()userAttributes - User defined Attributes for the embedded process.VariableParallelismEBP createVariableParallelismEBP(LightWeightProcess lwp, java.util.Set<ProcessModelParameter> indexedInputParameters, Configuration configuration, Configuration testConfiguration, ExecutionControlProperties executionControlProperties, java.util.Set<ProcessModelParameter> inputParameters, java.util.Set<ProcessModelParameter> outputParameters, PluginDataContainer pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes)
lwp - The subprocess that is instantiated several times at runtime.indexedInputParameters - The input parameters (subset of the normalinputParameters - The input parameters of the referenced process.outputParameters - The output parameters of the referenced process.executionControlProperties - the execution control properties
ExecutableBusinessProcess.getExecutionControlProperties()userAttributes - User defined Attributes for the referenced process.Activity createActivity(java.util.UUID id, java.lang.String executableComponentDescriptionName, java.lang.String operationName, java.lang.String configurationSetName, java.lang.String name, java.lang.String description, java.lang.String implementationClass, java.util.Map<ActivityConstants.ActivityModelEntityType,java.util.List<java.lang.String>> separatedClassPaths, ClassLoaderUsage classLoaderUsage, byte[] systemComponentSignature, java.lang.String guiContextID, ExecutionControlProperties executionControlProperties, boolean supportsViewOnly, boolean supportsTestExecution, java.util.UUID iconID, java.util.Map<ActivityConstants.LocallyOverrideableActivityAttribute,ActivityConstants.ActivityModelEntityType> attributeOrigins, ActivityConfiguration configuration, ActivityConfiguration testConfiguration, ParameterChangePolicy parameterChangePolicy, java.util.Set<ProcessModelParameter> inputParameters, java.util.Set<ProcessModelParameter> outputParameters, PluginDataContainer pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes)
DecisionActivity createDecisionActivity(java.util.UUID id, java.lang.String executableComponentDescriptionName, java.lang.String operationName, java.lang.String configurationSetName, java.lang.String name, java.lang.String description, java.lang.String implementationClass, java.util.Map<ActivityConstants.ActivityModelEntityType,java.util.List<java.lang.String>> separatedClassPaths, ClassLoaderUsage classLoaderUsage, byte[] systemComponentSignature, java.lang.String guiContextID, ExecutionControlProperties executionControlProperties, boolean supportsViewOnly, boolean supportsTestExecution, java.util.UUID iconID, java.util.Map<ActivityConstants.LocallyOverrideableActivityAttribute,ActivityConstants.ActivityModelEntityType> attributeOrigins, ActivityConfiguration configuration, ActivityConfiguration testConfiguration, ParameterChangePolicy parameterChangePolicy, java.util.Set<ProcessModelParameter> inputParameters, java.util.Set<ProcessModelParameter> outputParameters, PluginDataContainer pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes, ProcessModelParameter decisionParameter, java.util.Map<java.lang.Long,java.util.Collection<DecisionStatement>> decisionMapping)
The parameters are the same like the parameters of
createActivity(UUID, String, String, String, String, String, String, Map, ClassLoaderUsage, byte[], String, ExecutionControlProperties, boolean, boolean, UUID, Map, ActivityConfiguration, ActivityConfiguration, ParameterChangePolicy, Set, Set, PluginDataContainer, Map)
without the set of output parameters.
DecisionActivity createDecisionActivity(Activity activity, ProcessModelParameter decisionParameter, java.util.Map<java.lang.Long,java.util.Collection<DecisionStatement>> decisionMapping)
activity - decisionParameter - decisionMapping - The mapping from edge code to all of the
corresponding decision statements.DecisionStatement createDecisionStatement(java.lang.String decisionLabel, java.lang.String decisionStatement, long decisionId, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> supportedPlugins, java.util.Map<java.lang.String,PluginData> pluginData, java.util.Map<java.lang.String,java.lang.String> userAttributes)
decisionLabel - decisionStatement - decisionId - supportedPlugins - Mapping from extensionPointID to pluginIDs. This
may be null.pluginData - Mapping from pluginID to plugin data. This may be
null.userAttributes - The user attributes of the decision statement. This
may be null.Template createNullTemplate(QualifiedAgent supervisorAgent)
The template will have a random ID.
supervisorAgent - The agent who creates the new templateStructuredEdge createStructuredEdge(Edge edge, int sourceNodeID, int destinationNodeID)
edge - The edge object.sourceNodeID - The source node ID of the edge.destinationNodeID - The destination node ID of the edge.StructuredDataEdge createStructuredDataEdge(DataEdge dataEdge, int nodeID, int connectorID, int dataElementID)
dataEdge - The data edge object.nodeID - The source node ID of the data edge.connectorID - The ID of the connector.dataElementID - The ID of the data element.ProcessModelFactory.StructuralNodeData createStructuralNodeData(int nodeID, ProcessConstants.NodeType nodeType, int topologicalID, int branchID, int splitNodeID, int correspondingBlockNodeID)
nodeID - The ID of the node.nodeType - The type of the node.topologicalID - The topological ID of the node.branchID - The branch ID of the node.splitNodeID - The split node ID of the node.correspondingBlockNodeID - The corresponding block node ID.