| | |
| | | */ |
| | | public WorkflowTopologyNode( |
| | | WorkflowImpl workflowImpl, |
| | | WorkflowElement[] preWorkflowElements, |
| | | WorkflowElement[] postWorkflowElements |
| | | WorkflowElement<?>[] preWorkflowElements, |
| | | WorkflowElement<?>[] postWorkflowElements |
| | | ) |
| | | { |
| | | super(workflowImpl); |
| | |
| | | * @param operation the operation to execute |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | * be canceled. |
| | | */ |
| | | public void execute(Operation operation) |
| | | throws CanceledOperationException { |
| | |
| | | * @param searchOp the search operation to execute |
| | | * |
| | | * @throws CanceledOperationException if this operation should |
| | | * be cancelled. |
| | | * be canceled. |
| | | */ |
| | | private void executeSearchOnSubordinates(SearchOperation searchOp) |
| | | throws CanceledOperationException { |
| | |
| | | } |
| | | |
| | | // If the request base DN is not a subordinate of the subordinate |
| | | // worklfow base DN then don't search in the subordinate workflow. |
| | | // workflow base DN then don't search in the subordinate workflow. |
| | | if (! originalBaseDN.isAncestorOf(subordinateDN)) |
| | | { |
| | | continue; |
| | |
| | | |
| | | /** |
| | | * Gets the base DN of the workflow that handles a given dn. The elected |
| | | * workflow may be the current workflow or one of its subordiante workflows. |
| | | * workflow may be the current workflow or one of its subordinate workflows. |
| | | * |
| | | * @param dn the DN for which we are looking a parent DN |
| | | * @return the base DN which is the parent of the <code>dn</code>, |
| | |
| | | WorkflowTopologyNode newWorkflow |
| | | ) |
| | | { |
| | | // Dont try to add the workflow to itself. |
| | | // Don't try to add the workflow to itself. |
| | | if (newWorkflow == this) |
| | | { |
| | | return; |
| | |
| | | DN newDN = newWorkflow.getBaseDN(); |
| | | DN subordinateDN = curSubordinate.getBaseDN(); |
| | | |
| | | // Dont try to add workflow when baseDNs are |
| | | // Don't try to add workflow when baseDNs are |
| | | // the same on both workflows. |
| | | if (newDN.equals(subordinateDN)) { |
| | | return; |
| | |
| | | DN parentBaseDN = getBaseDN(); |
| | | DN newBaseDN = newWorkflow.getBaseDN(); |
| | | |
| | | // dont' try to insert workflows when baseDNs are the same on both |
| | | // don't try to insert workflows when baseDNs are the same on both |
| | | // workflows |
| | | if (parentBaseDN.equals(newBaseDN)) |
| | | { |