SMILA 1.0 API documentation

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

java.lang.Object
  extended by org.eclipse.smila.processing.bpel.internal.OdeBpelEngine
All Implemented Interfaces:
BpelEngine

public class OdeBpelEngine
extends java.lang.Object
implements BpelEngine

wrapper for ODEServer and DeploymentManager.


Constructor Summary
OdeBpelEngine()
           
 
Method Summary
protected  void activate()
          initialize engine.
protected  void deactivate()
          shutdown engine.
 java.util.Collection<java.lang.String> deployPredefinedWorkflows(java.lang.String pipelineDirName)
          prepare a deployment unit dirrectory from a configuration directory with predefined workflows and deploy it to the server.
 void deployWorkflow(java.lang.String workflowName, AnyMap workflowDefinition)
          deploy a single workflow to the server.
 javax.xml.namespace.QName deployWorkflowDir(java.lang.String workflowName, java.io.File deploymentDirectory)
          deploy a deployment unit dir with one workflow to the server.
 AnyMap getWorkflow(java.lang.String workflowName)
          get current workflow definition from ODE server.
 org.w3c.dom.Element invoke(java.lang.String workflowName, org.w3c.dom.Element message)
          invoke a pipeline.
 boolean isCustomWorkflow(java.lang.String workflowName)
          check if a workflow is custom defined.
 boolean isPredefinedWorkflow(java.lang.String workflowName)
          check if a workflow is predefined.
 void undeployWorkflow(java.lang.String workflowName)
          undeploy a workflow from the server.
 java.io.File validateWorkflow(java.lang.String workflowName, AnyMap workflowDefinition)
          create deployment unit for given workflow definition and validate it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OdeBpelEngine

public OdeBpelEngine()
Method Detail

activate

protected void activate()
initialize engine.


deactivate

protected void deactivate()
shutdown engine.


invoke

public org.w3c.dom.Element invoke(java.lang.String workflowName,
                                  org.w3c.dom.Element message)
                           throws ODEServerException
Description copied from interface: BpelEngine
invoke a pipeline.

Specified by:
invoke in interface BpelEngine
Throws:
ODEServerException

isPredefinedWorkflow

public boolean isPredefinedWorkflow(java.lang.String workflowName)
Description copied from interface: BpelEngine
check if a workflow is predefined.

Specified by:
isPredefinedWorkflow in interface BpelEngine

isCustomWorkflow

public boolean isCustomWorkflow(java.lang.String workflowName)
Description copied from interface: BpelEngine
check if a workflow is custom defined.

Specified by:
isCustomWorkflow in interface BpelEngine

getWorkflow

public AnyMap getWorkflow(java.lang.String workflowName)
                   throws java.io.IOException
Description copied from interface: BpelEngine
get current workflow definition from ODE server.

Specified by:
getWorkflow in interface BpelEngine
Throws:
java.io.IOException

validateWorkflow

public java.io.File validateWorkflow(java.lang.String workflowName,
                                     AnyMap workflowDefinition)
                              throws ProcessingException
Description copied from interface: BpelEngine
create deployment unit for given workflow definition and validate it.

Specified by:
validateWorkflow in interface BpelEngine
Returns:
directory ready to deploy.
Throws:
ProcessingException - validation error.

deployWorkflowDir

public javax.xml.namespace.QName deployWorkflowDir(java.lang.String workflowName,
                                                   java.io.File deploymentDirectory)
                                            throws ProcessingException
Description copied from interface: BpelEngine
deploy a deployment unit dir with one workflow to the server.

Specified by:
deployWorkflowDir in interface BpelEngine
Throws:
ProcessingException

undeployWorkflow

public void undeployWorkflow(java.lang.String workflowName)
                      throws ProcessingException
Description copied from interface: BpelEngine
undeploy a workflow from the server.

Specified by:
undeployWorkflow in interface BpelEngine
Throws:
ProcessingException

deployWorkflow

public void deployWorkflow(java.lang.String workflowName,
                           AnyMap workflowDefinition)
                    throws ProcessingException
Description copied from interface: BpelEngine
deploy a single workflow to the server.

Specified by:
deployWorkflow in interface BpelEngine
Throws:
ProcessingException

deployPredefinedWorkflows

public java.util.Collection<java.lang.String> deployPredefinedWorkflows(java.lang.String pipelineDirName)
                                                                 throws ProcessingException,
                                                                        java.io.IOException
Description copied from interface: BpelEngine
prepare a deployment unit dirrectory from a configuration directory with predefined workflows and deploy it to the server.

Specified by:
deployPredefinedWorkflows in interface BpelEngine
Throws:
ProcessingException
java.io.IOException

SMILA 1.0 API documentation