use of org.jbpm.shared.services.impl.commands.MergeObjectCommand in project jbpm by kiegroup.
the class DeploymentStore method markDeploymentUnitAsObsolete.
public void markDeploymentUnitAsObsolete(DeploymentUnit unit) {
DeploymentStoreEntry entry = findDeploymentStoreByDeploymentId(unit.getIdentifier());
if (entry != null) {
// update only
// 0 - disabled, 1 - enabled, -1 - obsolete
entry.setState(STATE_OBSOLETE);
entry.setUpdateDate(new Date());
commandService.execute(new MergeObjectCommand(entry));
}
}
Aggregations