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, parseDef
public 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
- WorkflowException
public WorkflowInstance get(String id) throws WorkflowException
id
- WorkflowException
public void update(WorkflowInstance instance) throws WorkflowException
instance
- WorkflowException
public void delete(String id) throws WorkflowException
id
- WorkflowException
public void commit() throws WorkflowException
WorkflowLib
WorkflowException
- thrown if the commit could not be done.public void close() throws WorkflowException
WorkflowLib
WorkflowException
- thrown if the close could not be done.Copyright © 2018 Apache Software Foundation. All rights reserved.