|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.processing.bpel.ODEWorkflowProcessor
public class ODEWorkflowProcessor
SMILA Workflow Processor that uses the Apache ODE BPEL engine to orchestrate SMILA pipelets in BPEL processes.
| Field Summary | |
|---|---|
static java.lang.String |
WORKFLOW_STORE
the store to persist the workflow data. |
| Fields inherited from interface org.eclipse.smila.processing.WorkflowProcessor |
|---|
NAMESPACE_PROCESSOR, WORKFLOW_DEFINITION, WORKFLOW_NAME, WORKFLOW_READONLY, WORKFLOW_TIMESTAMP |
| Constructor Summary | |
|---|---|
ODEWorkflowProcessor()
create processor. |
|
| Method Summary | |
|---|---|
protected void |
activate(ComponentContext context)
OSGi Declarative Services service activation method. |
protected void |
deactivate(ComponentContext context)
OSGi Declarative Services service deactivation method. |
void |
deleteWorkflowDefinition(java.lang.String workflowName)
|
Blackboard |
getBlackboard(java.lang.String id)
get blackboard service for request. |
MessageHelper |
getMessageHelper()
|
AnyMap |
getWorkflowDefinition(java.lang.String workflowName)
get the definition for a given workflow name. |
java.util.List<java.lang.String> |
getWorkflowNames()
get the pipeline names of the active BPEL processes. |
java.lang.String[] |
process(java.lang.String workflowName,
Blackboard blackboard,
java.lang.String[] recordIds)
process records on Blackboard service. |
void |
setClusterConfigService(ClusterConfigService ccs)
set new ClusterConfigService. |
void |
setObjectStoreService(ObjectStoreService objectStore)
method for DS to set a service reference. |
void |
setPipeletException(java.lang.String requestId,
java.lang.Exception ex)
store a pipelet exception for better error reporting if the engine finally fails. |
void |
setWorkflowDefinition(java.lang.String workflowName,
AnyMap workflowDefinition)
|
void |
setZooKeeperService(ZooKeeperService zks)
set new ZooKeeperService. |
void |
synchronizeWorkflowDefinition(java.lang.String workflowName,
boolean isDeleted)
reload the workflow definition from persistence and deploy it, or undeploy it. |
void |
unsetClusterConfigService(ClusterConfigService ccs)
remove an ClusterConfigService. |
void |
unsetObjectStoreService(ObjectStoreService objectStore)
method for DS to unset a service reference. |
void |
unsetZooKeeperService(ZooKeeperService zks)
remove an ZooKeeperService. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String WORKFLOW_STORE
| Constructor Detail |
|---|
public ODEWorkflowProcessor()
| Method Detail |
|---|
public java.lang.String[] process(java.lang.String workflowName,
Blackboard blackboard,
java.lang.String[] recordIds)
throws ProcessingException
WorkflowProcessor
process in interface WorkflowProcessorworkflowName - name of workflow to execute on Idsblackboard - blackboard to use for processingrecordIds - Ids of records to process.
ProcessingException - error during processing.org.eclipse.smila.processing.WorkflowProcessor#process(java.lang.String, org.eclipse.smila.datamodel.id.Id[])public java.util.List<java.lang.String> getWorkflowNames()
getWorkflowNames in interface WorkflowProcessor
public AnyMap getWorkflowDefinition(java.lang.String workflowName)
throws ProcessingException
getWorkflowDefinition in interface WorkflowProcessorworkflowName - The workflow name
ProcessingException - error reading the definition.
public void setWorkflowDefinition(java.lang.String workflowName,
AnyMap workflowDefinition)
throws ProcessingException
setWorkflowDefinition in interface WorkflowProcessorworkflowName - The workflow nameworkflowDefinition - contains the workflow to add/update and deploy
ProcessingException - error during deploy
public void deleteWorkflowDefinition(java.lang.String workflowName)
throws ProcessingException
deleteWorkflowDefinition in interface WorkflowProcessorworkflowName - The workflow name to delete and undeploy
ProcessingException - error during undeploy
public void synchronizeWorkflowDefinition(java.lang.String workflowName,
boolean isDeleted)
throws ProcessingException
WorkflowProcessor
synchronizeWorkflowDefinition in interface WorkflowProcessorworkflowName - the name of the workflow to reload.isDeleted - true to undeploy workflow locally, false to deploy the currently persisted version.
ProcessingException - if the workflow could not be reloaded for any reason.
public Blackboard getBlackboard(java.lang.String id)
throws ProcessingException
id - request ID
ProcessingException - no blackboard associated with id
public void setPipeletException(java.lang.String requestId,
java.lang.Exception ex)
requestId - id of requestex - exception thrown during pipelet execution.public MessageHelper getMessageHelper()
protected void activate(ComponentContext context)
context - OSGi service component context.protected void deactivate(ComponentContext context)
context - OSGi service component context.public void setObjectStoreService(ObjectStoreService objectStore)
objectStore - ObjectStoreService reference.public void unsetObjectStoreService(ObjectStoreService objectStore)
objectStore - ObjectStoreService reference.public void setClusterConfigService(ClusterConfigService ccs)
ClusterConfigService. To be called by DS runtime before activation.
ccs - new ClusterConfigServicepublic void unsetClusterConfigService(ClusterConfigService ccs)
ClusterConfigService. To be called by DS runtime after deactivation.
ccs - new ClusterConfigServicepublic void setZooKeeperService(ZooKeeperService zks)
ZooKeeperService. To be called by DS runtime before activation.
zks - new ZooKeeperServicepublic void unsetZooKeeperService(ZooKeeperService zks)
ZooKeeperService. To be called by DS runtime after deactivation.
zks - new ZooKeeperService
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||