I need to email owner when task is assigned to them. I tried following ways:
Assignaccepts a callable function which should return task owner. We can send email in this callable function. But if you read source code, you will find that this callable method is called multiple times, bycalc_ownerfunction. Hence if we email user here, multiple emails will be sendCreate a new Node method like
EmailUserand call it afterAssignand beforeNext. But the issue is, it should also be thorough some callable likeAssignfor it to be called for eachProcess. But where to call this callable function
This seems like very general use-case, with a very difficult solution. Or am I missing something?
This functionality could be achieved in a custom subclass of flow.View, with custom activation class, where you can extend
create_taskmethod:https://github.com/viewflow/viewflow/blob/master/viewflow/flow/activation.py#L77
)