-
1. Re: Task controllers variables
kukeltje Oct 31, 2005 2:17 PM (in response to pedrosacosta)Before anyone start shouting 'see there he goes again'..... wait a minute so I can put my fingers in my ear..... ok, here I go...
If it is really urgent you can always order commercial support.
.
.
.
finished?? ;-)
No serious... it is true. We try to do our best. Look at the default taskcontrolerhandler and see what goes on there. It is a mix of the handler, taskbean and jsf. If that is of no help, please come back. And remind that you do not have to develop your own taskcontrollerhandler. Only if you want to add additional functionality you might.
If I can find the 'contributors agrement' in paper form, I send it in and contribute enhancements to the ui framework. I do not think of this agreement during the day and cannot fax it from home. Tom? Can you send it to me again in pdf or so -
2. Re: Task controllers variables
koen.aers Nov 1, 2005 5:40 AM (in response to pedrosacosta)Ronald,
I saw your name on the contributors page at http://labs.jboss.com/portal/index.html?ctrl:id=page.default.con&noproject=true. I guess it is OK to commit your contributions...
Regards,
Koen -
3. Re: Task controllers variables
pedrosacosta Nov 1, 2005 10:04 AM (in response to pedrosacosta)You're right kukeltje. But when the enterprise want me to do a project with only jboss, i've to fight against time. I said urgent, because it's really important to me to understand how taskcontroller works.
I think that the documentation on-line of jboss is few. Where can i find more examples and can you advice for any book?
Thanks. -
4. Re: Task controllers variables
tobysaville Nov 1, 2005 11:08 AM (in response to pedrosacosta)use the taskInstance parameter to get the ContextInstance which holds your variables:
taskInstance.getTaskMgmtInstance().getProcessInstance().getContextInstance().getVariable(varName);
-
5. Re: Task controllers variables
jpaagt Nov 1, 2005 11:31 AM (in response to pedrosacosta)You have two options.
1) Using TaskInstance: To retrieve a variable using a task instance, you have to declare this variable in the tasks controller with read access and access the variable with the following code:TaskInstance taskInstance =... List formParameters = taskInstance.getTaskFormParameters();
2) Using ContextInstance: To retrieve any variable defined in the process somewhere, you can use the ContextInstance:ProcessInstance processInstance = ... ContextInstance contextInstance = processInstance.getContextInstance(); Object varValue = contextInstance.getVariable("varName");