adhocracy_core.workflows.schemas module¶
Data structures for Workflows.
-
class
WorkflowCallback(*arg, **kw)[source]¶ Bases:
adhocracy_core.schema.SchemaNodeCallable executed if this transition is called or state is entered.
It needs to provide the following signature:
context: IResource, workflow: IWorkflow=None, transition= dict:None, request=None
-
missing= None¶
-
default= None¶
-
-
class
TransitionMeta(*arg, **kw)[source]¶ Bases:
adhocracy_core.schema.MappingSchemaWorkflow transition to state.
-
class
StateMeta(*arg, **kw)[source]¶ Bases:
adhocracy_core.schema.MappingSchemaWorkflow state.
-
display_only_to_roles= None¶ Hint for the fronted, this is not security related.
-
-
class
WorkflowMeta(*arg, **kw)[source]¶ Bases:
adhocracy_core.schema.MappingSchemaData structure to define a workflow (finite state machine).