JBoss Community

Re: Adding new workitems programmatically, without repacking the application ?

created by Minh Hoang TO in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community