Skip to content

Commit

Permalink
refactor: define the conditional tenant configuration more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
coesterheld committed Nov 29, 2024
1 parent 6ea8110 commit 512d3a5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,14 @@ public void openWorkers() {
.handler(userTaskHandler)
.timeout(Integer.MAX_VALUE) // user-tasks are not fetched more than once
.name(workerId);

if (tenantId != null) {
userTaskWorker.tenantId(tenantId);
}

final var workerProperties = camunda8Properties.getUserTaskWorkerProperties(workflowModuleId);
workerProperties.applyToUserTaskWorker(userTaskWorker);
return tenantId != null ? userTaskWorker.tenantId(tenantId) : userTaskWorker;
return userTaskWorker;
})
.forEach(workers::add);

Expand Down

0 comments on commit 512d3a5

Please sign in to comment.