I have been working with custom tasks in my project and palette for a few weeks. Today I was adding a new task into my configuration. After I restarted eclipse, the Custom Tasks tab of the palette stopped displaying. I reverted my changes and restarted eclipse again; however, the custom tasks were still not appearing in my palette.
I am using JBPM 6.1 and Luna 1.1.3 for the Eclipse BPMN2 Modeler plug-in.
Below is my WorkItemDefinitions.wid
import org.drools.core.process.core.datatype.impl.type.StringDataType;
import org.drools.core.process.core.datatype.impl.type.BooleanDataType;
import org.jbpm.examples.model.WTSRRequest;
import org.jbpm.examples.model.UserSelection;
[
[
"name" : "FormEmail",
"parameters" : [
"From" : new StringDataType(),
"To": new StringDataType(),
"Subject" : new StringDataType(),
"Body" : new StringDataType(),
"Request" : new WTSRRequest()
],
"results" : [
"success" : new BooleanDataType(),
"errorMsg" : new StringDataType()
],
"displayName" : "Email Users",
"icon" : "icon-info.gif"
],
[
"name" : "Fortress",
"parameters" : [
"Request" : new WTSRRequest(),
"SpecificUser": new StringDataType(),
"RoleSelection": new StringDataType(),
],
"results" : [
"user_selection_out" : new UserSelection(),
"user_list_out" : new StringDataType(),
"groups_out" : new StringDataType()
],
"displayName" : "Fortress Lookup",
"icon" : "icon-info.gif"
],
[
"name" : "AddFormHistory",
"parameters" : [
"Request" : new WTSRRequest(),
"User" : new StringDataType(),
"FormType" : new StringDataType(),
"Role" : new StringDataType(),
"Action" : new StringDataType(),
"Comment" : new StringDataType()
],
"results" : [
"request_out" : new WTSRRequest()
],
"displayName" : "Add History",
"icon" : "icon-info.gif"
]
]
Below is my CustomWorkItemHandlers.config
[
"FormEmail" : new org.jbpm.examples.util.handler.EmailHandler(),
"Fortress" : new org.jbpm.examples.util.handler.FortressHandler(),
"AddFormHistory" : new org.jbpm.examples.util.handler.AddFormHistoryHandler()
]
And for posterity's sake, here is my drools.session.conf
drools.workItemHandlers = CustomWorkItemHandlers.conf
Is there some syntax error that I am not finding? If not, is there some way to debug or print some output to determine why the palette is not displaying the Cutom Tasks?