[jboss-user] [jBPM] - Re: Tasks definition extension points

Kris Verlaenen do-not-reply at jboss.com
Mon Jun 27 12:49:42 EDT 2011

Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] created the discussion

"Re: Tasks definition extension points"

To view the discussion, visit: http://community.jboss.org/message/612182#612182

If you want to define them as custom attributes, you would have to extend the jBPM code, yes.

It's probably a lot easier to just define an additional task parameter that contains your data.  So it will be similar to properties like Comment and Priority, but the data will simply be stored as a task parameter, as part of the ioSpecification of the userTask.  This would not require you to extend the code itself, as tasks allow you to define additional task parameters out of the box.  You can then use this parameter in your handler by doing workItem.getParameter(name).

Assuming you're defining your processes in XML, I would suggest taking a look at how properties like Comment and Priority get saved in the BPMN2 XML, so you can do something similar for your parameter.


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110627/e2b454a2/attachment.html 

More information about the jboss-user mailing list