public class BpelWorkflowProcessor extends java.lang.Object implements WorkflowProcessor, ConfigurationUpdateWatcher.UpdateableService
NAMESPACE_PROCESSOR, WORKFLOW_DEFINITION, WORKFLOW_NAME, WORKFLOW_READONLY, WORKFLOW_TIMESTAMP| Constructor and Description |
|---|
BpelWorkflowProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate()
OSGi Declarative Services service activation method.
|
protected void |
deactivate()
OSGi Declarative Services service deactivation method.
|
void |
deleteWorkflowDefinition(java.lang.String workflowName) |
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 |
setBpelEngine(BpelEngine bpelEngine)
method for DS to set a service reference.
|
void |
setRequestTable(RequestTable requests)
method for DS to set a service reference.
|
void |
setUpdateWatcher(ConfigurationUpdateWatcher updateWatcher)
method for DS to set a service reference.
|
void |
setWorkflowDefinition(java.lang.String workflowName,
AnyMap workflowDefinition) |
void |
setWorkflowStorage(WorkflowStorage workflowStorage)
method for DS to set a service reference.
|
void |
synchronizeConfiguration(java.lang.String workflowName,
boolean isDeleted) |
void |
unsetBpelEngine(BpelEngine bpelEngine)
method for DS to unset a service reference.
|
void |
unsetRequestTable(RequestTable requests)
method for DS to unset a service reference.
|
void |
unsetUpdateWatcher(ConfigurationUpdateWatcher updateWatcher)
method for DS to unset a service reference.
|
void |
unsetWorkflowStorage(WorkflowStorage workflowStorage)
method for DS to unset a service reference.
|
public java.lang.String[] process(java.lang.String workflowName,
Blackboard blackboard,
java.lang.String[] recordIds)
throws ProcessingException
WorkflowProcessorprocess 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 WorkflowProcessorpublic AnyMap getWorkflowDefinition(java.lang.String workflowName) throws ProcessingException
getWorkflowDefinition in interface WorkflowProcessorworkflowName - The workflow nameProcessingException - 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 deployProcessingException - error during deploypublic void deleteWorkflowDefinition(java.lang.String workflowName)
throws ProcessingException
deleteWorkflowDefinition in interface WorkflowProcessorworkflowName - The workflow name to delete and undeployProcessingException - error during undeploypublic void synchronizeConfiguration(java.lang.String workflowName,
boolean isDeleted)
synchronizeConfiguration in interface ConfigurationUpdateWatcher.UpdateableServiceprotected void activate()
protected void deactivate()
public void setWorkflowStorage(WorkflowStorage workflowStorage)
public void unsetWorkflowStorage(WorkflowStorage workflowStorage)
public void setUpdateWatcher(ConfigurationUpdateWatcher updateWatcher)
public void unsetUpdateWatcher(ConfigurationUpdateWatcher updateWatcher)
public void setBpelEngine(BpelEngine bpelEngine)
public void unsetBpelEngine(BpelEngine bpelEngine)
public void setRequestTable(RequestTable requests)
public void unsetRequestTable(RequestTable requests)