|
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 |
BUNDLE_NAME
name of bundle. |
static java.lang.String |
CONFIGURATION_DIR
name of configuration directory. |
static java.lang.String |
CONFIGURATION_FILE
name of configuration file. |
static java.lang.String |
DEFAULT_PIPELINE_DIR
default value for PROP_PIPELINE_DIR = "piplines". |
static java.lang.String |
OPERATION_NAME
name of WSDL operation of SMILA BPEL processes. |
static java.lang.String |
PROP_PIPELINE_DIR
configuration property name: directory of BPEL pipeline files in configuration directory = "pipeline.dir". |
static java.lang.String |
PROP_PREFIX_ODE
prefix of ODE configuration properties in property file. |
static java.lang.String |
REFERENCE_PROCSERCVICE
name of OSGi service reference to pielets. |
static java.lang.String |
REFERENCE_SEARCHPROCSERCVICE
name of OSGi service reference to search processing services. |
| Fields inherited from interface org.eclipse.smila.processing.WorkflowProcessor |
|---|
NAMESPACE_PROCESSOR |
| 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. |
Blackboard |
getBlackboard(java.lang.String id)
get blackboard service for request. |
MessageHelper |
getMessageHelper()
|
protected ProcessingService |
getProcessingService(java.lang.String name)
get the processing service registered with the specified name. |
protected SearchProcessingService |
getSearchProcessingService(java.lang.String name)
get the search processing service registered with the specified name. |
java.util.List<java.lang.String> |
getWorkflowNames()
get the pipeline names of the active BPEL processes. |
Id[] |
process(java.lang.String workflowName,
Blackboard blackboard,
Id[] recordIds)
process records on Blackboard service. |
SearchMessage |
process(java.lang.String workflowName,
Blackboard blackboard,
SearchMessage query)
process a search request on Blackboard service. |
void |
setPipeletException(java.lang.String requestId,
java.lang.Exception ex)
store a pipelet exception for better error reporting if the engine finally fails. |
protected void |
setProcessingService(ServiceReference serviceReference)
add a processing service as an OSGi service reference. |
protected void |
setSearchProcessingService(ServiceReference serviceReference)
add a search processing service as an OSGi service reference. |
protected void |
unsetProcessingService(ServiceReference serviceReference)
remove a processing service. |
protected void |
unsetSearchProcessingService(ServiceReference serviceReference)
remove a search processing service. |
| 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 REFERENCE_PROCSERCVICE
public static final java.lang.String REFERENCE_SEARCHPROCSERCVICE
public static final java.lang.String OPERATION_NAME
public static final java.lang.String BUNDLE_NAME
public static final java.lang.String CONFIGURATION_DIR
public static final java.lang.String CONFIGURATION_FILE
public static final java.lang.String PROP_PIPELINE_DIR
public static final java.lang.String DEFAULT_PIPELINE_DIR
public static final java.lang.String PROP_PREFIX_ODE
| Constructor Detail |
|---|
public ODEWorkflowProcessor()
| Method Detail |
|---|
public Id[] process(java.lang.String workflowName,
Blackboard blackboard,
Id[] recordIds)
throws ProcessingException
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 SearchMessage process(java.lang.String workflowName,
Blackboard blackboard,
SearchMessage query)
throws ProcessingException
process in interface WorkflowProcessorworkflowName - name of workflow to execute on message.blackboard - blackboard to use for processingquery - Id of query record. The record Id list in this will be null, usually.
ProcessingException - error during processing.WorkflowProcessor.process(java.lang.String,
org.eclipse.smila.blackboard.Blackboard, org.eclipse.smila.processing.SearchMessage)public java.util.List<java.lang.String> getWorkflowNames()
getWorkflowNames in interface WorkflowProcessorprotected ProcessingService getProcessingService(java.lang.String name)
name - name of processing service
protected SearchProcessingService getSearchProcessingService(java.lang.String name)
name - name of searchprocessing service
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 setProcessingService(ServiceReference serviceReference)
serviceReference - service reference to add.protected void unsetProcessingService(ServiceReference serviceReference)
serviceReference - service reference to remove.protected void setSearchProcessingService(ServiceReference serviceReference)
serviceReference - service reference to add.protected void unsetSearchProcessingService(ServiceReference serviceReference)
serviceReference - service reference to remove.protected void activate(ComponentContext context)
context - OSGi service component context.protected void deactivate(ComponentContext context)
context - OSGi service component context.
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||