Hi, i am developer in seam, and i have had a problem with call the task from jbpm into the webbean, well, i'd like to create just um process with many instance de um processo, but when i am calling de anotation @CreateProcess it allways created a new process, so, i want to know what is wrong, i added parte of code for help.
@CreateProcess(definition="planejamento-abordagem")
public String createPlanejamentoAbordagem() {
log.info("Iniciando planejamento de abordagem da proposta de convenio");
return"/CadastroEntidade.xhtml";
}
@StartTask
public String criarAgenda(){
Agenda agenda = new Agenda();
return "/Agenda.xhtml";
}
@EndTask
public String gravarAgenda(){
gerenciadorPropostaConvenio.salvarAgenda(agenda);
return "/Concluido.xhtml";
}
it creates 1 instance of a process each time you call into the bean. That is how it is supposed to work