updated docs/errors

This commit is contained in:
2025-03-11 12:22:12 -04:00
parent c1cc36afc2
commit 1d2250abd4
2 changed files with 9 additions and 3 deletions

View File

@@ -73,9 +73,9 @@ public class MqDeploymentEventListener implements ActivitiEntityEventListener<De
try { try {
Set<String> executionIds = this.subscriptionService.cancelAllOtherVersions(procDefId); Set<String> executionIds = this.subscriptionService.cancelAllOtherVersions(procDefId);
if (this.logger.isDebugEnabled()) { if (this.logger.isDebugEnabled()) {
this.logger.debug("Subscription executions ended early: {}: {}", procDefId, executionIds); this.logger.debug("Subscription starter executions ended early: {}: {}", procDefId, executionIds);
} else { } else {
this.logger.info("Subscriptions ended early: {}: {}", procDefId, executionIds.size()); this.logger.info("Subscriptions starter ended early: {}: {}", procDefId, executionIds.size());
} }
} catch (Exception e) { } catch (Exception e) {
this.logger.error("The subscriptions could not be cancelled: " + procDefId, e); this.logger.error("The subscriptions could not be cancelled: " + procDefId, e);

View File

@@ -78,9 +78,15 @@ public class MqSubscribeLooper {
} }
private void loop(String tenantId, String processDefinitionId) { private void loop(String tenantId, String processDefinitionId) {
ProcessDefinition procDef = this.services.getRepositoryService().getProcessDefinition(processDefinitionId);
if (procDef == null)
throw new IllegalArgumentException("The process definition does not exist: " + processDefinitionId);
if (procDef.isSuspended())
throw new IllegalStateException("The process definition is suspended: " + processDefinitionId);
ServiceTask task = this.registry.findMqStartSubscribeTask(processDefinitionId); ServiceTask task = this.registry.findMqStartSubscribeTask(processDefinitionId);
if (task == null) if (task == null)
throw new IllegalArgumentException(); throw new IllegalArgumentException("The process definition does not qualify for MQ subscription looping: " + processDefinitionId);
int concurrency = this.determineConcurrency(task); int concurrency = this.determineConcurrency(task);
this.logger.debug("Process definition MQ subscription task is configured for concurrency: {}: {}", processDefinitionId, concurrency); this.logger.debug("Process definition MQ subscription task is configured for concurrency: {}: {}", processDefinitionId, concurrency);