I try from the webapp to add a new action to a process definition
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
Caller c = (Caller)del.getInstance();
I get this exception
Caused by: java.lang.NullPointerException
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