Hi,
I try from the webapp to add a new action to a process definition
using
Delegation del = new Delegation("test.Caller");
Action ac = new Action(del);
to create the action in the AdminBean.
But when I try to get the instance of the test.Caller
with
Caller c = (Caller)del.getInstance();
I get this exception
Caused by: java.lang.NullPointerException
at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:31)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:105)
at org.jbpm.instantiation.Delegation.getInstance(Delegation.java:90)
I have put my class test.Caller in jbpm-webapp-3.0.jar that is deployed.
I have tried, without success, to put this class in the process.par file as
I though there may be two different classloaders: one for the webapp and
one for the process.
The deployed process definition is not aware of the action (I do not want to)
as well as the hsqldb database. The latter is maybe my problem as there is
a SQL table JBPM_DELEGATION and JBPM_ACTION but I still do not know how
to access to the db by programming.
Do you have an idea what I can try to solve my problem?
Any suggestion very well-welcomed
Thanks in advance for your help
Carine