Task Listener to update when the user calls form

Hey there. We’ve got a problem in our project. We are fetching SharePoint files. They are only valid for an hour. So we need to update the links to the SharePoint files with the respective tokens.

To do so we would like to fetch the files again when anybody is clicking on the task in the tasklist. But as we see there is not event for this case. Currently we’re using the assignment event which works but isn’t a really nice solution.

I hope I have described the problem understandable. Thank you for any help!

Hi @CptDayDreamer,

Assignment event is only triggered when assignee attribute gets changed wheares your need is to update the link before it gets expired so I believe using timeout event should fit your need.

https://docs.camunda.org/manual/7.16/user-guide/process-engine/delegation-code/#defining-a-task-listener

Hi @CptDayDreamer,

Initially the link should be generated on create event.
And an updated link with the new token to be generated on timeout event.

1 Like