public class DBLiteWorkflowLib extends LiteWorkflowLib
| Constructor and Description |
|---|
DBLiteWorkflowLib(javax.xml.validation.Schema schema,
java.lang.Class<? extends ControlNodeHandler> controlNodeHandler,
java.lang.Class<? extends DecisionNodeHandler> decisionHandlerClass,
java.lang.Class<? extends ActionNodeHandler> actionHandlerClass,
java.sql.Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close store.
|
void |
commit()
Commit changes to store.
|
void |
delete(java.lang.String id)
Delets the Workflow Instance with the given id.
|
WorkflowInstance |
get(java.lang.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(javax.xml.validation.Schema schema, java.lang.Class<? extends ControlNodeHandler> controlNodeHandler, java.lang.Class<? extends DecisionNodeHandler> decisionHandlerClass, java.lang.Class<? extends ActionNodeHandler> actionHandlerClass, java.sql.Connection connection)
public void insert(WorkflowInstance instance) throws WorkflowException
instance - WorkflowExceptionpublic WorkflowInstance get(java.lang.String id) throws WorkflowException
id - WorkflowExceptionpublic void update(WorkflowInstance instance) throws WorkflowException
instance - WorkflowExceptionpublic void delete(java.lang.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 © 2019 Apache Software Foundation. All Rights Reserved.