Discussion:
[jboss-user] [jBPM] - Re: Passing data to a work item handler
Maciej Swiderski
2012-04-23 07:33:03 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Passing data to a work item handler"

To view the discussion, visit: https://community.jboss.org/message/731580#731580

--------------------------------------------------------------
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?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/731580#731580]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
out sider
2012-04-23 12:49:47 UTC
Permalink
out sider [https://community.jboss.org/people/out_sider] created the discussion

"Re: Passing data to a work item handler"

To view the discussion, visit: https://community.jboss.org/message/731662#731662

--------------------------------------------------------------
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 :) .
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/731662#731662]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Antoine T
2013-04-15 14:46:15 UTC
Permalink
Antoine T [https://community.jboss.org/people/atran] created the discussion

"Re: Passing data to a work item handler"

To view the discussion, visit: https://community.jboss.org/message/808385#808385

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/808385#808385]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...