-
1. Re: Update PRocess JBPM 6.1
abhijithumbe Dec 31, 2016 3:20 AM (in response to hakaisha)To upgrade existing process instances you can use WorkflowProcessInstanceUpgrader API. To add new assets(rules/bpmn process) at runtime you can use kieScanner API's.
-
2. Re: Update PRocess JBPM 6.1
hakaisha Jan 2, 2017 12:29 PM (in response to abhijithumbe)Thank you.
To explane it better, can i use the apis with my Java code?
private void createKieSession(String kSessionName, String kieResourceFolder) {
try {
KieServices kService = KieServices.Factory.get();
KieRepository kRepository = kService.getRepository();
KieModule kModule = kRepository
.addKieModule(kService.getResources().newFileSystemResource(kieResourceFolder))
KieContainer kContainer = kService.newKieContainer(kModule.getReleaseId());
kieSession = kContainer.newKieSession(kSessionName);
} catch (Throwable t) {
throw t;
}
}
public void fire() {
kieSession.signalEvent(SIGNAL_NAME, DO_NOT_CLOSE, processInstance.getId());
}
public void startProcess() {
try {
processInstance = kieSession.createProcessInstance(processInfo.getProcessID(), parameterContainerMap);
kieSession.startProcessInstance(processInstance.getId());
} catch (Throwable t) {
logger.catching(t);
throw t;
}
}