Class RequestState
java.lang.Object
org.exoplatform.processes.util.RequestState
A request's progress, read from its own state and never from the columns of
its task project, which may have any names and any number: pending while its
task is not completed, cancelled when its requester cancelled it and its
task is completed, closed (decided by a manager) when its task is completed
otherwise. The column the task sits in is a label only.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCanceled(Work work) Tells whether the requester cancelled a request still closed.static booleanTells whether a manager closed a request: its task is completed and its requester did not cancel it.static booleanisFinished(Work work) Tells whether a request changes no more unless reopened: decided or cancelled, which « Archive all » archives.static booleanTells whether a request waits for a decision: its task is not completed, whatever its column; a request reopened after a cancel is pending again.
-
Method Details
-
isPending
Tells whether a request waits for a decision: its task is not completed, whatever its column; a request reopened after a cancel is pending again.- Parameters:
work- the request- Returns:
- true when pending
-
isCanceled
Tells whether the requester cancelled a request still closed.- Parameters:
work- the request- Returns:
- true when its task is completed and its record says cancelled
-
isDecided
Tells whether a manager closed a request: its task is completed and its requester did not cancel it. The column it sits in words the outcome.- Parameters:
work- the request- Returns:
- true when decided
-
isFinished
Tells whether a request changes no more unless reopened: decided or cancelled, which « Archive all » archives.- Parameters:
work- the request- Returns:
- true when its task is completed
-