I am implementing a workflow.In one of the action handlers, I need the "publicationMethod". This "publicationMethod" is known at the beginning of the workflow.So if I understood well, I need a workflow variable.But I can't seem to be able to make it work, and haven't found anything in the doc or via Google.Here is what I tried:When starting the workflow:params.put(QName.createQName("{http://my/}publicationMethod"), publicationMethod);
WorkflowPath path = this.getWorkflowService().startWorkflow(this.selectedWorkflow, params);In the workflow definition:<action name="action" class="my.PublishActionHandler">
<variable name="publicationMethod" access="read"/>
</action>
In the action handler:public void execute(ExecutionContext context) throws Exception {
String publicationMethod = (String)context.getVariable("publicationMethod");But publicationMethod is null 😞What is the proper way to achieve this?Thanks a lot!Nicolas