Exception java.lang.IllegalArgumentException: No enum const class when validating jBPM5 process
Issue
Given a process with a Domain Node using a Work Item Definition like:
[
"name" : "FoxIntegration",
"parameters" : [
"OrderId" : new String(),
"PostingType" : new StringDataType()
],
"displayName" : "FoxIntegration",
"icon" : "",
]
It is not possible to be validate by the tool "Validate Process" in the top toolbar of process designer.
This returns the exception:
08:26:01,663 ERROR [[SyntaxCheckerServlet]] Servlet.service() for servlet SyntaxCheckerServlet threw exception
java.lang.IllegalArgumentException: No enum const class org.jbpm.designer.bpmn2.impl.Bpmn20Stencil.FoxIntegration_FoxIntegration
at java.lang.Enum.valueOf(Enum.java:196)
at org.jbpm.designer.bpmn2.impl.Bpmn20Stencil.valueOf(Bpmn20Stencil.java:35)
at org.jbpm.designer.bpmn2.impl.Bpmn20Stencil.createElement(Bpmn20Stencil.java:134)
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.createBaseElement(Bpmn2JsonUnmarshaller.java:4032)
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshallItem(Bpmn2JsonUnmarshaller.java:1635)
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshallItem(Bpmn2JsonUnmarshaller.java:1560)
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshall(Bpmn2JsonUnmarshaller.java:225)
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshall(Bpmn2JsonUnmarshaller.java:201)
at org.jbpm.designer.web.profile.impl.JbpmProfileImpl$1.getDefinitions(JbpmProfileImpl.java:222)
at org.jbpm.designer.bpmn2.validation.BPMN2SyntaxChecker.checkSyntaBPMN2SyntaxChecker.java:73)
Environment
JBoss Enterprise Business Rules Management System (BRMS) - 5.3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.