-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating dynamic workflow using json mediation rules
- Loading branch information
1 parent
84c614a
commit 02fdd13
Showing
5 changed files
with
144 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.orkes.samples.models; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.Map; | ||
|
||
@Data | ||
public class Distribution { | ||
private String translation; | ||
private String distributeTo; | ||
private String sendToORB = "Y"; | ||
private String taskType = "HTTP"; | ||
private String natsWorkflowName; | ||
private Integer natsWorkflowVersion; | ||
private Map<String, Object> natsWorkflowInput; | ||
} |
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,15 @@ | ||
package io.orkes.samples.models; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.Map; | ||
|
||
@Data | ||
public class Enrichment { | ||
private String enrichmentType; | ||
private String sendToORB = "N"; | ||
private String taskType = "HTTP"; | ||
private String natsWorkflowName; | ||
private Integer natsWorkflowVersion; | ||
private Map<String, Object> natsWorkflowInput; | ||
} |
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,12 @@ | ||
package io.orkes.samples.models; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class MediationRules { | ||
private List<Enrichment> enrichments; | ||
private List<Translation> translations; | ||
private List<Distribution> distributions; | ||
} |
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,18 @@ | ||
package io.orkes.samples.models; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@Data | ||
public class Translation { | ||
private String name; | ||
private List<String> enrichments; | ||
private String sendToORB = "N"; | ||
private String taskType = "HTTP"; | ||
private String natsWorkflowName; | ||
private Integer natsWorkflowVersion; | ||
private Map<String, Object> natsWorkflowInput; | ||
|
||
} |
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