public class ChangeOperationTools
extends java.lang.Object
| Constructor and Description |
|---|
ChangeOperationTools() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<ActivityConstants.AccessType,java.util.Map<ProcessModelParameter,ProcessConstants.DataMappingType>> |
createParameterSystemValueMappingForNewEBP(ExecutableBusinessProcess ebp,
java.util.Map<ActivityConstants.AccessType,java.util.List<ProcessModelParameter>> alreadyMappedParameters,
ProcessConstants.DataMappingType initType)
Returns an initial mapping between still unmapped parameters and the system
value given by initType.
|
static java.util.Map<ActivityConstants.AccessType,java.util.Map<ProcessModelParameter,DataElement>> |
createRandomisedParameterDataElementMappingForNewEBP(Template template,
int nodeID,
ExecutableBusinessProcess ebp)
Creates a mapping between the parameters of the given EBP and already
existent data elements (where possible).
|
static DataEdge |
createSimpleDataEdgeObject(SessionToken session,
ActivityConstants.AccessType type)
Creates a simple DataEdge container Object
|
static DataElement |
createSimpleDataElementObject(SessionToken session,
java.lang.String name,
ProcessConstants.AdeptDataType type)
Creates a simple DataElement container object
|
static Edge |
createSimpleEdgeObject(SessionToken session,
ProcessConstants.EdgeType type)
Creates a simple edge container object of the given type
|
static Node |
createSimpleNodeObject(SessionToken session)
Creates a simple node container object
|
static ProcessModelParameter |
createSimpleProcessParameterObject(SessionToken session,
java.lang.String name,
ProcessConstants.AdeptDataType type,
java.lang.String userDefinedType,
boolean isVirtual,
java.util.UUID identifierID,
boolean isInputParameter)
Creates a simple process (in-/out-) parameter.
|
static boolean |
ebpEqualsAssignedEbp(Node node,
ExecutableBusinessProcess ebp)
Returns true if the given EBP equals the EBP which has been assigned to the
given node.
|
static void |
fireNodeStateChangedEvent(UpdateManager updateManager,
Instance instance,
Node node)
Fires updates for changed node states
|
static java.util.Set<DataElement> |
getCompliantConnectedDataElementsForParameter(ProcessModelParameter parameter,
Template template,
int nodeID,
ActivityConstants.AccessType type)
Returns a set of compliant data elements for the given parameter which are
connected to the given node (i.e there is a data edge between the node and
the compliant data element) in the correct direction.
|
static java.util.Set<DataElement> |
getCompliantDataElements(Template template,
ProcessConstants.AdeptDataType type,
java.util.UUID identifierID,
boolean includingSystemDataElements)
Returns the set of data elements, which are compatible to the given type
and identifier for reading the data element.
|
static java.util.Set<DataElement> |
getCompliantUnConnectedDataElementsForParameter(ProcessModelParameter parameter,
Template template,
int nodeID,
ActivityConstants.AccessType type)
Returns a set of compliant data elements for the given parameter which are
not connected to the given node (i.e there is no data edge between the node
and the compliant data element).
|
static UpdateManager.ActivityProperties[] |
getCorrespondingActivityProperties(ProcessConstants.ExecutableBusinessProcessProperty... ebpProperties)
Convert an array of ExecutableBusinessProcessProperty to an array of
corresponding ActivityProperties.
|
static UpdateManager.DataEdgeProperties[] |
getCorrespondingDataEdgeProperties(ProcessConstants.DataEdgeProperty... dataEdgeProperties)
Convert an array of
DataEdgeProperty to an array of corresponding
DataEdgeProperties. |
static UpdateManager.DataElementProperties[] |
getCorrespondingDataElementProperties(ProcessConstants.DataElementProperty... dataElementProperties)
Convert an array of DataElementProperty to an array of corresponding DataElementProperties.
|
static UpdateManager.NodeProperties[] |
getCorrespondingNodeProperties(ProcessConstants.NodeProperty... nodeProperties)
Convert an array of NodeProperty to an array of corresponding
NodeProperties.
|
static java.util.Map<ActivityConstants.AccessType,java.util.Map<ProcessModelParameter,java.lang.Integer>> |
getParameterDataElementMappingForAlreadyAssignedEBP(Template template,
int nodeID)
Returns an already existent mapping between parameters and existent data
elements.
|
static java.util.Map<ActivityConstants.AccessType,java.util.Map<ProcessModelParameter,ProcessConstants.DataMappingType>> |
getParameterSystemValueMappingForAlreadyAssignedEBP(Template template,
int nodeID)
Returns an already existent mapping between parameters and system values
(e.g.
|
static java.util.Set<Node> |
getSavePredecessors(Template template,
int nodeID)
Returns the set of nodes, which not null nodes and are predecessors of the
given node and are executed on all circumstances (i.e. on all possible
traces through the graph).
|
public static Node createSimpleNodeObject(SessionToken session)
session - The session which is used to check for access rights on this
method.public static Edge createSimpleEdgeObject(SessionToken session, ProcessConstants.EdgeType type)
session - The session which is used to check for access rights on this
method.type - the type of the edgepublic static DataElement createSimpleDataElementObject(SessionToken session, java.lang.String name, ProcessConstants.AdeptDataType type)
session - The session which is used to check for access rights on this
method.name - the name of DataElementtype - the AdeptDataType of the DataElementpublic static DataEdge createSimpleDataEdgeObject(SessionToken session, ActivityConstants.AccessType type)
session - The session which is used to check for access rights on this
method.type - the AccessType of the Data Edgepublic static ProcessModelParameter createSimpleProcessParameterObject(SessionToken session, java.lang.String name, ProcessConstants.AdeptDataType type, java.lang.String userDefinedType, boolean isVirtual, java.util.UUID identifierID, boolean isInputParameter)
session - The session which is used to check for access rights on this
method.name - The name of the parameter that correspondence to the name of
the connected data element.type - The ADEPT2 data type the parameter should be of.userDefinedType - The identifier of the UDF type if the type of the
parameter is of UDT or null otherwise.isVirtual - true if the parameter is virtualidentifierID - The identifier that should be assigned to the
parameter.isInputParameter - Specifies if the parameter is an input (TRUE) or an
output parameter (FALSE).public static UpdateManager.NodeProperties[] getCorrespondingNodeProperties(ProcessConstants.NodeProperty... nodeProperties)
nodeProperties - public static UpdateManager.DataElementProperties[] getCorrespondingDataElementProperties(ProcessConstants.DataElementProperty... dataElementProperties)
dataElementProperties - public static UpdateManager.DataEdgeProperties[] getCorrespondingDataEdgeProperties(ProcessConstants.DataEdgeProperty... dataEdgeProperties)
DataEdgeProperty to an array of corresponding
DataEdgeProperties.dataEdgeProperties - DataEdgeProperties enums for the given
DataEdgeProperty enumspublic static UpdateManager.ActivityProperties[] getCorrespondingActivityProperties(ProcessConstants.ExecutableBusinessProcessProperty... ebpProperties)
ebpProperties - the EBP propertiespublic static java.util.Map<ActivityConstants.AccessType,java.util.Map<ProcessModelParameter,java.lang.Integer>> getParameterDataElementMappingForAlreadyAssignedEBP(Template template, int nodeID)
template - the related templatenodeID - the ID of the related nodepublic static java.util.Map<ActivityConstants.AccessType,java.util.Map<ProcessModelParameter,ProcessConstants.DataMappingType>> getParameterSystemValueMappingForAlreadyAssignedEBP(Template template, int nodeID)
template - the related templatenodeID - the ID of the related nodepublic static java.util.Map<ActivityConstants.AccessType,java.util.Map<ProcessModelParameter,DataElement>> createRandomisedParameterDataElementMappingForNewEBP(Template template, int nodeID, ExecutableBusinessProcess ebp)
template - the related templatenodeID - the id of the related nodeebp - the EBP which should be assigned to the nodepublic static java.util.Map<ActivityConstants.AccessType,java.util.Map<ProcessModelParameter,ProcessConstants.DataMappingType>> createParameterSystemValueMappingForNewEBP(ExecutableBusinessProcess ebp, java.util.Map<ActivityConstants.AccessType,java.util.List<ProcessModelParameter>> alreadyMappedParameters, ProcessConstants.DataMappingType initType)
ebp - the EBP which is to be assigned to the node with the given idalreadyMappedParameters - a map of already mapped parametersinitType - the data mapping type to which the parameters should be mappedpublic static java.util.Set<DataElement> getCompliantConnectedDataElementsForParameter(ProcessModelParameter parameter, Template template, int nodeID, ActivityConstants.AccessType type)
parameter - the parametertemplate - the related templatenodeID - the id of the nodetype - the type of the parameter input (READ) or output (WRITE)public static java.util.Set<DataElement> getCompliantUnConnectedDataElementsForParameter(ProcessModelParameter parameter, Template template, int nodeID, ActivityConstants.AccessType type)
#getCompliantConnectedDataElementsForParameter(ProcessModelParameter, Template, int, AccessType)parameter - the parametertemplate - the related templatenodeID - the id of the nodetype - the type of the parameter input (READ) or output (WRITE)public static boolean ebpEqualsAssignedEbp(Node node, ExecutableBusinessProcess ebp)
node - the node whose EBP is compared to the given EBPebp - the EBP which is to be compared to the EBP of the given nodepublic static void fireNodeStateChangedEvent(UpdateManager updateManager, Instance instance, Node node)
updateManager - the update manager which is to be informedinstance - the related instancenode - the node whose state changedpublic static java.util.Set<DataElement> getCompliantDataElements(Template template, ProcessConstants.AdeptDataType type, java.util.UUID identifierID, boolean includingSystemDataElements)
template - The process template.type - The data type.identifierID - The identifier ID or null for any identifier.includingSystemDataElements - true, to include system data elementspublic static java.util.Set<Node> getSavePredecessors(Template template, int nodeID)
template - The process template.nodeID - The ID of the node.