How to use services in other bundles than under kernel should be included in Scripting in workflow document.
Can you add more samples, or at least a sample calling services in other bundles than kernel related services as below?
I just worked on Scripting in workflow but found out there's no documentation in terms of calling bundles other than under kernel.
Since DXP is on OSGi, I figured out RegistryUtil that's used in Java code might also work in Script and confirmed it worked. (Without RegistryUtil, you'll get exception and can't call JournalArticleLocalService)
The sample I used was below.
1. Add web contents.
2. Add the script below to the whatever the workflow and assign to something , or simulate it in Script window.
Then the output will be the titles of created Web contents.