[Design of JBoss jBPM] - deploy problem
by pgros
Hi i have a problem deploying a simple process... some hours ago it worked =( i think it depends on any jar file which is on the wrong place or something like that, any ideas?
String op =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
"<process-definition xmlns=\"urn:jbpm.org:jpdl-3.2\"" +
" name=\"UseTextoutput\">" +
" <start-state name=\"s1\">" +
" <transition to=\"s2\">" +
" </start-state>" +
" <end-state name=\"s2\"></end-state>" +
"</process-definition>";
jbpmContext.deployProcessDefinition(ProcessDefinition.parseXmlString(op));
leads to->
13:14:48,007 ERROR [STDERR] Caused by: org.jbpm.util.XmlException: couldn't parse xml
13:14:48,007 ERROR [STDERR] at org.jbpm.util.XmlUtil.parseXmlInputStream(XmlUtil.java:68)
13:14:48,007 ERROR [STDERR] at org.jbpm.graph.node.NodeTypes.initialiseNodeTypes(NodeTypes.java:65)
13:14:48,007 ERROR [STDERR] at org.jbpm.graph.node.NodeTypes.(NodeTypes.java:57)
13:14:48,023 ERROR [STDERR] ... 38 more
13:14:48,023 ERROR [STDERR] Caused by: java.lang.IllegalArgumentException: InputStream cannot be null
13:14:48,023 ERROR [STDERR] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:120)
13:14:48,023 ERROR [STDERR] at org.jbpm.util.XmlUtil.parseXmlInputStream(XmlUtil.java:66)
13:14:48,023 ERROR [STDERR] ... 40 more
after running the function first time i get the following error when i run it until i restart the server
java.lang.NoClassDefFoundError: Could not initialize class org.jbpm.graph.action.ActionTypes
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192773#4192773
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192773
15 years, 12 months
[Design of JBoss jBPM] - Re: Create a custom Node in Graphical Designer
by pgros
damn html parser =)
I made a small readme for myselfe, maybe it is useful for anybody:
the created node is
Install the Plugin
Modify plugin.xml
add
add
add
add
add
<!-- The property xmlElement="textoutput" stands for the node in the generated xml-processdefinition file -->
add
create the following classes and add them to "ui.jar" in the pluginfolder (extract the jar, add the .class files in the right directory, zip it back into a jar file)
-make a adapted version of "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\xml\EsbNodeMapper.java" for my node
-make a adapted version of "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\model\EsbNode.java" for my node <-- the fuction "createAction()" is called when the node is inserted, here custom actions can be added for example
-make a adapted version of "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\properties\EsbGeneralConfigurationComposite.java"
-make a adapted version of "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\properties\EsbConfigurationComposite.java
-make a adapted version of "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\properties\EsbInputOutputConfigurationComposite.java
-make a adapted version of "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\properties\EsbNodeSection.java
to "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\xml\ProcessDefinitionDomAdapter.java" add line as
NODE_TYPES.put("textoutput", "node-element");
and
} else if ("textoutput".equals(type)) {
processDefinition.addNodeElement((AbstractNode)jpdlElement);
Delete
C:\eclipse\configuration\org.eclipse.core.runtime\.mainData.*
because it contains a copy of "plugin.xml"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192743#4192743
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192743
15 years, 12 months
[Design of JBoss jBPM] - Re: Create a custom Node in Graphical Designer
by pgros
I made a small readme for myselfe, maybe it is useful for anybody:
the created node is " "
Install the Plugin
Modify plugin.xml
add
add
add
add
add
<!-- The property xmlElement="textoutput" stands for the node in the generated xml-processdefinition file -->
add
create the following classes and add them to "ui.jar" in the pluginfolder (extract the jar, add the .class files in the right directory, zip it back into a jar file)
-make a adapted version of "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\xml\EsbNodeMapper.java" for my node
-make a adapted version of "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\model\EsbNode.java" for my node <-- the fuction "createAction()" is called when the node is inserted, here custom actions can be added for example
-make a adapted version of "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\properties\EsbGeneralConfigurationComposite.java"
-make a adapted version of "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\properties\EsbConfigurationComposite.java
-make a adapted version of "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\properties\EsbInputOutputConfigurationComposite.java
-make a adapted version of "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\properties\EsbNodeSection.java
to "designer\jpdl\org.jbpm.gd.jpdl\src\org\jbpm\gd\jpdl\xml\ProcessDefinitionDomAdapter.java" add line as
NODE_TYPES.put("textoutput", "node-element");
and
} else if ("textoutput".equals(type)) {
processDefinition.addNodeElement((AbstractNode)jpdlElement);
Delete
C:\eclipse\configuration\org.eclipse.core.runtime\.mainData.1
because it contains a copy of "plugin.xml"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192742#4192742
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192742
15 years, 12 months