-
1. Re: Passing data to a work item handler
swiderski.maciej Apr 23, 2012 3:32 AM (in response to out_sider)As you already found out yourself, Work Item definition is only a structure of the work item rather than the instance of it. Why not let users to fill in those details on process in web designer if they are constant strings and will apply to all instances of that process or on process instance start if these values are instance specific?
-
2. Re: Passing data to a work item handler
out_sider Apr 23, 2012 8:49 AM (in response to swiderski.maciej)Thanks for the reply and suggestion.
The reason for wanting to define the work item data outside the web designer is due to the complexity of the data.
A rather complex form is necessary to define the atributes of the Service Task (represented by the Work Item Definition) and doing that assignment using the Drools Web Designer built in form isn't very intuitive.
Although custom forms seem to be planned for future release, for now I would still need to do some sorte of javascript hack to catch click events on the designer and launch my form (at least that's what I undestood).
What I'm thinking of doing is considering that each filled form will be a Service Task I can fetch my data structure using the workItem.getName();...I'm hopping it will work .
-
3. Re: Passing data to a work item handler
atran Apr 18, 2013 4:25 AM (in response to out_sider)Hi,
I am also interested in this feature. Indeed, I think it is a good idea to pre-fill an attribute with a default value so that users don't have to fill everything and change only what they want. Mr. Maciej, do you think it will be easy to do that? Thank you.
EDIT: I found out that a plugin implementation could do this.