[jboss-user] [JBoss jBPM] - Re: create task at runtime
massimiliano_cuccia
do-not-reply at jboss.com
Tue Jul 24 12:29:00 EDT 2007
"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
More information about the jboss-user
mailing list