Thank you for answering all my questions. I have succeded to deploy my process and start it from tasklist. My next step is create an EjbProcessStarterclass that depends on DefaultEjbProcessApplication, which creates a new process instance with global variables. If I am not mistaken it should look like that isn't it?
@Startup
@Singleton
@DependsOn("DefaultEjbProcessApplication")
public class EjbProcessStarter {
@Inject
private RuntimeService runtimeService;
public void startProcessInstance() {
Map<String, Object> variables = new HashMap<String,Object>();
variables.put("manager", "false");
variables.put("personName", "Mireilla");
runtimeService.startProcessInstanceByKey("testProcess", variables);
}
}
and I will try to use Event Timer with the hope that it will work.