mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ludovicp
31.53.2010 3050004f8907c956303e7451b551300909459e92
opends/src/server/org/opends/server/workflowelement/WorkflowElementConfigManager.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2007-2009 Sun Microsystems, Inc.
 *      Copyright 2007-2010 Sun Microsystems, Inc.
 */
package org.opends.server.workflowelement;
@@ -238,7 +238,7 @@
    WorkflowElement<?> workflowElement =
            DirectoryServer.getWorkflowElement(
            configuration.getWorkflowElementId());
            configuration.dn().getRDN().getAttributeValue(0).toString());
    if (workflowElement != null)
    {
      // Notify to observers that the workflow element is now disabled
@@ -303,7 +303,8 @@
    // Get the existing workflow element if it's already enabled.
    WorkflowElement<?> existingWorkflowElement =
      DirectoryServer.getWorkflowElement(configuration.getWorkflowElementId());
      DirectoryServer.getWorkflowElement(
      configuration.dn().getRDN().getAttributeValue(0).toString());
    // If the new configuration has the workflow element disabled,
    // then disable it if it is enabled, or do nothing if it's already disabled.