How to Customize the Work Definitions in jBPM

1) Create the /META-INF/SampleWorkDefinition.conf file:

import org.drools.process.core.datatype.impl.type.StringDataType;
[
  [
    "name" : "Sample",
    "parameters" : [
      "Param" : new StringDataType()
    ],
    "displayName" : "Sample"
  ]
]

2) Create a /META-INF/drools.ruleBase.conf file:

drools.workDefinitions=WorkDefinitions.conf SampleWorkDefinitions.conf

You need to add WorkDefinitions.conf if you want to keep the Email and Log work definitions.

http://docs.jboss.org/jbpm/v5.1/userguide/ch13.html#d0e3576

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s