2013-02-12 43 views
2

其實我想這個鏈接,例如 https://community.jboss.org/people/bpmn2user/blog/2011/02/21/jbpm5-example-for-forms-with-variablesMarshalledContentWrapper錯誤JBPM

現在,當它被調用達到人工任務它顯示jsp頁面

Model Number: MarshalledContentWrapper{[email protected], 
marshaller=org.drools.marshalling.impl.SerializablePlaceholderResolverStrategy, 
type=class java.lang.String} 
Quantity: MarshalledContentWrapper{content=[[email protected], 
marshaller=org.drools.marshalling.impl.SerializablePlaceholderResolverStrategy,   
type=class java.lang.String} 
Priority: MarshalledContentWrapper{content=[[email protected], 
marshaller=org.drools.marshalling.impl.SerializablePlaceholderResolverStrategy, 
type=class java.lang.String} 

,然後文本框在此FTL的文件並提交按鈕。

當我點擊提交

我在我的控制檯上得到這個輸出。

Human Task Started.... 
Exception in thread "Thread-2" java.lang.ClassCastException: java.lang.String cannot be cast to org.jbpm.task.utils.MarshalledContentWrapper 
      at org.jbpm.task.utils.ContentMarshallerHelper.unmarshall(ContentMarshallerHelper.java:157) 
      at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler.handleCompletedTask(GenericHTWorkItemHandler.java:208) 
      at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler$1.run(GenericHTWorkItemHandler.java:187) 
      at java.lang.Thread.run(Thread.java:679) 

如何解決這個問題有沒有人有這方面的想法。在我的BPMN的腳本任務

+0

你是如何發送任務中的數據如人的任務在完成之前。您能否顯示您使用的代碼? – salaboy 2013-02-12 11:32:56

+0

我已經在我的BPMN文件的腳本任務中編寫了以下代碼 map = new java.util.HashMap(); map.put(「priority」,「High」); map.put(「modelNumber」,「1234」); map.put(「quantity」,「225」); kcontext.setVariable(「map」,map); 我正在做這個鏈接的人工任務的示例 https://community.jboss.org/people/bpmn2user/blog/2011/02/21/jbpm5-example-for-forms-with-variables – 2013-02-13 05:43:48

回答