-
1. Re: Task parameters
newbie007 Jul 25, 2006 12:41 PM (in response to dlipski)I guess that is possible using the variables. When you configure your task (by adding actions, swimlane etc in JPD), you can specify the variables using the "Controller" menu. These variables can be retrived using the API:
taskInstance.getTask().getTaskController().getVariableAccesses()
Thanks. -
2. Re: Task parameters
dlipski Jul 26, 2006 9:38 AM (in response to dlipski)Thanks for your reply. But as i understand documentation (11.5 "Task controllers") they are intended to translate and extract information from the process variables, not to define new variables. Tag (nested in controller) have attributes name, acces & mapped-name. I'm looking for some 'value' attrbiute. For example:
<controller> <variable mapped-name="myVar" value="someVal"/> </controller>
Is something like this possible ? -
3. Re: Task parameters
kukeltje Jul 26, 2006 10:29 AM (in response to dlipski)Oh yes, this is possible..... just use an actionhandler that can work with a xml structure. There are some examples in the source, docs, this forum... just don't look at the xml tag as the variable name but do something like
<numbers> <entry><key>one</key><value>1</value></entry> <entry><key>two</key><value>2</value></entry> <entry><key>three</key><value>3</value></entry> </numbers>
Where the value of key is the variable name and the value of value is the value (heee that is nice ;-))
The rest should be obvious -
4. Re: Task parameters
dlipski Jul 27, 2006 12:31 PM (in response to dlipski)use an actionhandler that can work with a xml structure
But all i found is that action handlers can be used to parametrize actions, not other types such as task's.I know i can do something like this:<action class="org.test.MyAction"> <city>Atlanta</city> <rounds>5</rounds> </action>
But is it possible to assign ActionHandler to Task ?
Thanks -
5. Re: Task parameters
kukeltje Jul 27, 2006 1:59 PM (in response to dlipski)read the docs.... lots of 'events' including a TASK-CREATE etc......
-
6. Re: Task parameters
dlipski Jul 28, 2006 3:19 AM (in response to dlipski)Thanks I forgot about task events, and was trying to do that in some other way.