def create_flow(activation, **kwargs):
    activation.prepare()
activation.done()
return activation


class FunctionFlow(Flow):
    start = flow.StartFunction(create_flow).Next(this.end)
FunctionFlow.start.run(**some_kwargs)
Как программно создать процесс django ViewFlow