Class RemoveExecutableBusinessProcess
java.lang.Object
de.aristaflow.adept2.core.changeoperations.RemoveExecutableBusinessProcess
Change operation for the removal/deletion of a nodes' EBP
Call isPossible first to check if the assignment is valid, than call perform
operation to execute the change.
TODO Refactor; use a common interface for change operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisPossible(ChangeableInstance instance, Node node) Checks if it is valid (concerning structural and state-based correctness) to remove/delete the EBP from the given node.static booleanisPossible(ChangeableInstance instance, Node node, CheckReport checkReport) Checks if it is valid (concerning structural and state-based correctness) to remove/delete the EBP from the given node.static booleanisPossible(Template template, Node node) Checks if it is valid (concerning structural correctness) to remove/delete the EBP from the given node in the given template.static booleanisPossible(Template template, Node node, CheckReport checkReport) Checks if it is valid (concerning structural correctness) to remove/delete the EBP from the given node in the given template.static voidperformOperation(SessionToken session, ChangeableInstance instance, Node node) Removes/Deletes an executable business process from the given node in the given instance.static voidperformOperation(SessionToken session, ChangeableInstance instance, Node node, UpdateManager updateManager) Removes/Deletes an executable business process from the given node in the given instance.static voidperformOperation(SessionToken session, ChangeableTemplate template, Node node) Removes/Deletes an executable business process from the given node in the given templatestatic voidperformOperation(SessionToken session, ChangeableTemplate template, Node node, UpdateManager updateManager) Removes/Deletes an executable business process from the given node in the given template.protected static voidperformOperation(SessionToken session, ChangePrimitives processGraph, Node node, UpdateManager updateManager) Worker method to do the structural changes for both changeable templates and changeable instances.
-
Constructor Details
-
RemoveExecutableBusinessProcess
public RemoveExecutableBusinessProcess()
-
-
Method Details
-
isPossible
Checks if it is valid (concerning structural correctness) to remove/delete the EBP from the given node in the given template.- Parameters:
template- the related templatenode- the node where the EBP should be deleted- Returns:
- True, if possible
-
isPossible
Checks if it is valid (concerning structural correctness) to remove/delete the EBP from the given node in the given template. If the check fails the reason is stored in the given checkReport (provided that checkReport is not null)- Parameters:
template- the related templatenode- the node where the EBP should be deletedcheckReport- an (empty) checkReport object which contains the reason why the isPossible failed (i.e. in the case the method returns false), may be null- Returns:
- True, if possible
-
isPossible
Checks if it is valid (concerning structural and state-based correctness) to remove/delete the EBP from the given node.- Parameters:
instance- the changeable instance where the method is performed onnode- the node where the EBP should be deleted- Returns:
- True, if possible
-
isPossible
Checks if it is valid (concerning structural and state-based correctness) to remove/delete the EBP from the given node. If the check fails the reason is stored in the given checkReport (provided that checkReport is not null)- Parameters:
instance- the changeable instance where the method is performed onnode- the node where the EBP should be deletedcheckReport- an (empty) checkReport object which contains the reason why the isPossible failed (i.e. in the case the method returns false), may be null- Returns:
- True, if possible
-
performOperation
Removes/Deletes an executable business process from the given node in the given template- Parameters:
session- The session which is used to check for access rights on this method.template- the template where the method is performed onnode- the node where the EBP is to be removed
-
performOperation
public static void performOperation(SessionToken session, ChangeableTemplate template, Node node, UpdateManager updateManager) Removes/Deletes an executable business process from the given node in the given template. (Method with updateManager)- Parameters:
session- The session which is used to check for access rights on this method.template- the template where the method is performed onnode- the node where the EBP is to be removedupdateManager- The update manager which will be informed about process changes.
-
performOperation
Removes/Deletes an executable business process from the given node in the given instance.- Parameters:
session- The session which is used to check for access rights on this method.instance- the changeable instance where the method is performed onnode- the node where the EBP is to be removed
-
performOperation
public static void performOperation(SessionToken session, ChangeableInstance instance, Node node, UpdateManager updateManager) Removes/Deletes an executable business process from the given node in the given instance. (Method with updateManager)- Parameters:
session- The session which is used to check for access rights on this method.instance- the changeable instance where the method is performed onnode- the node where the EBP is to be removedupdateManager- The update manager which will be informed about process changes.
-
performOperation
protected static void performOperation(SessionToken session, ChangePrimitives processGraph, Node node, UpdateManager updateManager) Worker method to do the structural changes for both changeable templates and changeable instances.- Parameters:
session- The session which is used to check for access rights on this method.processGraph- an instance of type ChangeableTemplate or ChangeableInstancenode- the node where the EBP is to be removedupdateManager- The update manager which will be informed about process changes.
-