use of org.jbpm.shared.services.impl.commands.RemoveObjectCommand in project jbpm by kiegroup.
the class JPAExecutorStoreService method removeError.
@Override
public ErrorInfo removeError(Long errorId) {
ErrorInfo error = findError(errorId);
commandService.execute(new RemoveObjectCommand(error));
return error;
}
use of org.jbpm.shared.services.impl.commands.RemoveObjectCommand in project jbpm by kiegroup.
the class TableCaseIdGenerator method unregister.
@Override
public void unregister(String prefix) {
if (removeOnUnregister) {
CaseIdInfo caseIdInfo = findCaseIdInfoByPrefix(prefix);
if (caseIdInfo != null) {
commandService.execute(new RemoveObjectCommand(caseIdInfo));
logger.debug("Removed permanently case id info for prefix {}", prefix);
}
} else {
logger.debug("Skipping remove of case id info for prefix {}", prefix);
}
}
Aggregations