-
1. Re: New workItem extending Human Task
calca Oct 21, 2011 8:44 AM (in response to npereira)1 of 1 people found this helpfulHi.
I don't know if you can "extend" the human task node. What you can do is to create another node with the parameters you want and associate the human task work item handler, or an extension of it.
Regards,
Demian
-
2. Re: New workItem extending Human Task
npereira Oct 21, 2011 9:30 AM (in response to calca)Hi Demian,
Thank you for your input.
That might be what I want.
The thing is I just want to continue to have the properties and features of the Human Task, but add a new property to it.
How whould I go about doing your sugestion? Is it something I do in the "MyWorkDefinitions.conf" file?
Regards,
-
3. Re: New workItem extending Human Task
tsurdilovic Oct 21, 2011 12:07 PM (in response to npereira)The BPMN2 specification allows for extensions for both attributes and elements. Adding a new attribute extension so is possible, but unless the runtime understands it, it makes not much sense to do it. If you are talking about Service Nodes and their configurations (for example MyWorkDefinitions.conf)..those are service nodes (workitems) and not human tasks.
Hope this helps.
-
4. Re: New workItem extending Human Task
npereira Oct 23, 2011 6:26 AM (in response to tsurdilovic)Hello,
Thank you for the input.
Trying to be specific, I'm in jBPM5.1 and I want to have a User Task with one custom attribute called "CustomAttrib".
Anyone know how I could achieve this?
Regards,
Npereira
-
5. Re: New workItem extending Human Task
npereira Oct 28, 2011 5:45 AM (in response to npereira)Hi Forum,
Anyone could help me on this one?
Regards
-
6. Re: New workItem extending Human Task
calca Oct 29, 2011 2:00 PM (in response to npereira)Hey,
You can use it into parameter mapping. I mean, you can pass a parameter CustomAttrib and map the value from some variable. Will this work for you?
My first suggestion was to add a new service node that represents your task (map all needed attributes from a human task, and also yours). But I don't recommend it, as for human task, you should use userTask node.
Demian
-