From 0e47fcf59332b96c43f4737143025e07f8202638 Mon Sep 17 00:00:00 2001
From: jdemendi <jdemendi@localhost>
Date: Fri, 31 Oct 2008 11:12:52 +0000
Subject: [PATCH] fix 35353, Workflows are not notified when their root workflow elements are disabled

---
 opends/src/server/org/opends/server/core/DirectoryServer.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index 2e69d06..5d5c9ff 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -2735,10 +2735,13 @@
     // backendID and baseDN should be ok.
     String workflowID = backend.getBackendID() + "#" + baseDN.toString();
 
-    // Create the worklfow for the base DN and register the workflow with
+    // Create the workflow for the base DN and register the workflow with
     // the server.
     WorkflowImpl workflowImpl = new WorkflowImpl(
-        workflowID, baseDN, (WorkflowElement) rootWE);
+        workflowID,
+        baseDN,
+        rootWE.getWorkflowElementID(),
+        (WorkflowElement) rootWE);
     workflowImpl.register();
 
     return workflowImpl;

--
Gitblit v1.10.0