AnsweredAssumed Answered

how to set variables in variable scope for user task

Question asked by rohran on Feb 3, 2012
Latest reply on Feb 6, 2012 by trademak
how to set taskentity variables?

For example, I have a user task called "Review Task",

Using the api findTaskById, i got the taskentity of "Review Task" but the taskentity.getVariableInstances() returns me always null.

I don't want the variables to be set in global scope ( process instance variable level), i would like to access few variables in task scope and those variables are not task form data too.

I could see some api, execution.setLocalVariables() but this doesn't help me to access the variables through taskentity.getVariableInstances().

How do you ensure that certain variables are available to task at task level (not process instance variable) so that I can access them by calling taskentity.getVariableInstances()?