Pedro Gonçalves [
https://community.jboss.org/people/pgoncalves] created the discussion
"Re: Integrating jBPM 5 into web application - architecture"
To view the discussion, visit:
https://community.jboss.org/message/743352#743352
--------------------------------------------------------------
What I do is this:
public void startProcess(CoreData coreData, String definitionId) {
//build variables.......
ProcessInstance processInstance = kSession.startProcess(definitionId, variables);
ProcessInfoData processInfoData = new ProcessInfoData();
processInfoData.setkSessionId(kSession.getId());
processInfoData.setProcessInstanceId(processInstance.getId());
serviceProcessInfo.create(processInfoData);
}
So, in my db, I have a table that maps KnowledgeSession <---> ProcessInstance
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/743352#743352]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]