Sets the workflow for passed content type or object. See the specific methods for more information.
Parameters:
Sets the passed workflow to the passed object.
If the object has already the given workflow nothing happens. Otherwise the object gets the passed workflow and the state is set to the workflow’s initial state.
Parameters:
Sets the passed workflow to the passed content type. If the content type has already an assigned workflow the workflow is overwritten.
The objects which had the old workflow must updated explicitely.
Parameters:
Removes the workflow from the passed content type or object. After this function has been called the content type or object has no workflow anymore.
If ctype_or_obj is an object the workflow is removed from the object not from the belonging content type.
If ctype_or_obj is an content type the workflow is removed from the content type not from instances of the content type (if they have an own workflow)
Removes the workflow from the passed object. After this function has been called the object has no own workflow anymore (it might have one via its content type).
Removes the workflow from passed content type. After this function has been called the content type has no workflow anymore (the instances might have own ones).
Returns the workflow for the passed object. It takes it either from the passed object or - if the object doesn’t have a workflow - from the passed object’s ContentType.
Parameters:
Returns the workflow for the passed object.
Parameters:
Returns the workflow for the passed model.
Parameters:
Returns all objects which have passed workflow.
Parameters:
Returns the current workflow state for the passed object.
Parameters:
Sets the state for the passed object to the passed state and updates the permissions for the object.
Parameters:
Returns all allowed transitions for passed object and user. Takes the current state of the object into account.
Parameters:
A workflow consists of a sequence of connected (through transitions) states. It can be assigned to a model and / or model instances. If a model instance has a workflow it takes precendence over the model’s workflow.
Attributes:
Sets the workflow to passed content type or object. See the specific methods for more information.
Parameters:
Sets the workflow to the passed content type. If the content type has already an assigned workflow the workflow is overwritten.
Parameters:
Sets the workflow to the passed object.
If the object has already the given workflow nothing happens. Otherwise the workflow is set to the objectthe state is set to the workflow’s initial state.
Parameters:
A certain state within workflow.
Attributes:
A transition from a source to a destination state. The transition can be used from several source states.
Attributes:
Stores the workflow state of an object.
Provides a way to give any object a workflow state without changing the object’s model.
Attributes:
Stores the permissions for which a workflow is responsible.
Attributes:
Stores granted permission for state and role.
Attributes: