use of org.wso2.carbon.bpel.core.ode.integration.store.ProcessConfigurationImpl in project carbon-business-process by wso2.
the class ProcessStoreImpl method onBPELPackageReload.
public void onBPELPackageReload(Integer tenantId, String duName, List<ProcessConfigurationImpl> pConfs) {
CopyOnWriteArrayList<QName> pids = new CopyOnWriteArrayList<QName>();
for (ProcessConf pConf : pConfs) {
pids.add(pConf.getProcessId());
}
updateProcessAndDUMaps(tenantId, duName, pids, true);
Collections.sort(pConfs, BY_DEPLOYEDDATE);
for (ProcessConfigurationImpl processConfiguration : pConfs) {
try {
if (log.isDebugEnabled()) {
log.debug("Firing state change event --" + processConfiguration.getState() + "-- for process conf " + processConfiguration.getPackage() + "located at " + processConfiguration.getAbsolutePathForBpelArchive());
}
fireStateChange(processConfiguration.getProcessId(), processConfiguration.getState(), duName);
} catch (Exception e) {
log.error("Error while firing state change event for process " + processConfiguration.getProcessId() + " in deployment unit " + duName + ".");
}
}
}
Aggregations