[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
16 years, 1 month
[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
16 years, 1 month