Adding new resourceLocation in Works Library

Hello

How can i change the worker’s resourceLocation according to taslist in works library?

Thanks!