JBoss Community

Continue Previous Process Instance

created by TC ONG in jBPM - View the full discussion

I am using Drools 5.4 and jbom 5.3.

I am using perisitance.

I run my apps in Tomcat + Spring + Hibernate.

 

I started with:

ksession = JPAKnowledgeService.newStatefulKnowledgeSession( kbase, null, env );

ProcessInstance processInstance = ksession.startProcess(processName, processVariables);

these works.

 

Then I try:

ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId, kbase, null, env );

int processInstancesSize = ksession.getProcessInstances().size();     // = 0

 

at this stage ksession.getProcessInstances() is empty.

So how can I continue my processInstance?

How to do it?

Any example?

I'll search around the github, but any help will be great.

Thanks.

Reply to this message by going to Community

Start a new discussion in jBPM at Community