psdi.workflow

Class WorkflowTemplateDeletionMonitor

  • java.lang.Object
    • psdi.workflow.WorkflowTemplateDeletionMonitor


  • public class WorkflowTemplateDeletionMonitor
    extends java.lang.Object
    Listens for the deletion of CommTemplate records and prevents the deletion of templates referenced by active work assignments and notifications.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void canDeactivate(Mbo mbo)
      Check to see whether a comm template's status can be changed to INACTIVE from the standpoint of workflow.
      static void doCheck(Mbo mbo)
      Checks to see that the Mbo isn't the target of a workflow instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorkflowTemplateDeletionMonitor

        public WorkflowTemplateDeletionMonitor()
    • Method Detail

      • doCheck

        public static void doCheck(Mbo mbo)
                            throws java.rmi.RemoteException,
                                   MXException
        Checks to see that the Mbo isn't the target of a workflow instance.
        Parameters:
        mbo - The Mbo being marked for deletion.
        Throws:
        MXApplicationException - Thrown with "workflow", "AssignNoDelTemplate" if the communication template is referenced by an assignment in a process definition. Parameters are the template ID, process name, and process revision.
        MXApplicationException - Thrown with "workflow", "NotifNoDelTemplate" if the communication template is referenced by an notification in a process definition. Parameters are the template ID, process name, and process revision.
        java.rmi.RemoteException
        MXException
      • canDeactivate

        public static void canDeactivate(Mbo mbo)
                                  throws java.rmi.RemoteException,
                                         MXException
        Check to see whether a comm template's status can be changed to INACTIVE from the standpoint of workflow. If a commtemplate object is referenced by an active workflow process, then it can't be deactivated.
        Parameters:
        mbo - The comm template mbo which status is to be changed to INACTIVE.
        Throws:
        MXApplicationException - Thrown with "workflow" and either "AssignNoDeactivateTemplate" or "NotifNoDeactivateTemplate", with parameters of the templateID, and the name and revision of the process that references the CommTemplate.
        java.rmi.RemoteException
        MXException