| Package | Description |
|---|---|
| de.aristaflow.adept2.core.changeoperations | |
| de.aristaflow.adept2.core.checks.processmodel | |
| de.aristaflow.adept2.core.datamanager | |
| de.aristaflow.adept2.core.logmanager.logs | |
| de.aristaflow.adept2.core.processimagerenderer | |
| de.aristaflow.adept2.core.processmanager | |
| de.aristaflow.adept2.model.execution | |
| de.aristaflow.adept2.model.processmodel |
Warning: This package description is OUTDATED (work in progress)!!
|
| de.aristaflow.adept2.model.processmodel.tools | |
| de.aristaflow.adept2.model.processmodel.xml |
The xml packages provides a generic import and export functionality for all components implementing the common ADEPT2 processmodel interfaces and just requires an implementation of the ProcessModelFactory.
|
| de.aristaflow.adept2.model.worklistmodel |
| Modifier and Type | Method and Description |
|---|---|
static void |
ChangeOperationTools.fireNodeStateChangedEvent(UpdateManager updateManager,
Instance instance,
Node node)
Fires updates for changed node states
|
static boolean |
CopyNode.isPossible(ChangeableInstance sourceInstance,
Instance targetInstance,
int nodeToCopyID,
int predID,
int succID)
Check if it is possible (concerning structural and state based correctness)
to copy the given node to the specified target position in the given
instance.
|
static boolean |
CopyNode.isPossible(ChangeableInstance sourceInstance,
Instance targetInstance,
int nodeToCopyID,
int predID,
int succID,
CheckReport checkReport)
Check if it is possible (concerning structural and state based correctness)
to copy the given node to the specified target position in the given
instance.
|
static boolean |
UpdateInstance.isPossible(Instance instance,
CheckReport checkReport,
ProcessConstants.InstanceProperty... instanceProperties)
TODO change instance to instance id if we have a process repository Checks
if it is valid for the given instance to update the properties given by
Properties. |
static boolean |
AssignEmptyEmbeddedSubprocess.isPossible(Instance instance,
int nodeID)
Checks if the assignment of an empty embedded subprocess is valid
(concerning structural and state-based correctness) for the given instance.
|
static boolean |
AddNodeSystemParameter.isPossible(Instance instance,
int nodeID,
ActivityConstants.AccessType type,
ProcessModelParameter parameter)
Check if it is possible (concerning structural correctness and state based
correctness) to add the given system parameter to the given node.
|
static boolean |
AddNodeSystemParameter.isPossible(Instance instance,
int nodeID,
ActivityConstants.AccessType type,
ProcessModelParameter parameter,
CheckReport checkReport)
Check if it is possible (concerning structural correctness and state based
correctness) to add the given system parameter to the given node.
|
static boolean |
RemoveNodeSystemParameter.isPossible(Instance instance,
int nodeID,
ActivityConstants.AccessType type,
java.lang.String parameterName)
Check if it is possible (concerning structural correctness and state based
correctness) to remove the given system parameter from the given node.
|
static boolean |
RemoveNodeSystemParameter.isPossible(Instance instance,
int nodeID,
ActivityConstants.AccessType type,
java.lang.String parameterName,
CheckReport checkReport)
Check if it is possible (concerning structural correctness and state based
correctness) to remove the given system parameter from the given node.
|
static boolean |
AssignEmptyEmbeddedSubprocess.isPossible(Instance instance,
int nodeID,
CheckReport checkReport)
Checks if the assignment of an empty embedded subprocess is valid
(concerning structural and state-based correctness) for the given instance.
|
static boolean |
RemoveSystemDataFlow.isPossible(Instance instance,
int nodeID,
java.lang.String inputParameterName)
Check if it is possible (concerning structural correctness and state based
correctness) to remove the system data flow flow which is connected with
the given parameter.
|
static boolean |
RemoveSystemDataFlow.isPossible(Instance instance,
int nodeID,
java.lang.String inputParameterName,
CheckReport checkReport)
Check if it is possible (concerning structural correctness and state based
correctness) to remove the system data flow flow which is connected with
the given parameter.
|
protected static boolean |
AddSystemDataFlow.isPossible(Instance instance,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
CheckReport checkReport)
Check if it is possible (concerning structural correctness and state based
correctness) to add a system data flow of the given type between the given
nodes.
|
static boolean |
AddSystemDataFlow.isPossible(Instance instance,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
java.lang.String inputParameterName)
Check if it is possible (concerning structural correctness and state based
correctness) to add a system data flow of the given type between the given
nodes.
|
static boolean |
AddSystemDataFlow.isPossible(Instance instance,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
java.lang.String inputParameterName,
CheckReport checkReport)
Check if it is possible (concerning structural correctness and state based
correctness) to add a system data flow of the given type between the given
nodes.
|
static boolean |
InsertBetweenNodeSets.isPossible(Instance instance,
java.util.List<java.lang.Integer> preds,
java.util.List<java.lang.Integer> succs)
Check if it is possible (concerning structural and state based correctness)
to insert a node which is executed after the nodes given in preds and
before the nodes given in succs in the given instance.
|
static boolean |
InsertBetweenNodeSets.isPossible(Instance instance,
java.util.List<java.lang.Integer> preds,
java.util.List<java.lang.Integer> succs,
CheckReport checkReport)
Check if it is possible (concerning structural and state based correctness)
to insert a node which is executed after the nodes given in preds and
before the nodes given in succs in the given instance.
|
static boolean |
InsertNode.isPossible(Instance instance,
Node pred,
Node succ)
Check if it is possible (concerning structural and state based correctness)
to insert a node between the two given nodes in the given instance.
|
static boolean |
InsertNode.isPossible(Instance instance,
Node pred,
Node succ,
CheckReport checkReport)
Check if it is possible (concerning structural and state based correctness)
to insert a node between the two given nodes in the given instance.
|
static boolean |
UpdateInstance.isPossible(Instance instance,
ProcessConstants.InstanceProperty... instanceProperties)
TODO change instance to instance id if we have a process repository
Checks if it is valid for the given instance to update the properties given
by
Properties. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ProcessInstanceCheck.performCheck(Instance instance,
NodeRelations relations,
CheckReport checkReport) |
| Modifier and Type | Method and Description |
|---|---|
void |
ProcessAwareAccess.dropWrittenValues(SessionToken session,
Instance instance,
int nodeId,
int nodeIteration)
Drops all values written by the designated instance that have not been
validated yet,
that is, the values are removed (or marked as removed) from the data manager for all
savepoints.
|
boolean |
ProcessAwareAccess.dropWrittenValuesBackTo(SessionToken session,
Instance instance,
int nodeId,
int nodeIteration,
java.lang.String savepoint)
Drops all values written by the designated instance that have not been
validated yet
back to the designated savepoint, that is, the values are removed (or marked as removed) from
the data manager for all savepoints after the designated one.
|
java.lang.String |
ProcessAwareAccess.flushDataContainer(SessionToken session,
Instance instance,
int writingNodeId,
int writerIteration,
DataContainer dataContainer,
java.lang.String savepoint)
Flushes all values from the designated data container and persists them in
this data manager (if the corresponding data container stems from this data
manager) referring to it by the designated savepoint ID.
|
void |
ProcessAwareAccess.flushSavepoint(SessionToken session,
Instance instance,
int writingNodeId,
int writerIteration,
DataContainer dataContainer,
java.lang.String savepoint)
Flushes the designated safepoint only.
|
DataContainer |
ProcessAwareAccess.getDataContainer(SessionToken session,
Instance instance,
int nodeID)
Gets the data container for the application specified by the designated
activity.
|
InputDataContainer |
ProcessUnawareAccess.getInputDataContainer(SessionToken session,
Instance instance,
java.util.Set<java.lang.Integer> dataElementIDs)
Gets an input data container providing the most recent values of the
designated data element IDs.
|
InputDataContainer |
ProcessAwareAccess.getNodeDataContainer(SessionToken session,
Instance instance,
int nodeID)
Gets the data container for the designated node.
|
DataContainer |
ProcessAwareAccess.getObsoleteDataContainer(SessionToken session,
ExecutionHistory execHist,
Instance instance,
int nodeID,
int iteration)
Gets the data container for a finished application specified by the
designated node and iteration ID.
|
ParameterDataContext |
ProcessUnawareAccess.getPublicDataContext(SessionToken session,
Instance instance)
Gets the data context providing the most recent values of the public data
elements of the designated instance.
|
ParameterDataContext |
ProcessAwareAccess.getPublicDataContext(SessionToken session,
Instance instance,
int nodeID)
Gets the data context providing all public data elements for the designated
node.
|
void |
DataManager.instanceChanged(SessionToken session,
Instance instance)
Notifies the data manager that the designated instance has been changed.
|
void |
DataManager.instanceChanged(SessionToken session,
Instance instance,
DataContainer changedDataContainer)
Notifies the data manager that the designated instance and also its output
parameters have changed.
|
DataContainer |
DataManager.retrieveInstanceDataContainer(SessionToken session,
Instance instance)
Retrieves the instance data container for the designated instance.
|
void |
ProcessAwareAccess.validateWrittenValues(SessionToken session,
Instance instance,
int nodeId,
int nodeIteration,
java.lang.String savepoint)
Validates and verifies all values written by the designated node instance
for the designated savepoint, that is, the values are not temporary any
more but valid for the following nodes and it is checked whether all
mandatory output parameters have valid values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ExecutionHistoryWriteAccess.logInstanceChanged(SessionToken session,
long timestamp,
Instance instance) |
void |
ExecutionHistoryWriteAccess.logInstanceFailed(SessionToken session,
long timestamp,
Instance instance,
long errorCode,
java.lang.String errorState,
java.lang.String errorMessage) |
void |
ExecutionHistoryWriteAccess.logInstanceFinished(SessionToken session,
long timestamp,
Instance instance) |
void |
ExecutionHistoryWriteAccess.logInstanceResumed(SessionToken session,
long timestamp,
Instance instance) |
void |
ExecutionHistoryWriteAccess.logInstanceStarted(SessionToken session,
long timestamp,
Instance instance) |
void |
ExecutionHistoryWriteAccess.logInstanceSuspended(SessionToken session,
long timestamp,
Instance instance) |
void |
ExecutionHistoryWriteAccess.logNodeActivated(SessionToken session,
long timestamp,
Instance instance,
int nodeID,
int iteration) |
void |
ExecutionHistoryWriteAccess.logNodeDeselected(SessionToken session,
long timestamp,
Instance instance,
int nodeID,
int iteration) |
void |
ExecutionHistoryWriteAccess.logNodeFailed(SessionToken session,
long timestamp,
java.lang.Long clientDelay,
Instance instance,
int nodeID,
int iteration,
long errorCode,
java.lang.String errorState,
java.lang.String errorMessage) |
void |
ExecutionHistoryWriteAccess.logNodeFinished(SessionToken session,
long timestamp,
java.lang.Long clientDelay,
Instance instance,
int nodeID,
java.util.Map<java.lang.String,java.lang.String> nodeName,
int iteration,
java.net.URI[] executionManagerURIs) |
void |
ExecutionHistoryWriteAccess.logNodePromoted(SessionToken session,
long timestamp,
Instance instance,
int nodeId,
int iteration,
ProcessConstants.NodeState promState)
Logs that the activity identified by the designated instance, node and node
iteration has been promoted.
|
void |
ExecutionHistoryWriteAccess.logNodeResetHard(SessionToken session,
long timestamp,
Instance instance,
int nodeId,
int iteration,
java.lang.String savepoint)
Logs that the activity identified by the designated instance, node and node
iteration has been reset to the designated savepoint.
|
void |
ExecutionHistoryWriteAccess.logNodeResetSoft(SessionToken session,
long timestamp,
java.lang.Long clientDelay,
Instance instance,
int nodeID,
int iteration) |
void |
ExecutionHistoryWriteAccess.logNodeResetTo(SessionToken session,
long timestamp,
java.lang.Long clientDelay,
Instance instance,
int nodeId,
int iteration,
java.lang.String savepoint)
Logs that the activity identified by the designated instance, node and node iteration has been
reset itself to the designated savepoint.
|
void |
ExecutionHistoryWriteAccess.logNodeResumed(SessionToken session,
long timestamp,
Instance instance,
int nodeID,
int iteration) |
void |
ExecutionHistoryWriteAccess.logNodeSelected(SessionToken session,
long timestamp,
Instance instance,
int nodeID,
int iteration) |
void |
ExecutionHistoryWriteAccess.logNodeSkipped(SessionToken session,
long timestamp,
Instance instance,
int nodeID,
int iteration) |
void |
ExecutionHistoryWriteAccess.logNodeStarted(SessionToken session,
long timestamp,
Instance instance,
int nodeID,
java.util.Map<java.lang.String,java.lang.String> nodeName,
int iteration) |
void |
ExecutionHistoryWriteAccess.logNodeSuppressed(SessionToken session,
long timestamp,
Instance instance,
int nodeId,
int iteration,
ProcessConstants.NodeState prevState)
Logs that the activity identified by the designated instance, node and node
iteration has been suppressed.
|
void |
ExecutionHistoryWriteAccess.logNodeSuspended(SessionToken session,
long timestamp,
java.lang.Long clientDelay,
Instance instance,
int nodeID,
int iteration) |
void |
ExecutionHistoryWriteAccess.logSavepointFlushed(SessionToken session,
long timestamp,
java.lang.Long clientDelay,
Instance instance,
int nodeId,
int iteration,
java.lang.String savepoint)
Logs that the activity identified by the designated instance, node and node
iteration has flushed its data with the designated savepoint ID.
|
| Modifier and Type | Method and Description |
|---|---|
ProcessImageData |
ProcessImageRenderer.renderInstance(SessionToken session,
Instance instance,
RenderOptions options)
Gets the designated process instance as rendered image.
|
| Modifier and Type | Method and Description |
|---|---|
Instance |
InstanceManager.getInstance(SessionToken session,
java.util.UUID instanceID)
Gets the designated process instance conforming to the ADEPT2-process
model.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ExecutableInstance
This interface provides additional methods necessary to execute a process
instance, that is, setting the user who performs a node and manipulating node
states and iteration counts.
|
| Modifier and Type | Method and Description |
|---|---|
ExecutableInstance |
ExecutionFactory.createExecutableInstance(Instance instance)
Creates a new
ExecutableInstance from the given instance. |
ExecutableInstance |
ExecutionFactory.createExecutableInstance(Instance instance,
ExecutableInstance executableInstance)
Creates a new ExecutableInstance from the given instance having the
designated template and the additional attributes; additional with respect
to the difference between a ChangeableInstance and an ExecutableInstance.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ChangeableInstance
An instance which provides all necessary change primitives
for modifications on instance level.
|
| Modifier and Type | Method and Description |
|---|---|
Instance |
ProcessModelFactory.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)
|
Instance |
ProcessModelFactory.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.
|
| Modifier and Type | Method and Description |
|---|---|
EBPInstanceReference |
ProcessModelFactory.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.
|
| Modifier and Type | Method and Description |
|---|---|
static java.net.URI |
ProcessElementIdentifierTools.getInstanceIdentifier(java.lang.String symbolicNameOfAuthority,
Instance instance)
Constructs the process element identifier URI for the given instance.
|
| Modifier and Type | Method and Description |
|---|---|
Instance |
ProcessModelXMLImport.getInstanceFromDocument(org.w3c.dom.Document document,
Template template)
Creates an instance using the given DOM document.
|
Instance |
ProcessModelXMLImport.getInstanceFromFile(java.io.File file)
Reads a process instance from the given file and determines the file type.
|
Instance |
ProcessModelXMLImport.getInstanceFromFile(java.io.File file,
Template template)
Reads a process instance from the given file and determines the file type.
|
Instance |
ProcessModelXMLImport.getInstanceFromStream(java.io.InputStream inputStream)
Reads a process instance from an input stream.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Document |
ProcessModelXMLExport.getDocumentForInstance(Instance instance)
Creates a DOM document from the instance.
|
java.io.InputStream |
ProcessModelXMLExport.getInputStreamForInstance(Instance instance)
Returns The corresponding stream for a given instance
|
java.io.InputStream |
ProcessModelXMLExport.getInputStreamForInstance(Instance instance,
boolean intend)
Returns The corresponding stream for a given instance
|
java.lang.String |
ProcessModelXMLExport.getXMLStringForInstance(Instance instance)
Returns the xml code of a given instance as string.
|
java.lang.String |
ProcessModelXMLExport.getXMLStringForInstance(Instance instance,
boolean intend)
Returns the xml code of a given instance as string.
|
void |
ProcessModelXMLExport.writeInstanceAndStatusToFile(Instance instance,
InstanceStatus instanceStatus,
java.io.File file,
boolean storeStructure)
Writes the given instance including its status to the given file.
|
void |
ProcessModelXMLExport.writeInstanceAndStatusToFile(Instance instance,
InstanceStatus instanceStatus,
java.io.File file,
boolean storeStructure,
boolean intend)
Writes the given instance including its status to the given file.
|
void |
ProcessModelXMLExport.writeInstanceToFile(Instance instance,
java.io.File file)
Writes the given instance to the given file.
|
void |
ProcessModelXMLExport.writeInstanceToFile(Instance instance,
java.io.File file,
boolean intend)
Writes the given instance to the given file.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,PluginData> |
WorklistModelTools.mergeTlpiLocalisation(Instance instance)
Merges the localisation from the designated instance (and its template) for
usage in a worklist item representing the designated top-level instance.
|