how to get taskid of user task before activiti moves to that user task. need the taskid before hand to send custom email notification with doc attachment.
planning to get rid of default email notification as it do not have document as attachment. so have rest service to send email notification wiht the docs as attachment. planning to call this rest service in rest task before the user task. however to create the task url link in the email body, i need to get the taskid before the process reaches the user task. let me know