[jboss-dev-forums] [Design of JBoss jBPM] - How to add custom node?

anas do-not-reply at jboss.com
Sat Jan 5 07:37:00 EST 2008


Dears,

I'm trying to add a custom node to my application,
by putting the jbpm.cfg.xml and node-types.xml on the class path,
and adding this line to the node-types.xml
<node-type element="custom-node" class="test.MyNode" />
MyNode.java class extends Node class 

package test;


import org.jbpm.graph.node.State;

public class MyNode extends State {
	public MyNode() {
		System.err.println("hellooo it is my node");
	}	
}

in the processdefinition.xml I changed the node to <custom-node>....</custom-node>
but the problem is the graph damaged and when i'm trying to instanciate this process definition i got an exception?
can any body help me plz??
and if you have a reffrence that discuss by examples  how to add custom (nodes, actions,.....) plz send it to me because i searched alot on that by i didn't found anything.

thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117277#4117277

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117277



More information about the jboss-dev-forums mailing list