File tree Expand file tree Collapse file tree 4 files changed +110
-2
lines changed
src/main/java/com/apiflows/model Expand file tree Collapse file tree 4 files changed +110
-2
lines changed Original file line number Diff line number Diff line change 1+ package com .apiflows .model ;
2+
3+ public class PayoadReplacement {
4+
5+ private String target ;
6+ private String value ;
7+
8+ public String getTarget () {
9+ return target ;
10+ }
11+
12+ public void setTarget (String target ) {
13+ this .target = target ;
14+ }
15+
16+ public String getValue () {
17+ return value ;
18+ }
19+
20+ public void setValue (String value ) {
21+ this .value = value ;
22+ }
23+ }
Original file line number Diff line number Diff line change 1+ package com .apiflows .model ;
2+
3+ public class RequestBody {
4+
5+ private String contentType ;
6+ private Object payload ;
7+ private PayoadReplacement payoadReplacement ;
8+
9+ public String getContentType () {
10+ return contentType ;
11+ }
12+
13+ public void setContentType (String contentType ) {
14+ this .contentType = contentType ;
15+ }
16+
17+ public Object getPayload () {
18+ return payload ;
19+ }
20+
21+ public void setPayload (Object payload ) {
22+ this .payload = payload ;
23+ }
24+
25+ public PayoadReplacement getPayoadReplacement () {
26+ return payoadReplacement ;
27+ }
28+
29+ public void setPayoadReplacement (PayoadReplacement payoadReplacement ) {
30+ this .payoadReplacement = payoadReplacement ;
31+ }
32+ }
Original file line number Diff line number Diff line change 1010
1111public class Step {
1212
13+ private String description ;
1314 private String stepId ;
1415 private String operationId ;
1516 private String operationPath ;
1617 private Operation operation ;
1718 private String workflowId ;
1819 private Workflow workflow ;
19- private String description ;
20- private String dependsOn ;
2120 private List <Parameter > parameters = new ArrayList <>();
21+
22+ private RequestBody requestBody ;
23+ private String dependsOn ;
2224 private List <Criterion > successCriteria = new ArrayList <>();
2325 private Map <String , String > outputs = new HashMap <>();
2426 private List <SuccessAction > onSuccess = new ArrayList <>();
@@ -182,6 +184,19 @@ public Step parameters(List<Parameter> parameters) {
182184 return this ;
183185 }
184186
187+ public RequestBody getRequestBody () {
188+ return requestBody ;
189+ }
190+
191+ public void setRequestBody (RequestBody requestBody ) {
192+ this .requestBody = requestBody ;
193+ }
194+
195+ public Step requestBody (RequestBody requestBody ) {
196+ this .requestBody = requestBody ;
197+ return this ;
198+ }
199+
185200 public Step successCriteria (List <Criterion > successCriteria ) {
186201 this .setSuccessCriteria (successCriteria );
187202 return this ;
Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ public class Workflow {
1414 private String summary ;
1515 private String description ;
1616 private Schema inputs ;
17+
18+ private String dependsOn ;
19+
20+ private List <Parameter > parameters = new ArrayList <>();
21+ private List <SuccessAction > successActions = new ArrayList <>();
22+ private List <FailureAction > failureActions = new ArrayList <>();
23+
1724 private List <Step > steps = new ArrayList <>();
1825 private Map <String , String > outputs = new HashMap <>();
1926
@@ -95,4 +102,35 @@ public Workflow inputs(Schema inputs) {
95102 return this ;
96103 }
97104
105+ public String getDependsOn () {
106+ return dependsOn ;
107+ }
108+
109+ public void setDependsOn (String dependsOn ) {
110+ this .dependsOn = dependsOn ;
111+ }
112+
113+ public List <Parameter > getParameters () {
114+ return parameters ;
115+ }
116+
117+ public void setParameters (List <Parameter > parameters ) {
118+ this .parameters = parameters ;
119+ }
120+
121+ public List <SuccessAction > getSuccessActions () {
122+ return successActions ;
123+ }
124+
125+ public void setSuccessActions (List <SuccessAction > successActions ) {
126+ this .successActions = successActions ;
127+ }
128+
129+ public List <FailureAction > getFailureActions () {
130+ return failureActions ;
131+ }
132+
133+ public void setFailureActions (List <FailureAction > failureActions ) {
134+ this .failureActions = failureActions ;
135+ }
98136}
You can’t perform that action at this time.
0 commit comments