|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bigbross.bossa.wfnet.CaseTypeManager
This class manages all registered case types of the workflow system. It provides all the case type life cycle functions and is the entry point of the WFNet package.
| Constructor Summary | |
CaseTypeManager()
Creates a new empty case type manager. |
|
CaseTypeManager(Bossa engine)
Creates a new empty case type manager. |
|
| Method Summary | |
List |
getActivities()
Returns the list of all activities of all registered case types. |
CaseType |
getCaseType(String id)
Returns the case type with the provided id. |
List |
getCaseTypes()
Returns all registered case types. |
List |
getWorkItems()
Returns the list of all work items of all registered case types. |
List |
getWorkItems(boolean getInitial)
Returns the list of all work items of all registered case types. |
boolean |
registerCaseType(CaseType caseType)
Registers a new case type in the manager. |
boolean |
registerCaseType(String file)
Registers a new case type read from a PNML file in the manager. |
boolean |
registerCaseTypeImpl(CaseType caseType)
Registers a new case type in the manager. |
void |
removeCaseType(String id)
Removes the case type from the manager, if present. |
void |
removeCaseTypeImpl(String id)
Removes the case type from the manager, if present. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CaseTypeManager(Bossa engine)
engine - the bossa engine this case type manager is part.public CaseTypeManager()
| Method Detail |
public boolean registerCaseType(CaseType caseType)
throws BossaException
caseType - the case type.
true if the case type is registered,
false if there is already a case type
registered with the same id.
PersistenceException - if an error occours when making the
execution of this method persistent.
BossaException
public boolean registerCaseType(String file)
throws BossaException
file - the PNML file.
true if the case type is registered,
false if there is already a case type
registered with the same id.
DataTransferException - if an error happens reading or parsing
the PNML file.
SetAttributeException - if the underlying expression
evaluation system has problems setting an attribute.
EvaluationException - if an expression evaluation error
occurs.
PersistenceException - if an error occours when making the
execution of this method persistent.
BossaExceptionpublic boolean registerCaseTypeImpl(CaseType caseType)
This method does not create a transaction in the prevalent system. The execution of this method will not be persistent unless it is called inside an appropriate transaction.
caseType - the CaseType object containing the
case type.
true if the case type is registered,
false if there is already a case type
registered with the same id.
public void removeCaseType(String id)
throws BossaException
id - the id of the case type.
PersistenceException - if an error occours when making the
execution of this method persistent.
BossaExceptionpublic void removeCaseTypeImpl(String id)
This method does not create a transaction in the prevalent system. The execution of this method will not be persistent unless it is called inside an appropriate transaction.
id - the id of the case type.public CaseType getCaseType(String id)
id - the id of the desired case type.
null otherwise.public List getCaseTypes()
public List getWorkItems()
public List getWorkItems(boolean getInitial)
getInitial - set to true to get the initial work
items and to false to only get the
standard work items.
public List getActivities()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||