public class InsertDataEdge
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
a Logger
|
| Constructor and Description |
|---|
InsertDataEdge() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(ChangeableInstance instance,
Node node,
DataElement[] dataElements,
ActivityConstants.AccessType type)
Check if it is possible (concerning structural and state-based correctness)
to insert data edges of the given type between the given node and the data
elements in the instance.
|
static boolean |
isPossible(ChangeableInstance instance,
Node node,
DataElement[] dataElements,
ActivityConstants.AccessType type,
CheckReport checkReport)
Check if it is possible (concerning structural and state-based correctness)
to insert data edges of the given type between the given node and the data
elements in the instance.
|
static boolean |
isPossible(ChangeableInstance instance,
Node node,
DataElement dataElement,
ActivityConstants.AccessType type)
Check if it is possible (concerning structural and state-based correctness)
to insert a data edge of the given type between the given node and the data
element in the instance.
|
static boolean |
isPossible(ChangeableInstance instance,
Node node,
DataElement dataElement,
ActivityConstants.AccessType type,
CheckReport checkReport)
Check if it is possible (concerning structural and state-based correctness)
to insert a data edge of the given type between the given node and the data
element in the instance.
|
static boolean |
isPossible(ChangeableInstance instance,
Node node,
DataElement dataElement,
java.lang.String paramName,
ActivityConstants.AccessType type)
Check if it is possible (concerning structural and state-based correctness)
to connect the parameter of the given node with the given data element via
a data edge of the given type in the instance.
|
static boolean |
isPossible(ChangeableInstance instance,
Node node,
DataElement dataElement,
java.lang.String paramName,
ActivityConstants.AccessType type,
CheckReport checkReport)
Check if it is possible (concerning structural and state-based correctness)
to connect the parameter of the given node with the given data element via
a data edge of the given type in the instance.
|
static boolean |
isPossible(Template template,
Node node,
DataElement[] dataElements,
ActivityConstants.AccessType type)
Check if it is possible (concerning structural correctness) to insert
data edges of the given type between the given node and the data elements in
the template.
|
static boolean |
isPossible(Template template,
Node node,
DataElement[] dataElements,
ActivityConstants.AccessType type,
CheckReport checkReport)
Check if it is possible (concerning structural correctness) to insert
data edges of the given type between the given node and the data elements in
the template.
|
static boolean |
isPossible(Template template,
Node node,
DataElement dataElement,
ActivityConstants.AccessType type)
Check if it is possible (concerning structural correctness) to insert a
data edge of the given type between the given node and the data element in
the template.
|
static boolean |
isPossible(Template template,
Node node,
DataElement dataElement,
ActivityConstants.AccessType type,
CheckReport checkReport)
Check if it is possible (concerning structural correctness) to insert a
data edge of the given type between the given node and the data element in
the template.
|
static boolean |
isPossible(Template template,
Node node,
DataElement dataElement,
java.lang.String paramName,
ActivityConstants.AccessType type)
Check if it is possible (concerning structural correctness) to connect the
parameter of the given node with the given data element via a data edge of
the given type in the template.
|
static boolean |
isPossible(Template template,
Node node,
DataElement dataElement,
java.lang.String paramName,
ActivityConstants.AccessType type,
CheckReport checkReport)
Check if it is possible (concerning structural correctness) to connect the
parameter of the given node with the given data element via a data edge of
the given type in the template.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
Node node,
DataElement dataElement,
ActivityConstants.AccessType type)
Inserts a new data edge in the instance.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
Node node,
DataElement dataElement,
ActivityConstants.AccessType type,
UpdateManager updateManager)
Inserts a new data edge in the instance (with update manager).
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
Node node,
DataElement dataElement,
ProcessModelParameter parameter,
ActivityConstants.AccessType type)
Inserts a new data edge in the instance.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
Node node,
DataElement dataElement,
ProcessModelParameter parameter,
ActivityConstants.AccessType type,
UpdateManager updateManager)
Inserts a new data edge in the instance.
|
protected static void |
performOperation(SessionToken session,
ChangeableInstance instance,
Node node,
DataElement dataElement,
ProcessModelParameter param,
int connectorID,
ActivityConstants.AccessType type,
UpdateManager updateManager)
Inserts a new data edge in the instance.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
Node node,
DataElement dataElement,
ActivityConstants.AccessType type)
Inserts a new data edge in the template (with update manager).
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
Node node,
DataElement dataElement,
ActivityConstants.AccessType type,
UpdateManager updateManager)
Inserts a new data edge in the template (with update manager).
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
Node node,
DataElement dataElement,
ProcessModelParameter parameter,
ActivityConstants.AccessType type)
Inserts a new data edge in the template.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
Node node,
DataElement dataElement,
ProcessModelParameter parameter,
ActivityConstants.AccessType type,
UpdateManager updateManager)
Inserts a new data edge in the template.
|
protected static void |
performOperation(SessionToken session,
ChangeableTemplate template,
Node node,
DataElement dataElement,
ProcessModelParameter param,
int connectorID,
ActivityConstants.AccessType type,
UpdateManager updateManager)
Inserts a new data edge in the template.
|
protected static void |
performOperation(SessionToken session,
ChangePrimitives processGraph,
Node node,
DataElement dataElement,
ActivityConstants.AccessType type,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
protected static void |
performOperation(SessionToken session,
ChangePrimitives processGraph,
Node node,
DataElement dataElement,
ProcessModelParameter parameter,
ActivityConstants.AccessType type,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
protected static void |
performOperation(SessionToken session,
ChangePrimitives processGraph,
Node node,
DataElement dataElement,
ProcessModelParameter param,
int connectorID,
ActivityConstants.AccessType type,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
public static boolean isPossible(Template template, Node node, DataElement dataElement, ActivityConstants.AccessType type)
template - the template where the change operation is performed on.node - the node of the data edgedataElement - the data element the data edge will be connected to.type - the access type of the data edge (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)public static boolean isPossible(Template template, Node node, DataElement dataElement, ActivityConstants.AccessType type, CheckReport checkReport)
template - the template where the change operation is performed on.node - the node of the data edgedataElement - the data element the data edge will be connected to.type - the access type of the data edge (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)checkReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static boolean isPossible(Template template, Node node, DataElement[] dataElements, ActivityConstants.AccessType type)
template - the template where the change operation is performed on.node - the node of the data edgesdataElements - the data elements the data edges will be connected to.type - the access type of the data edges (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)public static boolean isPossible(Template template, Node node, DataElement[] dataElements, ActivityConstants.AccessType type, CheckReport checkReport)
template - the template where the change operation is performed on.node - the node of the data edgesdataElements - the data elements the data edges will be connected to.type - the access type of the data edges (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)checkReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static boolean isPossible(Template template, Node node, DataElement dataElement, java.lang.String paramName, ActivityConstants.AccessType type)
template - the template where the change operation is performed on.node - the node of the data edgedataElement - the data element the data edge will be connected to.paramName - the name of the parameter where the data element should be
connected to via the connectorIDtype - the access type of the data edge
(READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)public static boolean isPossible(Template template, Node node, DataElement dataElement, java.lang.String paramName, ActivityConstants.AccessType type, CheckReport checkReport)
template - the template where the change operation is performed on.node - the node of the data edgedataElement - the data element the data edge will be connected to.paramName - the name of the parameter where the data element should be
connected totype - the access type of the data edge
(READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)checkReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static boolean isPossible(ChangeableInstance instance, Node node, DataElement dataElement, ActivityConstants.AccessType type)
instance - the changeable instance where the change operation is
performed on.node - the node of the data edgedataElement - the data element the data edge will be connected to.type - the access type of the data edge
(READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)public static boolean isPossible(ChangeableInstance instance, Node node, DataElement dataElement, ActivityConstants.AccessType type, CheckReport checkReport)
instance - the changeable instance where the change operation is
performed on.node - the node of the data edgedataElement - the data element the data edge will be connected to.type - the access type of the data edge (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)checkReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static boolean isPossible(ChangeableInstance instance, Node node, DataElement[] dataElements, ActivityConstants.AccessType type)
instance - the changeable instance where the change operation is
performed on.node - the node of the data edgesdataElements - the data elements the data edges will be connected to.type - the access type of the data edges
(READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)public static boolean isPossible(ChangeableInstance instance, Node node, DataElement[] dataElements, ActivityConstants.AccessType type, CheckReport checkReport)
instance - the changeable instance where the change operation is
performed on.node - the node of the data edgedataElements - the data elements the data edges will be connected to.type - the access type of the data edges (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)checkReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static boolean isPossible(ChangeableInstance instance, Node node, DataElement dataElement, java.lang.String paramName, ActivityConstants.AccessType type)
instance - the changeable instance where the change operation is
performed on.node - the node of the data edgedataElement - the data element the data edge will be connected to.paramName - the name of the parameter where the data element should be
connected totype - the access type of the data edge
(READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)public static boolean isPossible(ChangeableInstance instance, Node node, DataElement dataElement, java.lang.String paramName, ActivityConstants.AccessType type, CheckReport checkReport)
instance - the changeable instance where the change operation is
performed on.node - the node of the data edgedataElement - the data element the data edge will be connected to.paramName - the name of the parameter where the data element should be
connected to via the connectorIDtype - the access type of the data edge
(READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)checkReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static void performOperation(SessionToken session, ChangeableTemplate template, Node node, DataElement dataElement, ProcessModelParameter parameter, ActivityConstants.AccessType type)
node has already an activity
template in case of type WRITE/READ or a node parameter in case of type
SYSTEM_READ/SYSTEM_WRITEsession - The session which is used to check for access rights on this
method.template - the changeable template where the change operation is
performed on.node - the node of the data edgedataElement - the data element the data edge will be connected to.parameter - the Parameter of the activity where the data edge will be
connected (READ/WRITE) or the parameter of the node in case
SYSTEM_READ/SYSTEM_WRITEtype - the access type of the data edge (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)public static void performOperation(SessionToken session, ChangeableTemplate template, Node node, DataElement dataElement, ProcessModelParameter parameter, ActivityConstants.AccessType type, UpdateManager updateManager)
node has already an activity
template in case of type WRITE/READ or a node parameter in case of type
SYSTEM_READ/SYSTEM_WRITEsession - The session which is used to check for access rights on this
method.template - the changeable template where the change operation is
performed on.node - the node of the data edgedataElement - the data element the data edge will be connected to.parameter - the Parameter of the activity where the data edge will be
connected (READ/WRITE) or the parameter of the node in case
SYSTEM_READ/SYSTEM_WRITEtype - the access type of the data edge (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)updateManager - the manager who controls the update of the visual
graph components.public static void performOperation(SessionToken session, ChangeableTemplate template, Node node, DataElement dataElement, ActivityConstants.AccessType type)
node does not have an activity template yet. node does have an activity but with a parameter which
is compatible with the given data element and not connected to another data
element yet. session - The session which is used to check for access rights on this
method.template - the template where the change operation is performed on.node - the source node of the data edgedataElement - the data element the data edge will be connected to.type - the access type of the data edge (read or write)public static void performOperation(SessionToken session, ChangeableTemplate template, Node node, DataElement dataElement, ActivityConstants.AccessType type, UpdateManager updateManager)
node does not have an activity template yet. node does have an activity but with a parameter which
is compatible with the given data element and not connected to another data
element yet. session - The session which is used to check for access rights on this
method.template - the template where the change operation is performed on.node - the source node of the data edgedataElement - the data element the data edge will be connected to.type - the access type of the data edge (read or write)updateManager - the manager who controls the update of the visual
graph components.protected static void performOperation(SessionToken session, ChangeableTemplate template, Node node, DataElement dataElement, ProcessModelParameter param, int connectorID, ActivityConstants.AccessType type, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.template - the template where the change operation is performed on.node - the source node of the data edgedataElement - the data element the data edge will be connected to.param - the parameter where the data element should be connected to
via the connectorIDconnectorID - type - the access type of the data edge (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)updateManager - the manager who controls the update of the visual
graph components (maybe null).public static void performOperation(SessionToken session, ChangeableInstance instance, Node node, DataElement dataElement, ProcessModelParameter parameter, ActivityConstants.AccessType type)
node has already an activity
template in case of type WRITE/READ or a node parameter in case of type
SYSTEM_READ/SYSTEM_WRITEsession - The session which is used to check for access rights on this
method.instance - the changeable instance where the change operation is
performed on.node - the node of the data edgedataElement - the data element the data edge will be connected to.parameter - the Parameter of the activity where the data edge will be
connected (READ/WRITE) or the parameter of the node in case
SYSTEM_READ/SYSTEM_WRITEtype - the access type of the data edge (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)public static void performOperation(SessionToken session, ChangeableInstance instance, Node node, DataElement dataElement, ProcessModelParameter parameter, ActivityConstants.AccessType type, UpdateManager updateManager)
node has already an activity
template in case of type WRITE/READ or a node parameter in case of type
SYSTEM_READ/SYSTEM_WRITE. (with update manager)session - The session which is used to check for access rights on this
method.instance - the changeable instance where the change operation is
performed on.node - the node of the data edgedataElement - the data element the data edge will be connected to.parameter - the Parameter of the activity where the data edge will be
connected (READ/WRITE) or the parameter of the node in case
SYSTEM_READ/SYSTEM_WRITEtype - the access type of the data edge (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)updateManager - the manager who controls the update of the visual
graph components.public static void performOperation(SessionToken session, ChangeableInstance instance, Node node, DataElement dataElement, ActivityConstants.AccessType type)
node does not have an activity template yet. node does have an activity but with a parameter which
is compatible with the given data element and not connected to another data
element yet. session - The session which is used to check for access rights on this
method.instance - the instance where the change operation is performed on.node - the source node of the data edgedataElement - the data element the data edge will be connected to.type - the access type of the data edge (read or write)public static void performOperation(SessionToken session, ChangeableInstance instance, Node node, DataElement dataElement, ActivityConstants.AccessType type, UpdateManager updateManager)
node does not have an activity template yet. node does have an activity but with a parameter which
is compatible with the given data element and not connected to another data
element yet. session - The session which is used to check for access rights on this
method.instance - the instance where the change operation is performed on.node - the source node of the data edgedataElement - the data element the data edge will be connected to.type - the access type of the data edge (read or write)updateManager - the manager who controls the update of the visual
graph components.protected static void performOperation(SessionToken session, ChangeableInstance instance, Node node, DataElement dataElement, ProcessModelParameter param, int connectorID, ActivityConstants.AccessType type, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.instance - the changeable instance where the change operation is performed on.node - the source node of the data edgedataElement - the data element the data edge will be connected to.param - the parameter where the data element should be connected to
via the connectorIDconnectorID - type - the access type of the data edge (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)updateManager - the manager who controls the update of the visual
graph components (maybe null).protected static void performOperation(SessionToken session, ChangePrimitives processGraph, Node node, DataElement dataElement, ActivityConstants.AccessType type, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.processGraph - an instance of type ChangeableTemplate or
ChangeableInstancenode - the source node of the data edgedataElement - the data element the data edge will be connected to.type - the access type of the data edge (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)updateManager - the manager who controls the update of the visual
graph components (maybe null).protected static void performOperation(SessionToken session, ChangePrimitives processGraph, Node node, DataElement dataElement, ProcessModelParameter parameter, ActivityConstants.AccessType type, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.processGraph - an instance of type ChangeableTemplate or
ChangeableInstancenode - the source node of the data edgedataElement - the data element the data edge will be connected to.parameter - the parameter of the activity where the data edge will be
connectedtype - the access type of the data edge (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)updateManager - the manager who controls the update of the visual
graph components (maybe null).protected static void performOperation(SessionToken session, ChangePrimitives processGraph, Node node, DataElement dataElement, ProcessModelParameter param, int connectorID, ActivityConstants.AccessType type, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.processGraph - an instance of type ChangeableTemplate or
ChangeableInstancenode - the source node of the data edgedataElement - the data element the data edge will be connected to.param - the parameter of the activity where the data edge will be
connectedconnectorID - the connector id where the data edge will be
connected totype - the access type of the data edge (READ/WRITE/SYSTEM_READ/SYSTEM_WRITE)updateManager - the manager who controls the update of the visual
graph components (maybe null).