Skip to content

Instantly share code, notes, and snippets.

@dmarrazzo
Created July 8, 2017 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmarrazzo/1b9c5e1e6696a957a4e8c6b3b298dcdd to your computer and use it in GitHub Desktop.
Save dmarrazzo/1b9c5e1e6696a957a4e8c6b3b298dcdd to your computer and use it in GitHub Desktop.
Work Item Handler definition
import org.drools.core.process.core.datatype.impl.type.StringDataType;
import org.drools.core.process.core.datatype.impl.type.ObjectDataType;
[
[
"name" : "loose-rules",
"description" : "invoke rules from an independent rule project",
"parameters" : [
"kbaseName" : new StringDataType(),
"fact" : new ObjectDataType()
],
"results" : [
"fact" : new ObjectDataType()
],
"displayName" : "Rule",
"icon" : "rule.png",
"category" : "extras",
"defaultHandler" : "mvel: new loose.rules.wih.LooseRulesWorkItemHandler( groupId, artifactId, version, 10000 )",
"documentation" : "index.html",
"mavenDependencies" : [
"example:loose-rules-wih:1.0-SNAPSHOT"
]
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment