Search in sources :

Example 1 with RemoveObjectCommand

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;
}
Also used : ErrorInfo(org.kie.api.executor.ErrorInfo) RemoveObjectCommand(org.jbpm.shared.services.impl.commands.RemoveObjectCommand)

Example 2 with RemoveObjectCommand

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);
    }
}
Also used : RemoveObjectCommand(org.jbpm.shared.services.impl.commands.RemoveObjectCommand)

Aggregations

RemoveObjectCommand (org.jbpm.shared.services.impl.commands.RemoveObjectCommand)2 ErrorInfo (org.kie.api.executor.ErrorInfo)1