Can you access a workflow variable inside a Bean Shell Form Binder?

Confluence User - 12 Nov, 2015

If a form is in the workflow, can you access a workflow variable inside a Bean Shell Form Binder?

forms;workflow

2


13 Nov, 2015
confluenceUser
confluenceUser

As far as I know, workflow variable can be accessed in beanshell, process tool, form. using hash variable (#variable.variableName#). As long as all of that is in a workflow.

So the answer to your question is yes.

ref: Workflow Variable Hash Variable

13 Nov, 2015
confluenceUser
confluenceUser

Can you provide example? I have tried direct assignment: #variable.testVariable# = "test", and get an error at the '=' sign. I have also tried the following example : import org.joget.workflow.model.service.*; WorkflowManager wm = (WorkflowManager) pluginManager.getBean("workflowManager"); wm.activityVariable(workflowAssignment.getActivityId(),"status", "Approved"); and still get an error.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print