Hello,
I'm trying to create a custom node type called my-step which should be a container like super-state.
I'm using jbpm-3.1.4 and set up the junit test case scenario from the documentation, chapter "3.2. Database example". I changed the method "deployProcessDefinition": i switched "JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();" to be the first statement in this method, so that "...ProcessDefinition.parseXmlString..." uses the config defined in the unit test and not some default settings. Then I changed the config to point to my node-types.xml where I added this line:
<node-type element="my-step" class="test.Step" />
package test;
import org.jbpm.graph.def.SuperState;
public class Step extends SuperState {
private static final long serialVersionUID = 1L;
public Step() {
System.err.println("Hello there.");
}
public Step(String name) {
super(name);
System.err.println("Hello: " + name);
}
}
org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session ... Caused by: org.hibernate.HibernateException: instance not of expected entity type: test.Step is not a: org.jbpm.graph.def.Node ...