Package cubicweb :: Package hooks :: Module workflow
[hide private]
[frames] | no frames]

Module workflow

source code

Core hooks: workflow related hooks
Classes [hide private]
  _SetInitialStateOp
make initial state be a default state
  _FireAutotransitionOp
try to fire auto transition after state changes
  _WorkflowChangedOp
fix entity current state when changing its workflow
  _CheckTrExitPoint
  _SubWorkflowExitOp
  WorkflowHook
  SetInitialStateHook
  PrepareStateChangeHook
record previous state information
  FireTransitionHook
check the transition is allowed, add missing information. Expect that: * wf_info_for inlined relation is set * by_transition or to_state (managers only) inlined relation is set
  FiredTransitionHook
change related entity state
  CheckInStateChangeAllowed
check state apply, in case of direct in_state change using unsafe execute
  SetModificationDateOnStateChange
update entity's modification date after changing its state
  CheckWorkflowTransitionExitPoint
check that there is no multiple exits from the same state
  SetCustomWorkflow
  DelCustomWorkflow
Functions [hide private]
 
_change_state(session, x, oldstate, newstate) source code