[jboss-user] [jBPM] - Passing data to a work item handler

out sider do-not-reply at jboss.com
Fri Apr 20 20:07:15 EDT 2012


out sider [https://community.jboss.org/people/out_sider] created the discussion

"Passing data to a work item handler"

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

--------------------------------------------------------------
My question is quite simple.

I know that is possible to declare a Work Item Definition where some parameters are String and alike. Then the user can simply fill those parameters using the Web Designer in More properties and data assign. But I want those parameters to be already defined programmaticly.

What I mean is this scenario:

* User fills a form provided by my application
* Work Item Definition is generated holding the data inputed
* Work Item Definition is sent to guvnor through the Rest API
* User designs a process using the Service Task corresponding to the previously defined Work Item Definition
* Work Item Handler has access to the data inputed by the User when he/she filled the form and was holded on the Work Item Definition

In fact if this worked it would be exactly what I needed:

import org.drools.process.core.datatype.impl.type.StringDataType;
[
  // the Java Node work item located in:
  // project/src/main/resources/META-INF/JavaNodeDefinition.conf
  [
    "name" : "JavaNode",
    "parameters" : [
      "UserName" : "John",
    ],
    "displayName" : "Java Node",
    "icon" : "icons/java.gif"
  ]

]

But unfortenly (at least to my understanding) parameter literal values can't be defined in the Work Item Definition...only what type it is...

As such how can I let the user define an Activity and hold data in it, place it in the Workflow using the designer and then colect data from the Work Item Definition? 

The user shouldn't define anything else after the WID is done...meaning he/she won't be inputing data in the Service Task more properties within the designer...
all the info must be holded when the WID is generated.
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120420/1950e623/attachment-0001.html 


More information about the jboss-user mailing list