com.bigbross.bossa
Class Bossa

java.lang.Object
  extended bycom.bigbross.bossa.Bossa
All Implemented Interfaces:
Serializable

public class Bossa
extends Object
implements Serializable

This class represents a workflow engine in the Bossa workflow library. Use an instance of this class, created by the factory class BossaFactory, to access all elements of the Bossa API.

Author:
BigBross Team
See Also:
BossaFactory, Serialized Form

Method Summary
 Object execute(BossaTransaction transaction)
          Executes a transaction using the current prevayler.
 CaseTypeManager getCaseTypeManager()
          Returns the case type manager of this engine.
 Historian getHistorian()
          Returns the historian of this engine.
 NotificationBus getNotificationBus()
          Returns the notification bus of this engine.
 ResourceManager getResourceManager()
          Returns the resource manager of this engine.
 TimeSource getTimeSource()
          Returns the time source of this engine.
 WorkManager getWorkManager()
          Returns the work manager of this engine.
 void takeSnapshot()
          Writes to disk the complete object tree of this engine instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

execute

public Object execute(BossaTransaction transaction)
               throws BossaException
Executes a transaction using the current prevayler.

Parameters:
transaction - the transaction to be executed.
Returns:
the value returned by the transaction.
Throws:
BossaException - if the transaction throws an exception.

takeSnapshot

public void takeSnapshot()
                  throws IOException
Writes to disk the complete object tree of this engine instance.

Throws:
IOException

getCaseTypeManager

public CaseTypeManager getCaseTypeManager()
Returns the case type manager of this engine.

Returns:
the case type manager of this engine.

getResourceManager

public ResourceManager getResourceManager()
Returns the resource manager of this engine.

Returns:
the resource manager of this engine.

getWorkManager

public WorkManager getWorkManager()
Returns the work manager of this engine.

Returns:
the work manager of this engine.

getHistorian

public Historian getHistorian()
Returns the historian of this engine.

Returns:
the historian of this engine.

getTimeSource

public TimeSource getTimeSource()
Returns the time source of this engine.

Returns:
the time source of this engine.

getNotificationBus

public NotificationBus getNotificationBus()
Returns the notification bus of this engine.

Returns:
the notification bus of this engine.


Copyright © 2003,2004 OpenBR Sistemas S/C Ltda.