I have a typical workflow like below:
Start -> Notify -> Task -> End
Within the Notify step which sends out an email to someone need to perform the task, I want to include the url that goes directly to the "Task" assign page, is it possible?
My problem is, during the Notify step I don't think the Task step has been created in database yet, so cannot generate the url.
UPDATE:
Thanks for the answer, posting the code to generate the assign url:
def handler(self, activation):
process = activation.process
path = reverse('viewflow:connect:new_request/flow/newrequest:{}__assign'.format(activation.flow_task.name), args=[process.pk, activation.task.pk])
You could add it as flow.View(...).onCreate handler