/**
* Activate process dehydration.
*/
private void activateDehydration() {
if (bpelServerConfiguration.isProcessDehydrationEnabled()) {
CountLRUDehydrationPolicy dehy = new CountLRUDehydrationPolicy();
if (bpelServerConfiguration.getProcessDehydrationMaxAge() > 0) {
dehy.setProcessMaxAge(bpelServerConfiguration.getProcessDehydrationMaxAge());
if (log.isDebugEnabled()) {
log.debug("Process Max Age: "
+ bpelServerConfiguration.getProcessDehydrationMaxAge());
}
}
if (bpelServerConfiguration.getProcessDehydraionMaxCount() > 0) {
dehy.setProcessMaxCount(bpelServerConfiguration.getProcessDehydraionMaxCount());
if (log.isDebugEnabled()) {
log.debug("Process Max Count: "
+ bpelServerConfiguration.getProcessDehydraionMaxCount());
}
}