|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bigbross.bossa.wfnet.Activity
This class represents an open (firing) work item.
| Method Summary | |
boolean |
cancel()
Cancel this activity. |
boolean |
close()
Closes and finishes this activity. |
boolean |
close(Map attributes)
Closes and finishes an activity. |
Case |
getCase()
Returns the case of this activity. |
CaseType |
getCaseType()
Returns the case type of this activity. |
int |
getId()
Returns the id of this activity. |
Resource |
getResource()
Returns the resource responsible by this activity. |
String |
getWorkItemId()
Returns the id of the work item that created this activity. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public int getId()
public Resource getResource()
public String getWorkItemId()
public CaseType getCaseType()
public Case getCase()
public boolean close()
throws BossaException
true if the activity is succesfully opened,
false otherwise.
SetAttributeException - if the underlying expression
evaluation system has problems setting an attribute.
EvaluationException - if an expression evaluation error
occurs. If this exception is thrown the state of the case
may be left inconsistent.
PersistenceException - if an error occours when making the
execution of this method persistent.
BossaException
public boolean close(Map attributes)
throws BossaException
An attribute mapping should be passed when this method is called.
This is a (String, Object) mapping of
variables names (as used in edge weight expressions) and Java objects.
The Java objects should be understandable by the underlying BSF
engine being used (for JavaScript, Boolean,
Integer and String are known to work).
The attributes provided will overwrite current set attributes and
the value of these attributes will be used when evaluating edge
weights.
attributes - the attributes mapping.
true if the activity is succesfully opened,
false otherwise.
SetAttributeException - if the underlying expression
evaluation system has problems setting an attribute.
EvaluationException - if an expression evaluation error
occurs. If this exception is thrown the state of the case
may be left inconsistent.
PersistenceException - if an error occours when making the
execution of this method persistent.
BossaException
public boolean cancel()
throws BossaException
true if the activity is succesfully canceled,
false otherwise.
EvaluationException - if an expression evaluation error
occurs. If this exception is thrown the state of the case
may be left inconsistent.
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 | ||||||||||