|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springmodules.workflow.jbpm31.JbpmAccessor
org.springmodules.workflow.jbpm31.JbpmTemplate
org.alfresco.repo.workflow.jbpm.JBPMTransactionTemplate
public class JBPMTransactionTemplate
JBPM Template that manages JBPM Context at the Alfresco Transaction level
Field Summary |
---|
Fields inherited from class org.springmodules.workflow.jbpm31.JbpmAccessor |
---|
jbpmConfiguration |
Constructor Summary | |
---|---|
JBPMTransactionTemplate()
|
|
JBPMTransactionTemplate(org.jbpm.JbpmConfiguration jbpmConfiguration)
|
|
JBPMTransactionTemplate(org.jbpm.JbpmConfiguration jbpmConfiguration,
org.jbpm.graph.def.ProcessDefinition processDefinition)
|
Method Summary | |
---|---|
void |
afterCommit()
Invoked after transaction commit. |
void |
afterPropertiesSet()
|
void |
afterRollback()
Invoked after transaction rollback. |
void |
beforeCommit(boolean readOnly)
Called before a transaction is committed. |
void |
beforeCompletion()
Invoked before transaction commit/rollback. |
boolean |
equals(java.lang.Object obj)
|
void |
flush()
|
protected org.jbpm.JbpmContext |
getContext()
|
int |
hashCode()
|
protected void |
releaseContext(org.jbpm.JbpmContext jbpmContext)
|
Methods inherited from class org.springmodules.workflow.jbpm31.JbpmTemplate |
---|
execute, findPooledTaskInstances, findPooledTaskInstances, findProcessInstance, findProcessInstances, findTaskInstances, findTaskInstances, findTaskInstances, findTaskInstancesByToken, findTaskInstancesByToken, getContextName, getHibernateTemplate, getProcessDefinition, saveProcessInstance, setContextName, setHibernateTemplate, setProcessDefinition, signal, signal, signal |
Methods inherited from class org.springmodules.workflow.jbpm31.JbpmAccessor |
---|
convertJbpmException, getJbpmConfiguration, setJbpmConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JBPMTransactionTemplate()
public JBPMTransactionTemplate(org.jbpm.JbpmConfiguration jbpmConfiguration, org.jbpm.graph.def.ProcessDefinition processDefinition)
public JBPMTransactionTemplate(org.jbpm.JbpmConfiguration jbpmConfiguration)
Method Detail |
---|
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springmodules.workflow.jbpm31.JbpmTemplate
java.lang.Exception
protected org.jbpm.JbpmContext getContext()
getContext
in class org.springmodules.workflow.jbpm31.JbpmTemplate
protected void releaseContext(org.jbpm.JbpmContext jbpmContext)
releaseContext
in class org.springmodules.workflow.jbpm31.JbpmTemplate
public void flush()
flush
in interface TransactionListener
public void beforeCommit(boolean readOnly)
All transaction resources are still available.
beforeCommit
in interface TransactionListener
readOnly
- true if the transaction is read-onlypublic void beforeCompletion()
TransactionListener.beforeCommit(boolean)
even if TransactionListener.beforeCommit(boolean)
failed.
Any exceptions generated here will only be logged and will have no effect on the state of the transaction.
All transaction resources are still available.
beforeCompletion
in interface TransactionListener
public void afterCommit()
Any exceptions generated here will cause the transaction to rollback.
Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.
afterCommit
in interface TransactionListener
public void afterRollback()
Although all transaction resources are still available, this method should be used only for cleaning up resources after a rollback has occured.
afterRollback
in interface TransactionListener
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |