From 7e19df78a1e13f0e127c783dd2231e73ecd1439b Mon Sep 17 00:00:00 2001 From: Nathan Richardson Date: Thu, 24 Oct 2019 08:34:03 -0400 Subject: [PATCH] Fixed #850 Notifications on Web Service flows Web service flows will honor the Notification settings --- .../main/java/org/jumpmind/metl/core/runtime/AgentRuntime.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metl-core/src/main/java/org/jumpmind/metl/core/runtime/AgentRuntime.java b/metl-core/src/main/java/org/jumpmind/metl/core/runtime/AgentRuntime.java index e8b55ddf5..769661eee 100644 --- a/metl-core/src/main/java/org/jumpmind/metl/core/runtime/AgentRuntime.java +++ b/metl-core/src/main/java/org/jumpmind/metl/core/runtime/AgentRuntime.java @@ -486,8 +486,9 @@ public String scheduleNow(String userId, AgentDeploy deployment) { public FlowRuntime createFlowRuntime(String userId, AgentDeploy deployment, Map runtimeParameters) throws Exception { String executionId = createExecutionId(); + List notifications = operationsService.findNotificationsForDeployment(deployment); return new FlowRuntime(executionId, userId, findDeployed(deployment), agent, componentRuntimeFactory, definitionFactory, - flowStepsExecutionThreads, operationsService, configurationService, executionService, deployedResources, null, globalSettings, + flowStepsExecutionThreads, operationsService, configurationService, executionService, deployedResources, notifications, globalSettings, runtimeParameters); }