Using a groovy script in a groovy custom page?

I have a grrovy script “MyUtil.groovy” written using the “Development->Manage Groovy Scripts” menu option in the studio and use it extensively in various connectors, operations etc in my process.

However I’d now like to use it in groovy custom page as well, but cant get it to work.

“import MyUtil;” says it cant resolve.

And any attempt to use MyUtil.myFunction(…) in the page code also reports that there is no variable called “MyUtil”.

I presume this is a class path issue, but cant work out how to tell the page code to use the script.

Any clues?

Thanks

I suspect this is one of those, oh nice feature which we haven’t thought to add.

In the first instance I would add it as an Idea to be added to the system.

I don’t think I would classify it as a bug, but you never know - if you don’t ask…https://bonita.atlassian.net

regards
Seán

PS: I realise this may not be the answer you are looking for but it’s the best I can think of and if it meets your needs, please mark as resolved so others don’t have to reply.