那一句的代码是:instance.getContextInstance().setVariable("documentId", doc.getId());
而错误描述是:The method setVariable(String,Object) in the type ContextInstance is not applicable for the arguments(String,int)
我import的是org.jbpm.graph.exe.ProcessInstance;而我跟着学习的一个学习视频(李腾飞的****)上面的代码跟我的一摸一样,为什么他没报错,我却报错了呢?
求高手解答。小弟才学了两天,请高手详细解答,要不然我还是不知道如何着手解决哦,谢谢!!!
而错误描述是:The method setVariable(String,Object) in the type ContextInstance is not applicable for the arguments(String,int)
我import的是org.jbpm.graph.exe.ProcessInstance;而我跟着学习的一个学习视频(李腾飞的****)上面的代码跟我的一摸一样,为什么他没报错,我却报错了呢?
求高手解答。小弟才学了两天,请高手详细解答,要不然我还是不知道如何着手解决哦,谢谢!!!
在doc.getId()加个空字符串转换成字符型
instance.getContextInstance().setVariable("documentId", new Integer(doc.getId()));