|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WorkflowLib
The workflow library provides application parsing and storage capabilities for workflow instances.
The implementation is responsible for doing the store operations in a transactional way, either in autocommit or within the scope of a transaction.
| Method Summary | |
|---|---|
void |
close()
Close store. |
void |
commit()
Commit changes to store. |
WorkflowInstance |
createInstance(WorkflowApp app,
org.apache.hadoop.conf.Configuration conf)
Create a workflow instance. |
WorkflowInstance |
createInstance(WorkflowApp app,
org.apache.hadoop.conf.Configuration conf,
java.lang.String wfId)
Create a workflow instance with the given wfId. |
void |
delete(java.lang.String id)
Delete a workflow instance from storage. |
WorkflowInstance |
get(java.lang.String id)
Load a workflow instance from storage. |
void |
insert(WorkflowInstance instance)
Insert a workflow instance in storage. |
WorkflowApp |
parseDef(java.lang.String wfXml)
Parse a workflow application definition. |
void |
update(WorkflowInstance instance)
Update a workflow instance in storage. |
| Method Detail |
|---|
WorkflowApp parseDef(java.lang.String wfXml)
throws WorkflowException
wfXml - string containing the workflow definition.
WorkflowException - thrown if the definition could not be parsed.
WorkflowInstance createInstance(WorkflowApp app,
org.apache.hadoop.conf.Configuration conf)
throws WorkflowException
app - application to create a workflow instance of.conf - job configuration.
WorkflowException - thrown if the instance could not be created.
WorkflowInstance createInstance(WorkflowApp app,
org.apache.hadoop.conf.Configuration conf,
java.lang.String wfId)
throws WorkflowException
app - application to create a workflow instance of.conf - job configuration.wfId - Workflow ID.
WorkflowException - thrown if the instance could not be created.
void insert(WorkflowInstance instance)
throws WorkflowException
instance - of the workflow instance to insert.
WorkflowException - thrown if the instance could not be inserted.
WorkflowInstance get(java.lang.String id)
throws WorkflowException
id - ID of the workflow instance to load.
WorkflowException - thrown if the instance could not be loaded.
void update(WorkflowInstance instance)
throws WorkflowException
instance - workflow instance to update.
WorkflowException - thrown if the instance could not be loaded.
void delete(java.lang.String id)
throws WorkflowException
id - ID of the workflow instance to delete.
WorkflowException - thrown if the instance could not be deleted.
void commit()
throws WorkflowException
WorkflowException - thrown if the commit could not be done.
void close()
throws WorkflowException
WorkflowException - thrown if the close could not be done.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||