| |
|
| java.lang.Object com.bigbross.bossa.wfnet.WorkItem
WorkItem | public class WorkItem implements Serializable(Code) | | This class represents a transition of a specific case instance.
We use a somewhat non standard definition of a work item: instead of
a fireable transition a work item is a likely
fireable transition. All methods of this class account for this
and it is possible to discover in advance if a work item is actually
fireable without opening it.
author: BigBross Team |
WorkItem | WorkItem(Case caze, Transition transition, boolean fireable)(Code) | | Creates a new work item.
Parameters: caze - the case. Parameters: transition - the transition. Parameters: fireable - the work item fireable status. |
canBePerformedBy | public boolean canBePerformedBy(Resource resource)(Code) | | Indicates if this work item can be open by the provided resource.
Parameters: resource - the resource. true if the resource can open this work item;false otherwise. |
getCase | public Case getCase()(Code) | | Returns the case of this work item.
the case of this work item. |
getCaseType | public CaseType getCaseType()(Code) | | Returns the case type of this work item.
the case type of this work item. |
getId | public String getId()(Code) | | Returns the id of this work item. It is the same id of the
transition this work item represents.
the id of this work item. |
getTransition | Transition getTransition()(Code) | | Returns the transition this work item represents.
the transition this work item represents. |
isFireable | public boolean isFireable()(Code) | | Indicates if this work item is fireable.
true if the work item is fireable;false otherwise. |
open | public Activity open(Resource resource) throws BossaException(Code) | | Opens this work item. A open work item is represented by
an activity and is locked to the resource who opened it. The actual
completion of the work item in handled by the created activity.
Parameters: resource - the resource that is opening the work item. the activity created by the opening of this work item,null if the work item could not be opened. exception: EvaluationException - if an expression evaluation erroroccurs. If this exception is thrown the state of the casemay be left inconsistent. exception: PersistenceException - if an error occours when making theexecution of this method persistent. |
update | boolean update() throws EvaluationException(Code) | | Updates the firing status of this work item.
true if the work item is fireable,false otherwise. exception: EvaluationException - if an expression evaluation erroroccurs. |
|
|
|