call workflow execute method in OSGi servicec
I am trying to include com.adobe.cq.wcm.translation.impl.process.SyncTranslationProcess as reference in my OSGi service. How can i include it?
I am trying to include com.adobe.cq.wcm.translation.impl.process.SyncTranslationProcess as reference in my OSGi service. How can i include it?
Technically you can create a reference to a specific OSGI service, but in most cases that's not really necessary and also bad design.
@Reference(target=("component.name=com.adobe.cq.wcm.translation.impl.process.SyncTranslationProcess"))
WorkflowProcess syncTranslationProcess
(check How do I specify an implementation using @OSGiService for some more details). But I don't think that is a good idea. First of all you need to get the right parameters (and creating a WorkflowSession manually is not recommended at all). Also invoking this workflow step from a custom other workflow step does not make sense to me, you should rather re-design your workflow.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.