Dashboard > OSWorkflow > ... > Documentation > 5.1 Interface choices
  OSWorkflow Log In View a printable version of the current page.  
  5.1 Interface choices
Added by Cameron Braid, last edited by Hani Suleiman on Apr 20, 2004  (view change)
Labels: 
(None)

OSWorkflow provides several implementations of the com.opensymphony.workflow.Workflow interface that can be used in your application.

BasicWorkflow

The BasicWorkflow has no transactional support, though depending upon your persistence implementation, transactional support can be wrapped around this. It is created by doing

Workflow wf = new BasicWorkflow(username)
where username is the user who is associated with the current request.

EJBWorkflow

The EJB workflow uses the EJB container to manage transactions. This is configured in ejb-jar.xml. It is created by doing

Workflow wf = new EJBWorkflow()
. There is no need to give the username (as in BasicWorkflow and OfbizWorkflow) since that is automatically pulled in from the EJB container once the user has been authorized.

OfbizWorkflow

The OfbizWorkflow is exactly like the BasicWorkflow in every way, except that methods that require transactional support are wrapped with ofbiz TransactionUtil calls.

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators