Can't import or export groovy classes that are not in default package

Description

This is an issue about exporting / importing scripts that are not in the default package.

  • Can't be imported from a workspace from a previous version (didn't work to import in Studio 7.8.3 from a 7.8.0 workspace);

  • Can't be exported as a bos archive (see "steps to reproduce").

The class works fine in groovy expressions within the process.

Environment

Windows 7

External Link

None

Workaround

Leave the package name empty at the Groovy class creation. Despite the warning "The use of the default package is discouraged", it works well in groovy expression (even better : static methods appear in user defined functions), and no more problem about exporting these classes. Although it seems to be a bad practice.

Activity

Show:
Antoine Mottier
April 9, 2019, 1:05 PM

Thanks for opening this issue. I managed to reproduced it and report it internally.

Antoine Mottier
June 24, 2019, 8:42 AM

This issue has been fixed. Feel free to add a comment if you still have issue related to import of Groovy scripts.

Thanks again for taking the time to report issues.

Assignee

Antoine Mottier

Reporter

Jovian HERSEMEULE

Affects versions

Reference

BS-19331

Fix versions

Configure