there are a number of issues here, starting with the UI - what kind of UI? You'll
programatically attack things slightly different is you're coming from the web tier
rather than a fat client.
Then variable type comes into play - from the web tier specifically you'll have issues
as you'll have to manage the conversion from http speak to strongly typed variables in
jBPM.
If you look at the source for the web app there is a good start at getting the job done,
though depending on how rich the variables (types) are in the process you may have to do
some more work at creating an elegant solution. (see the converter stuff for a clue on
this).
We ended up writing a custom chunk of code to parse from the web tier, looking at the
variables from a specific task's controller to see what we should be looking for.
Depending on how rich the UI is that is feeding the task this can be an easy or small
feat... we're presenting a rather dynamic UI for any given task so there's a bit
of work to it.
The key will be to look at how the current web app is doing things. Given a task instance
there is a clear way to access the controller, and then find out what variables are
required etc, and then merge them back into the controller (you merge to the controller
rather than the process instance to account for name mapping). The section in the user
guide related to this topic gives a clue, and that coupled with the example source should
get you there.
At no point though (that i'm aware of) do ActionHandlers come into play unless
you're dynamically creating tasks etc (again, see the guide and examples for how this
is done). Instead you can do everything you need starting with an actual TaskInstance.
Good luck !
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967543#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...