Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Hello,

I'm trying to write a Bean Shell script that reads the value of a workflow variable. However I see that it is possible to read in a 'process variable' and an 'activity variable'. There only seems to be a getter for process variables by using the following method:

Code Block
WorkflowManager.getProcessVariable()

For activity variables the only getter I can find is:

Code Block
WorkflowManager.getActivityVariableList()

However there are setters for both process and activity variables:

Code Block
WorkflowManager.processVariable()

and

Code Block
WorkflowManager.activityVariable()

My question is this: What is the difference between a process variable and an activity variable? And if I only want to read 1 activity variable, do I really need to get the entire list first?

Thanks!