public class DBLiteWorkflowLib extends LiteWorkflowLib
| Constructor and Description |
|---|
DBLiteWorkflowLib(Schema schema,
Class<? extends ControlNodeHandler> controlNodeHandler,
Class<? extends DecisionNodeHandler> decisionHandlerClass,
Class<? extends ActionNodeHandler> actionHandlerClass,
Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close store.
|
void |
commit()
Commit changes to store.
|
void |
delete(String id)
Delets the Workflow Instance with the given id.
|
WorkflowInstance |
get(String id)
Loads the Workflow instance with the given ID.
|
void |
insert(WorkflowInstance instance)
Save the Workflow Instance for the given Workflow Application.
|
void |
update(WorkflowInstance instance)
Updates the Workflow Instance to DB.
|
createInstance, createInstance, parseDefpublic DBLiteWorkflowLib(Schema schema, Class<? extends ControlNodeHandler> controlNodeHandler, Class<? extends DecisionNodeHandler> decisionHandlerClass, Class<? extends ActionNodeHandler> actionHandlerClass, Connection connection)
public void insert(WorkflowInstance instance) throws WorkflowException
instance - WorkflowExceptionpublic WorkflowInstance get(String id) throws WorkflowException
id - WorkflowExceptionpublic void update(WorkflowInstance instance) throws WorkflowException
instance - WorkflowExceptionpublic void delete(String id) throws WorkflowException
id - WorkflowExceptionpublic void commit() throws WorkflowException
WorkflowLibWorkflowException - thrown if the commit could not be done.public void close() throws WorkflowException
WorkflowLibWorkflowException - thrown if the close could not be done.Copyright © 2014 Apache Software Foundation. All Rights Reserved.