All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.WorkDefinitions.conf Maven / Gradle / Ivy

There is a newer version: 9.44.0.Final
Show newest version
// We use MVEL to return a List of work definitions
// The properties of the work definitions are specified as a Map
// The allowed properties are name, parameters, displayName, icon and customEditor
// The returned result should thus be of type List>
import org.drools.core.process.core.datatype.impl.type.StringDataType;

[

  [
    "name" : "Email",
    "parameters" : [
      "From" : new StringDataType(),
      "To" : new StringDataType(),
      "Subject" : new StringDataType(),
      "Body" : new StringDataType()
    ],
    "displayName" : "Email",
    "icon" : "icons/import_statement.gif",
    "customEditor" : "org.drools.eclipse.flow.common.editor.editpart.work.EmailCustomEditor"
  ],
  
  [
    "name" : "Log",
    "parameters" : [
      "Message" : new StringDataType()
    ],
    "displayName" : "Log",
    "icon" : "icons/open.gif",
    "customEditor" : "org.drools.eclipse.flow.common.editor.editpart.work.SampleCustomEditor"
  ]
    
]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy