AnsweredAssumed Answered

Error while instantiating workflow using java code

Question asked by jai-prakash.yadav@dupont.com on Aug 26, 2016
Latest reply on Aug 26, 2016 by jai-prakash.yadav@dupont.com
Hi All,

We are using custom formtype in our workflow. We can start from activiti-explore webapp.
But getting below error if start using java main class. We have already added modified activiti-explorer-5.20.0 containing new form type to java main class project. But still getting error:
Exception in thread "main" org.activiti.engine.ActivitiIllegalArgumentException: unknown type 'sbu' sbu
   at org.activiti.engine.impl.form.FormTypes.parseFormPropertyType(FormTypes.java:55)
   at org.activiti.engine.impl.form.DefaultFormHandler.parseConfiguration(DefaultFormHandler.java:61)
   at org.activiti.engine.impl.bpmn.parser.handler.UserTaskParseHandler.parseTaskDefinition(UserTaskParseHandler.java:59)
   at org.activiti.engine.impl.bpmn.parser.handler.UserTaskParseHandler.executeParse(UserTaskParseHandler.java:52)
   at org.activiti.engine.impl.bpmn.parser.handler.UserTaskParseHandler.executeParse(UserTaskParseHandler.java:38)
   at org.activiti.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler.parse(AbstractBpmnParseHandler.java:81)
   at org.activiti.engine.impl.bpmn.parser.handler.AbstractFlowNodeBpmnParseHandler.parse(AbstractFlowNodeBpmnParseHandler.java:27)
   at org.activiti.engine.impl.bpmn.parser.handler.AbstractActivityBpmnParseHandler.parse(AbstractActivityBpmnParseHandler.java:36)
   at org.activiti.engine.impl.bpmn.parser.BpmnParseHandlers.parseElement(BpmnParseHandlers.java:79)
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.processFlowElements(BpmnParse.java:433)
   at org.activiti.engine.impl.bpmn.parser.handler.ProcessParseHandler.transformProcess(ProcessParseHandler.java:88)
   at org.activiti.engine.impl.bpmn.parser.handler.ProcessParseHandler.executeParse(ProcessParseHandler.java:49)
   at org.activiti.engine.impl.bpmn.parser.handler.ProcessParseHandler.executeParse(ProcessParseHandler.java:35)
   at org.activiti.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler.parse(AbstractBpmnParseHandler.java:81)
   

Regards,
Jai


Outcomes