I'm using ViewFlow/Django and I've defined Flow which includes 10 steps.
Suppose I have all the relevant data for the first 5 steps.
How can I programatically start my flow, save the data for these steps and jump directly to step 6?
The problem is that I have the flow working with the frontend but now I want to do the first 5 steps from the API. I added this to my flow:
class MyFlow(Flow):
@method_decorator(flow_start_func)
def create_request(self, activation, **kwargs):
activation.prepare()
activation.done()
return activation
start_from_code = StartFunction(this.create_request). \
Next(this.my_first_step_in_a_flow)
but I'm doing something wrong, since when I try to run with:
MainOnBoardingFlow.start_from_code.run()
i get NotImplementedError