Class RemoveExecutableBusinessProcess

java.lang.Object
de.aristaflow.adept2.core.changeoperations.RemoveExecutableBusinessProcess

public class RemoveExecutableBusinessProcess extends Object
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 Details

    • RemoveExecutableBusinessProcess

      public RemoveExecutableBusinessProcess()
  • Method Details

    • isPossible

      public static boolean isPossible(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.
      Parameters:
      template - the related template
      node - the node where the EBP should be deleted
      Returns:
      True, if possible
    • isPossible

      public static boolean isPossible(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. If the check fails the reason is stored in the given checkReport (provided that checkReport is not null)
      Parameters:
      template - the related template
      node - the node where the EBP should be deleted
      checkReport - 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

      public static boolean isPossible(ChangeableInstance instance, Node node)
      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 on
      node - the node where the EBP should be deleted
      Returns:
      True, if possible
    • isPossible

      public static boolean isPossible(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. 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 on
      node - the node where the EBP should be deleted
      checkReport - 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

      public static void performOperation(SessionToken session, ChangeableTemplate template, Node node)
      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 on
      node - 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 on
      node - the node where the EBP is to be removed
      updateManager - The update manager which will be informed about process changes.
    • performOperation

      public static void performOperation(SessionToken session, ChangeableInstance instance, Node node)
      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 on
      node - 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 on
      node - the node where the EBP is to be removed
      updateManager - 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 ChangeableInstance
      node - the node where the EBP is to be removed
      updateManager - The update manager which will be informed about process changes.