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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to