1
我一直在我的項目和調色板中使用自定義任務幾個星期。今天,我正在將一項新任務添加到我的配置中。重新啓動eclipse後,調色板的「自定義任務」選項卡停止顯示。我恢復了我的改變並再次重新開啓了eclipse;但是,自定義任務仍未顯示在我的調色板中。自定義任務不在調色板中顯示
我使用JBPM 6.1和Luna 1.1.3作爲Eclipse BPMN2 Modeler插件。
下面是我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"
]
]
下面是我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()
]
和對子孫後代的緣故,這裏是我的drools.session.conf
drools.workItemHandlers = CustomWorkItemHandlers.conf
有沒有我找不到的語法錯誤?如果沒有,有沒有辦法調試或打印一些輸出以確定調色板不顯示Cutom Tasks的原因?
有幾個問題:1)什麼版本的jbpmn? 2)我認爲你的意思是「drools.session.conf」與「drolls.session.conf」 此外,您可能需要關閉編輯器中的bpmn文件(關閉標籤)並重新打開工作流程。 Eclipse插件在加載工作項處理程序時表現不是很好。 –
我更新了我的問題。我使用JBPM 6.1和Luna 1.1.3作爲eclipse BPMN2 Modeler插件。 – Mike
可能想檢查這個帖子:http://stackoverflow.com/questions/28825365/jbpm6-service-task-to-execute-java-code/28832896#28832896 –