SMILA 1.0 API documentation

org.eclipse.smila.processing.bpel.internal
Class DeploymentManager

java.lang.Object
  extended by org.eclipse.smila.processing.bpel.internal.DeploymentManager

public class DeploymentManager
extends java.lang.Object

manages deployment directories for SMILA BPEL workflows and control deployment processes in ODEServer.


Constructor Summary
DeploymentManager()
          create instance for given ODEServer.
 
Method Summary
 java.util.Collection<javax.xml.namespace.QName> deployPredefinedWorkflows(java.lang.String configurationDirectoryName, ODEServer server)
          deploy a set of predefined workflows from a directory in the configuration area.
 javax.xml.namespace.QName deployWorkflow(java.lang.String workflowName, AnyMap workflowDefinition, ODEServer server)
          deploy a single custom workflow.
 javax.xml.namespace.QName deployWorkflowDir(java.lang.String workflowName, java.io.File deploymentDirectory, ODEServer server)
          deploy a single custom workflow located in the given deployment directory.
 boolean isCustomWorkflow(java.lang.String workflowName)
           
 boolean isDeployedWorkflow(java.lang.String workflowName)
           
 boolean isPredefinedWorkflow(java.lang.String workflowName)
           
 javax.xml.namespace.QName undeployWorkflow(java.lang.String workflowName, ODEServer server)
          undeploy custom workflow and remove deployment directory in workspace.
 java.io.File validateWorkflow(java.lang.String workflowName, AnyMap workflowDefinition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentManager

public DeploymentManager()
create instance for given ODEServer.

Method Detail

deployPredefinedWorkflows

public java.util.Collection<javax.xml.namespace.QName> deployPredefinedWorkflows(java.lang.String configurationDirectoryName,
                                                                                 ODEServer server)
                                                                          throws ProcessingException,
                                                                                 java.io.IOException
deploy a set of predefined workflows from a directory in the configuration area.

Throws:
java.io.IOException - error copying the file.
ProcessingException - failed to deploy the directory in the server, probably because some definitions were not valid.

validateWorkflow

public java.io.File validateWorkflow(java.lang.String workflowName,
                                     AnyMap workflowDefinition)
                              throws ProcessingException
Returns:
deploy directory created for validated workflow.
Throws:
ProcessingException - if workflow definition is not valid.

deployWorkflow

public javax.xml.namespace.QName deployWorkflow(java.lang.String workflowName,
                                                AnyMap workflowDefinition,
                                                ODEServer server)
                                         throws ProcessingException
deploy a single custom workflow. The map must contain the workflow name as a single string value for key "name" and BPEL XML definition as a single string value for key "definition". If a custom workflow with the same name exists already, the old version is undeployed after successful deployment, and the old deployment directory in workspace is removed.

Throws:
ProcessingException

deployWorkflowDir

public javax.xml.namespace.QName deployWorkflowDir(java.lang.String workflowName,
                                                   java.io.File deploymentDirectory,
                                                   ODEServer server)
                                            throws ProcessingException
deploy a single custom workflow located in the given deployment directory.

Throws:
ProcessingException

undeployWorkflow

public javax.xml.namespace.QName undeployWorkflow(java.lang.String workflowName,
                                                  ODEServer server)
                                           throws ProcessingException
undeploy custom workflow and remove deployment directory in workspace.

Throws:
ProcessingException - trying to delete a predefined workflow or error undeploying from BPEL server.

isDeployedWorkflow

public boolean isDeployedWorkflow(java.lang.String workflowName)
Returns:
true if the workflow is deployed, false if not.

isPredefinedWorkflow

public boolean isPredefinedWorkflow(java.lang.String workflowName)
Returns:
true if the workflow is a predefined workflow, false if it is a custom workflow or not deployed.

isCustomWorkflow

public boolean isCustomWorkflow(java.lang.String workflowName)
Returns:
true if the workflow is a custom workflow, false if it is a predefined workflow or not deployed.

SMILA 1.0 API documentation