|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WorkflowableV1
DEV (not released yet, this interface still might change ...) <br/> A workflow is composed of states and transitions. Each revision of a workflowable resource has a state, which can be changed by performing transitions. Transitions may be bound to conditions or actions, but this is implementation specific. Further, a workflowable resource can be live, or not live. If it is live, it must provide a live-view. The workflow information of a resource can be stored in two types of properties: <ul> <li> workflow state: property which belongs to a revision. </li> <li> workflow variable: property which belongs to a resource (shared among all revisions). </li> </ul> Typically, the workflow state of a revision is something like draft/approved. A workflow variable may e.g. store the revision number of the live revision.
| Method Summary | |
|---|---|
void |
doTransition(java.lang.String transitionID,
java.lang.String revision)
Perform the transition with the given id to the indicated revision. |
View |
getLiveView(java.lang.String viewid)
Gets the view of the live version of this resource. |
java.util.Date |
getWorkflowDate(java.lang.String revision)
Gets the workflow date of the given revision, that is the date when the state has changed. |
java.lang.String |
getWorkflowIntrospection()
Gets the introspection xml containing the workflow information. |
java.lang.String |
getWorkflowState(java.lang.String revision)
Gets the workflow state of the given revision. |
java.lang.String |
getWorkflowVariable(java.lang.String name)
Gets the workflow variable with the given name. |
boolean |
isLive()
Indicates whether this resource is live or not. |
void |
removeWorkflowVariable(java.lang.String name)
Removes the workflow variable with the given name. |
void |
setWorkflowState(java.lang.String state,
java.lang.String revision)
Sets the workflow state of the given revision, for example a "review" status |
void |
setWorkflowVariable(java.lang.String name,
java.lang.String value)
Sets the workflow variable with the given name, for example a "live" flag |
| Method Detail |
|---|
void doTransition(java.lang.String transitionID,
java.lang.String revision)
throws WorkflowException
transitionID - revision -
WorkflowException
boolean isLive()
throws WorkflowException
WorkflowException
View getLiveView(java.lang.String viewid)
throws java.lang.Exception
viewid -
java.lang.Exception
java.lang.String getWorkflowState(java.lang.String revision)
throws WorkflowException
revision -
WorkflowException
void setWorkflowState(java.lang.String state,
java.lang.String revision)
throws WorkflowException
state - revision -
WorkflowException
java.util.Date getWorkflowDate(java.lang.String revision)
throws WorkflowException
revision -
WorkflowException
java.lang.String getWorkflowVariable(java.lang.String name)
throws WorkflowException
name -
WorkflowException
void setWorkflowVariable(java.lang.String name,
java.lang.String value)
throws WorkflowException
name - value -
WorkflowException
void removeWorkflowVariable(java.lang.String name)
throws WorkflowException
name -
WorkflowException
java.lang.String getWorkflowIntrospection()
throws WorkflowException
WorkflowException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||