"syngolis" wrote : I think the null pointer exception is correct. AFAIK if you 
create a task, there is no task controller created automatically. (Think of a 
processdefinition; there you have to declare the controller as well)
  | And the get operation results in a null pointer because no controller 
exists.
  | 

thanks syngolis
I think that you are right: it is possible.

So I want to list all and only the variables linked to the task (not the "all 
task of the process"). At now I'm doing this

TaskController taskController = ti.getTask().getTaskController();
  | if (taskController!=null)
  | {
  |     List variableAccesses = taskController.getVariableAccesses();
  |     Iterator i = variableAccesses.iterator();
  |     while (i.hasNext())
  |     {
  |              // do something
  |          }
  | }

but the first row gives the null pointer exception (this means that 
ti.getTask() is null)

so if you are right, the question is
how to list the variables of the task?

regards

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067103#4067103

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067103
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to