public class DecisionQueue extends java.lang.Object implements java.io.Serializable
| Constructor and Description |
|---|
DecisionQueue()
Constructs a new DecisionQueue.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(Decision decision)
Adds a Decision to the DecisionQueue; also sets the Decision's unique identifier.
|
void |
decide(Decision decision,
Outcome outcome,
Context context)
Attempts to complete a Decision by calling
Decision.decide(Outcome, Context). |
protected Decision[] |
decisions()
Protected method that returns all pending Decisions in the queue, in order of submission.
|
java.util.Collection<Decision> |
getActorDecisions(Session session)
Returns a Collection representing the current Decisions that pertain to a users's Session.
|
void |
reassign(Decision decision,
java.security.Principal owner)
Reassigns the owner of the Decision to a new owner.
|
protected void |
remove(Decision decision)
Protected method that removes a Decision from the queue.
|
public DecisionQueue()
protected void add(Decision decision)
decision - the Decision to addprotected Decision[] decisions()
protected void remove(Decision decision)
decision - the decision to removepublic java.util.Collection<Decision> getActorDecisions(Session session)
Decision.getActor() value match. If the session
is not authenticated, this method returns an empty Collection.session - the wiki sessionpublic void decide(Decision decision, Outcome outcome, Context context) throws WikiException
Decision.decide(Outcome, Context). This will cause the Step immediately following the
Decision (if any) to start. If the decision completes successfully, this method also removes the completed decision from the queue.decision - the Decision for which the Outcome will be suppliedoutcome - the Outcome of the DecisionWikiException - if the succeeding Step cannot start for any reasonpublic void reassign(Decision decision, java.security.Principal owner) throws WikiException
Decision.reassign(Principal).decision - the Decision to reassignowner - the new ownerWikiException - neverCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.