Use cn as naming attribute for the WorkFlow and WorkFlowElements like other objects in OpenDS configuration
| | |
| | | SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 |
| | | SINGLE-VALUE |
| | | X-ORIGIN 'OpenDS Directory Server' ) |
| | | attributeTypes: ( 1.3.6.1.4.1.26027.1.1.436 |
| | | NAME 'ds-cfg-workflow-id' |
| | | SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 |
| | | SINGLE-VALUE |
| | | X-ORIGIN 'OpenDS Directory Server' ) |
| | | attributeTypes: ( 1.3.6.1.4.1.26027.1.1.437 |
| | | NAME 'ds-cfg-workflow' |
| | | SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 |
| | | X-ORIGIN 'OpenDS Directory Server' ) |
| | | attributeTypes: ( 1.3.6.1.4.1.26027.1.1.438 |
| | | NAME 'ds-cfg-workflow-element-id' |
| | | SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 |
| | | SINGLE-VALUE |
| | | X-ORIGIN 'OpenDS Directory Server' ) |
| | | attributeTypes: ( 1.3.6.1.4.1.26027.1.1.439 |
| | | NAME 'ds-cfg-workflow-element' |
| | | SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 |
| | |
| | | NAME 'ds-cfg-workflow' |
| | | SUP top |
| | | STRUCTURAL |
| | | MUST ( ds-cfg-workflow-id $ |
| | | MUST ( cn $ |
| | | ds-cfg-enabled $ |
| | | ds-cfg-workflow-element $ |
| | | ds-cfg-base-dn ) |
| | |
| | | NAME 'ds-cfg-workflow-element' |
| | | SUP top |
| | | STRUCTURAL |
| | | MUST ( ds-cfg-workflow-element-id $ |
| | | MUST ( cn $ |
| | | ds-cfg-enabled $ |
| | | ds-cfg-java-class ) |
| | | X-ORIGIN 'OpenDS Directory Server' ) |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! |
| | | ! Copyright 2007-2009 Sun Microsystems, Inc. |
| | | ! Copyright 2007-2010 Sun Microsystems, Inc. |
| | | ! --> |
| | | <adm:root-managed-object xmlns:adm="http://www.opends.org/admin" |
| | | xmlns:ldap="http://www.opends.org/admin-ldap" |
| | |
| | | </adm:profile> |
| | | </adm:relation> |
| | | <adm:relation name="workflow"> |
| | | <adm:one-to-many naming-property="workflow-id" /> |
| | | <adm:one-to-many /> |
| | | <adm:profile name="ldap"> |
| | | <ldap:rdn-sequence>cn=Workflows,cn=config</ldap:rdn-sequence> |
| | | </adm:profile> |
| | |
| | | </adm:profile> |
| | | </adm:relation> |
| | | <adm:relation name="workflow-element"> |
| | | <adm:one-to-many naming-property="workflow-element-id" /> |
| | | <adm:one-to-many /> |
| | | <adm:profile name="ldap"> |
| | | <ldap:rdn-sequence> |
| | | cn=Workflow elements,cn=config |
| | |
| | | </ldap:attribute> |
| | | </adm:profile> |
| | | </adm:property> |
| | | <adm:property name="workflow-id" mandatory="true" read-only="true"> |
| | | <adm:synopsis> |
| | | Provides a name that identifies the |
| | | <adm:user-friendly-name />. |
| | | </adm:synopsis> |
| | | <adm:description> |
| | | The name must be unique among all |
| | | <adm:user-friendly-plural-name /> |
| | | in the server. |
| | | </adm:description> |
| | | <adm:syntax> |
| | | <adm:string /> |
| | | </adm:syntax> |
| | | <adm:profile name="ldap"> |
| | | <ldap:attribute> |
| | | <ldap:name>ds-cfg-workflow-id</ldap:name> |
| | | </ldap:attribute> |
| | | </adm:profile> |
| | | </adm:property> |
| | | <adm:property name="workflow-element" mandatory="true"> |
| | | <adm:synopsis> |
| | | Specifies the root Workflow Element in the |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! |
| | | ! Copyright 2007-2008 Sun Microsystems, Inc. |
| | | ! Copyright 2007-2010 Sun Microsystems, Inc. |
| | | ! --> |
| | | <adm:managed-object name="workflow-element" |
| | | plural-name="workflow-elements" package="org.opends.server.admin.std" |
| | | xmlns:adm="http://www.opends.org/admin" |
| | | xmlns:ldap="http://www.opends.org/admin-ldap" |
| | | xmlns:cli="http://www.opends.org/admin-cli"> |
| | | xmlns:ldap="http://www.opends.org/admin-ldap"> |
| | | <adm:synopsis> |
| | | <adm:user-friendly-plural-name /> |
| | | implement a single processing step in a Work Flow. |
| | |
| | | <ldap:superior>top</ldap:superior> |
| | | </ldap:object-class> |
| | | </adm:profile> |
| | | <adm:profile name="cli"> |
| | | <cli:managed-object custom="true" /> |
| | | </adm:profile> |
| | | <adm:property name="enabled" mandatory="true"> |
| | | <adm:synopsis> |
| | | Indicates whether the |
| | |
| | | </ldap:attribute> |
| | | </adm:profile> |
| | | </adm:property> |
| | | <adm:property name="workflow-element-id" mandatory="true" |
| | | read-only="true"> |
| | | <adm:synopsis> |
| | | Provides a name that identifies the associated |
| | | <adm:user-friendly-name /> |
| | | . |
| | | </adm:synopsis> |
| | | <adm:description> |
| | | The name must be unique among all |
| | | <adm:user-friendly-plural-name /> |
| | | in the server. |
| | | </adm:description> |
| | | <adm:syntax> |
| | | <adm:string /> |
| | | </adm:syntax> |
| | | <adm:profile name="ldap"> |
| | | <ldap:attribute> |
| | | <ldap:name>ds-cfg-workflow-element-id</ldap:name> |
| | | </ldap:attribute> |
| | | </adm:profile> |
| | | </adm:property> |
| | | <adm:property name="java-class" mandatory="true"> |
| | | <adm:synopsis> |
| | | Specifies the fully-qualified name of the Java class that provides the |
| | |
| | | property.enabled.synopsis=Indicates whether the Local Backend Workflow Element is enabled for use in the server. |
| | | property.enabled.description=If a Local Backend Workflow Element is not enabled, then its contents are not accessible when processing operations. |
| | | property.java-class.synopsis=Specifies the fully-qualified name of the Java class that provides the Local Backend Workflow Element implementation. |
| | | property.workflow-element-id.synopsis=Provides a name that identifies the associated Local Backend Workflow Element . |
| | | property.workflow-element-id.description=The name must be unique among all Local Backend Workflow Elements in the server. |
| | |
| | | property.enabled.description=If a Workflow is not enabled, then its contents are not accessible when processing operations. |
| | | property.workflow-element.synopsis=Specifies the root Workflow Element in the Workflow . |
| | | property.workflow-element.syntax.aggregation.constraint-synopsis=The referenced workflow element must be enabled. |
| | | property.workflow-id.synopsis=Provides a name that identifies the Workflow. |
| | | property.workflow-id.description=The name must be unique among all Workflows in the server. |
| | |
| | | property.enabled.synopsis=Indicates whether the Workflow Element is enabled for use in the server. |
| | | property.enabled.description=If a Workflow Element is not enabled, then its contents are not accessible when processing operations. |
| | | property.java-class.synopsis=Specifies the fully-qualified name of the Java class that provides the Workflow Element implementation. |
| | | property.workflow-element-id.synopsis=Provides a name that identifies the associated Workflow Element . |
| | | property.workflow-element-id.description=The name must be unique among all Workflow Elements in the server. |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2007-2008 Sun Microsystems, Inc. |
| | | * Copyright 2007-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | ) throws DirectoryException |
| | | { |
| | | // The ID of the workflow to create |
| | | String workflowId = workflowCfg.getWorkflowId(); |
| | | String workflowId = |
| | | workflowCfg.dn().getRDN().getAttributeValue(0).toString(); |
| | | |
| | | // Create the root workflow element to associate with the workflow |
| | | String rootWorkflowElementID = workflowCfg.getWorkflowElement(); |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2007-2009 Sun Microsystems, Inc. |
| | | * Copyright 2007-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.workflowelement; |
| | | |
| | |
| | | |
| | | 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 |
| | |
| | | |
| | | // 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. |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.workflowelement.localbackend; |
| | | |
| | |
| | | if (applyChanges) |
| | | { |
| | | super.initialize( |
| | | configuration.getWorkflowElementId(), BACKEND_WORKFLOW_ELEMENT); |
| | | configuration.dn().getRDN().getAttributeValue(0).toString(), |
| | | BACKEND_WORKFLOW_ELEMENT); |
| | | backend = newBackend; |
| | | if (backend != null) |
| | | { |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.workflowelement.ndb; |
| | | |
| | |
| | | if (applyChanges) |
| | | { |
| | | super.initialize( |
| | | configuration.getWorkflowElementId(), BACKEND_WORKFLOW_ELEMENT); |
| | | configuration.dn().getRDN().getAttributeValue(0).toString(), |
| | | BACKEND_WORKFLOW_ELEMENT); |
| | | backend = newBackend; |
| | | } |
| | | } |