How to create a django ViewFlow process programmatically

There are two additional Start build-in Tasks available for Flows StartFunction – starts flow when the function called somewhere: @flow_start_func def create_flow(activation, **kwargs): activation.prepare() activation.done() return activation class FunctionFlow(Flow): start = flow.StartFunction(create_flow) \ .Next(this.end) # somewhere in the code FunctionFlow.start.run(**some_kwargs) StartSignal – starts flow on django signal receive: class SignalFlow(Flow): start = flow.StartSignal(some_signal, create_flow) \ … Read more