1 related: You can specify variable in model which will contain name of task from where to
get an actor id in your assignment handler.
| <assignment class="your.handler">
| <taskName>myTask</taskName>
| </assignment>
|
Then in assign method you should process all previous task instances with name equals to
taskName variable value.
| executionContext.getTaskMgmtInstance().getTaskInstances();
| //iterate though task instances
| ...
| if(taskInstance.getName().equals(taskName)
| {
| //check whether it is a newer task instance than previous one
| //and store actor to some variable if it is
| ...
| }
|
In case of usage of this method you will not need any additional contextInstance
variables, and imho you will get more flexible handler which can be used for different
nodes of various models.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071164#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...