As mentioned by Ashutosh, you can get resource resolver from workflow
session. Another way of good practice is to get serivce resource
resolver, and you can write this reusable mention in one utils class and
call it in your workflow Example:public static ResourceResolver
getServiceResolver() throws LoginException {Map param =
new HashMap<>();param.put(ResourceResolverFactory.SUBSERVICE,
"my-custom-service");BundleContext bundleContext =
FrameworkUtil.getBundle(MyUtils.class).getBundleContext();S...