Minh Hoang TO [
https://community.jboss.org/people/hoang_to] created the discussion
"Re: Adding new workitems programmatically, without repacking the application
?"
To view the discussion, visit:
https://community.jboss.org/message/823421#823421
--------------------------------------------------------------
import org.drools.process.core.datatype.impl.type.StringDataType;
[
// the Notification work item
[
"name" : "Notification",
"parameters" : [
"Message" : new StringDataType(),
"From" : new StringDataType(),
"To" : new StringDataType(),
"Priority" : new StringDataType(),
],
"displayName" : "Notification",
"icon" : "icons/notification.gif"
]
]
The engine has no interests on item definitions, but the info that you passed to item
definitions is available in BPMN (generated by web-based/ide-based editors). As far as i
see, the key used to register WorkItemHandler must identical to the value in
"name" field.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/823421#823421]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]