public class ReconnectDataEdge
extends java.lang.Object
SwapDataElementParameterConnection instead| Constructor and Description |
|---|
ReconnectDataEdge() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(ChangeableInstance instance,
int nodeID,
int dataElementID,
DataEdge dataEdge,
ProcessModelParameter param)
Check if it is possible to reconnect the given data edge (respectively the
connected data element) to the given parameter in the instance .
|
static boolean |
isPossible(ChangeableInstance instance,
int nodeID,
int dataElementID,
DataEdge dataEdge,
ProcessModelParameter param,
CheckReport checkReport)
Check if it is possible to reconnect the given data edge (respectively the
connected data element) to the given parameter in the template.
|
static boolean |
isPossible(Template template,
int nodeID,
int dataElementID,
DataEdge dataEdge,
ProcessModelParameter param)
Check if it is possible to reconnect the given data edge (respectively the
connected data element) to the given parameter in the template.
|
static boolean |
isPossible(Template template,
int nodeID,
int dataElementID,
DataEdge dataEdge,
ProcessModelParameter param,
CheckReport checkReport)
Check if it is possible to reconnect the given data edge (respectively the
connected data element) to the given parameter in the template.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
int nodeID,
int dataElementID,
DataEdge dataEdge,
ProcessModelParameter param)
Connect the given data element with the given parameter (via the given
already existing data edge) in the instance.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
int nodeID,
int dataElementID,
DataEdge dataEdge,
ProcessModelParameter param,
UpdateManager updateManager)
Connect the given data element with the given parameter (via the given
already existing data edge) in the instance.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
int nodeID,
int dataElementID,
DataEdge dataEdge,
ProcessModelParameter param)
Connect the given data element with the given parameter (via the given
already existing data edge) in the template.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
int nodeID,
int dataElementID,
DataEdge dataEdge,
ProcessModelParameter param,
UpdateManager updateManager)
Connect the given data element with the given parameter (via the given
already existing data edge) in the template.
|
protected static void |
performOperation(SessionToken session,
ChangePrimitives processGraph,
int nodeID,
int dataElementID,
DataEdge dataEdge,
ProcessModelParameter param,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
public static boolean isPossible(Template template, int nodeID, int dataElementID, DataEdge dataEdge, ProcessModelParameter param)
template - the template where the change operation is performed on.nodeID - the node where the data edge is connected withdataElementID - the data element where the data edge is connected withdataEdge - the data edge objectparam - the parameter the data element (via data edge) should be
connected withpublic static boolean isPossible(Template template, int nodeID, int dataElementID, DataEdge dataEdge, ProcessModelParameter param, CheckReport checkReport)
template - the template where the change operation is performed on.nodeID - the node where the data edge is connected withdataElementID - the data element where the data edge is connected withdataEdge - the data edge objectparam - the parameter the data element (via data edge) should be
connected withcheckReport - an (empty) checkReport object which contains the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static boolean isPossible(ChangeableInstance instance, int nodeID, int dataElementID, DataEdge dataEdge, ProcessModelParameter param)
instance - the changeable instance where the change operation is
performed on.nodeID - the node where the data edge is connected withdataElementID - the data element where the data edge is connected withdataEdge - the data edge objectparam - the parameter the data element (via data edge) should be
connected withpublic static boolean isPossible(ChangeableInstance instance, int nodeID, int dataElementID, DataEdge dataEdge, ProcessModelParameter param, CheckReport checkReport)
instance - the changeable instance where the change operation is
performed on.nodeID - the node where the data edge is connected withdataElementID - the data element where the data edge is connected withdataEdge - the data edge objectparam - the parameter the data element (via data edge) should be
connected withcheckReport - an (empty) checkReport object which contains 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, int nodeID, int dataElementID, DataEdge dataEdge, ProcessModelParameter param)
session - The session which is used to check for access rights on this
method.template - the related templateparam - the parameter where the data element (given by dataElementID)
is to be connected withnodeID - the node where the data edge is connected withdataElementID - the data element where the data edge is connected withdataEdge - the edge objectpublic static void performOperation(SessionToken session, ChangeableTemplate template, int nodeID, int dataElementID, DataEdge dataEdge, ProcessModelParameter param, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.template - the related templateparam - the parameter where the data element (given by dataElementID)
is to be connected withnodeID - the node where the data edge is connected withdataElementID - the data element where the data edge is connected withdataEdge - the edge objectupdateManager - the manager who controls the update of the visual
graph components. (maybe null)public static void performOperation(SessionToken session, ChangeableInstance instance, int nodeID, int dataElementID, DataEdge dataEdge, ProcessModelParameter param)
session - The session which is used to check for access rights on this
method.instance - the related changeable instanceparam - the parameter where the data element (given by dataElementID)
is to be connected withnodeID - the node where the data edge is connected withdataElementID - the data element where the data edge is connected withdataEdge - the edge objectpublic static void performOperation(SessionToken session, ChangeableInstance instance, int nodeID, int dataElementID, DataEdge dataEdge, ProcessModelParameter param, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.instance - the related changeable instanceparam - the parameter where the data element (given by dataElementID)
is to be connected withnodeID - the node where the data edge is connected withdataElementID - the data element where the data edge is connected withdataEdge - the edge objectupdateManager - the manager who controls the update of the visual
graph components. (maybe null)protected static void performOperation(SessionToken session, ChangePrimitives processGraph, int nodeID, int dataElementID, DataEdge dataEdge, ProcessModelParameter param, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.processGraph - an instance of type ChangeableTemplate or
ChangeableInstanceparam - the parameter where the data element (given by dataElementID)
is to be connected withnodeID - the node where the data edge is connected withdataElementID - the data element where the data edge is connected withdataEdge - the edge objectupdateManager - the manager who controls the update of the visual
graph components. (maybe null)