|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WorkflowProcessor
Interface of WorkflowProcessors. A workflow orchestrates a set of SMILA pipelets (or other components) to process SMILA records. It may use deliberate workflow definition languages, e.g. BPEL.
| Field Summary | |
|---|---|
static java.lang.String |
NAMESPACE_PROCESSOR
namespace of SMILA BPEL process names. |
static java.lang.String |
WORKFLOW_DEFINITION
key in workflow definitions for the definition of the workflow. |
static java.lang.String |
WORKFLOW_NAME
key in workflow definitions for the name of the workflow. |
static java.lang.String |
WORKFLOW_READONLY
key in workflow definitions for the readOnly flag, set in getWorkflowDefinition(String) results for
predefined workflows. |
static java.lang.String |
WORKFLOW_TIMESTAMP
key in workflow definitions for the timestamp of the workflow, set automatically when defining the workflow. |
| Method Summary | |
|---|---|
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 names of the currently active workflows. |
java.lang.String[] |
process(java.lang.String workflowName,
Blackboard blackboard,
java.lang.String[] recordIds)
process records on Blackboard service. |
void |
setWorkflowDefinition(java.lang.String workflowName,
AnyMap workflowDefinition)
|
void |
synchronizeWorkflowDefinition(java.lang.String workflowName,
boolean isDeleted)
reload the workflow definition from persistence and deploy it, or undeploy it. |
| Field Detail |
|---|
static final java.lang.String NAMESPACE_PROCESSOR
static final java.lang.String WORKFLOW_NAME
static final java.lang.String WORKFLOW_TIMESTAMP
static final java.lang.String WORKFLOW_DEFINITION
static final java.lang.String WORKFLOW_READONLY
getWorkflowDefinition(String) results for
predefined workflows.
| Method Detail |
|---|
java.lang.String[] process(java.lang.String workflowName,
Blackboard blackboard,
java.lang.String[] recordIds)
throws ProcessingException
workflowName - name of workflow to execute on Idsblackboard - blackboard to use for processingrecordIds - Ids of records to process.
ProcessingException - error during processing.java.util.List<java.lang.String> getWorkflowNames()
AnyMap getWorkflowDefinition(java.lang.String workflowName)
throws ProcessingException
workflowName - The workflow name
ProcessingException - error reading the definition.
void setWorkflowDefinition(java.lang.String workflowName,
AnyMap workflowDefinition)
throws ProcessingException
workflowName - The workflow nameworkflowDefinition - contains the workflow to add/update and deploy
ProcessingException - error during deploy
void deleteWorkflowDefinition(java.lang.String workflowName)
throws ProcessingException
workflowName - The workflow name to delete and undeploy
ProcessingException - error during undeploy
void synchronizeWorkflowDefinition(java.lang.String workflowName,
boolean isDeleted)
throws ProcessingException
workflowName - 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.
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||