-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds ability to transform payload in destination
- Loading branch information
Showing
7 changed files
with
99 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...n/java/net/savantly/nexus/flow/dom/connections/webhook/WebhookDestinationHookFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package net.savantly.nexus.flow.dom.connections.webhook; | ||
|
||
import org.apache.causeway.applib.services.repository.RepositoryService; | ||
import org.springframework.boot.web.client.RestTemplateBuilder; | ||
|
||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import net.savantly.nexus.flow.dom.flowContext.FlowContextFactory; | ||
import net.savantly.nexus.flow.executor.javascript.JavascriptExecutor; | ||
import net.savantly.nexus.webhooks.dom.webhook.Webhooks; | ||
|
||
@RequiredArgsConstructor | ||
public class WebhookDestinationHookFactory { | ||
|
||
private final FlowContextFactory flowContextFactory; | ||
private final JavascriptExecutor javascriptExecutor; | ||
private final RepositoryService repositoryService; | ||
private final Webhooks webhooks; | ||
private final RestTemplateBuilder restTemplateBuilder; | ||
private final ObjectMapper objectMapper; | ||
|
||
public WebhookDestinationHook createHook() { | ||
return new WebhookDestinationHook(flowContextFactory, javascriptExecutor, repositoryService, webhooks, | ||
restTemplateBuilder, objectMapper); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters