|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bigbross.bossa.wfnet.Case
This class represents a specific instance of a case type. It holds the current state of a case.
| Method Summary | |
boolean |
closeCase()
Closes this case. |
List |
getActivities()
Returns a list of activities associated with this case. |
Activity |
getActivity(int id)
Returns a specific activity, selected by its id. |
Map |
getAttributes()
Returns the current attributes of this case. |
CaseType |
getCaseType()
Returns the case type of this case. |
int |
getId()
Returns the id of this case. |
List |
getResources()
Returns all local resources of this case. |
Map |
getState()
Returns the state of the case, that is, how many tokens are in each place. |
WorkItem |
getWorkItem(String id)
Returns a specific work item, selected by its id. |
List |
getWorkItems()
Returns the list of currently fireable work items associated with this case. |
void |
setState(Map state)
Changes the state of the case, that is, how many tokens are in each place. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public int getId()
public CaseType getCaseType()
public List getResources()
public Map getState()
String,
Integer), indexed by the place id.
public void setState(Map state)
throws BossaException
state - the token count as a map (String,
Integer), indexed by the place id. Only the
places present in this map have their token count modified,
the others are unchanged.
EvaluationException - if an expression evaluation error
occurs. If this exception is thrown the state of this case
may be left inconsistent.
BossaExceptionpublic Map getAttributes()
String,
Object) of variables names (as used in
edge weight expressions) and Java objects.public List getWorkItems()
public WorkItem getWorkItem(String id)
id - the work item id.
null if there is no work item
with this id.public List getActivities()
public Activity getActivity(int id)
id - the activity id.
null if there is no activity
with this id.
public boolean closeCase()
throws BossaException
true if the case could be closed,
false otherwise.
PersistenceException - if an error occours when making the
execution of this method persistent.
BossaException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||