workflow – Workflow Components Module

Workflow components of general use.

class waeup.kofa.workflow.KofaWorkflow(transitions)[source]

Bases: hurry.workflow.workflow.Workflow

A hurry.workflow workflow with more appropriate error messages.

__doc__ = 'A :mod:`hurry.workflow` workflow with more appropriate error\n messages.\n '
__module__ = 'waeup.kofa.workflow'
getTransition(source, transition_id)[source]
class waeup.kofa.workflow.KofaWorkflowInfo(context)[source]

Bases: hurry.workflow.workflow.WorkflowInfo

A workflow info that provides a convenience transition getter.

__doc__ = 'A workflow info that provides a convenience transition getter.\n '
__module__ = 'waeup.kofa.workflow'
getManualTransitions()[source]

Get allowed manual transitions.

Get a sorted list of tuples containing the transition_id and title of each allowed transition.

class waeup.kofa.workflow.WorkflowNullVersions[source]

Bases: hurry.workflow.workflow.WorkflowVersions

A workflow versions manager that does not handle versions.

Sounds odd, but the default implementation of hurry.workflow.workflow.WorkflowVersions is a base implementation that raises NotImplemented exceptions for most of the methods defined below.

If we want to register a versionless workflow, an utility implementing IWorkflowVersions is looked up nevertheless by WorkflowInfo and WorkflowState components so we have to provide workflow versions, even if we do not support versioned workflows.

This implementation returns empty result sets for any requests, but does not raise NotImplemented.

__doc__ = 'A workflow versions manager that does not handle versions.\n\n Sounds odd, but the default implementation of\n :class:`hurry.workflow.workflow.WorkflowVersions` is a base\n implementation that raises :exc:`NotImplemented` exceptions for\n most of the methods defined below.\n\n If we want to register a versionless workflow, an utility\n implementing IWorkflowVersions is looked up nevertheless by\n WorkflowInfo and WorkflowState components so we **have** to\n provide workflow versions, even if we do not support versioned\n workflows.\n\n This implementation returns empty result sets for any requests,\n but does not raise :exc:`NotImplemented`.\n '
__module__ = 'waeup.kofa.workflow'
getVersions(state, id)[source]
getVersionsWithAutomaticTransitions()[source]
hasVersion(id, state)[source]
hasVersionId(id)[source]