public static final class PassState.Builder extends Object implements InputOutputResultPathBuilder<PassState.Builder>, ParametersBuilder<PassState.Builder>
PassState.Buildable.Utils| Modifier and Type | Method and Description | 
|---|---|
| PassState | build() | 
| PassState.Builder | comment(String comment)OPTIONAL. | 
| PassState.Builder | inputPath(String inputPath)OPTIONAL. | 
| PassState.Builder | outputPath(String outputPath)OPTIONAL. | 
| PassState.Builder | parameters(Object parameters)OPTIONAL. | 
| PassState.Builder | parameters(String parameters)OPTIONAL. | 
| PassState.Builder | result(Object result)OPTIONAL. | 
| PassState.Builder | result(String result)OPTIONAL. | 
| PassState.Builder | resultPath(String resultPath)OPTIONAL. | 
| PassState.Builder | transition(Transition.Builder transition)REQUIRED. | 
public PassState.Builder comment(String comment)
comment - New comment.public PassState.Builder result(Object result)
result - Object that will be serialized into the JSON document representing this states result.public PassState.Builder result(String result)
result - JSON result represented as a string.public PassState.Builder inputPath(String inputPath)
InputOutputPathBuilderinputPath in interface InputOutputPathBuilder<PassState.Builder>inputPath - New path value.public PassState.Builder outputPath(String outputPath)
InputOutputPathBuilderoutputPath in interface InputOutputPathBuilder<PassState.Builder>outputPath - New path value.public PassState.Builder resultPath(String resultPath)
ResultPathBuilderresultPath in interface ResultPathBuilder<PassState.Builder>resultPath - New path value.public PassState.Builder parameters(String parameters)
ParametersBuilder
 
 {
 ...
   "Parameters": {
      "flagged": true,
      "parts": {
         "first.$": "$.vals[0]",
         "last3.$": "$.vals[3:]"
      }
   }
 ...
 }
 
 
 And suppose that the input to the state is as follows:
 
 
 {
    "flagged": 7,
    "vals": [0, 10, 20, 30, 40, 50]
 }
 
 
 Then the effective input to the task will be as follows:
 
 
 {
    "flagged": true,
    "parts": {
       "first": 0,
       "last3": [30, 40, 50]
    }
 }
 
 parameters in interface ParametersBuilder<PassState.Builder>parameters - Raw JSON string representing Parameters value.public PassState.Builder parameters(Object parameters)
ParametersBuilder
 
 {
 ...
   "Parameters": {
      "flagged": true,
      "parts": {
         "first.$": "$.vals[0]",
         "last3.$": "$.vals[3:]"
      }
   }
 ...
 }
 
 
 And suppose that the input to the state is as follows:
 
 
 {
    "flagged": 7,
    "vals": [0, 10, 20, 30, 40, 50]
 }
 
 
 Then the effective input to the task will be as follows:
 
 
 {
    "flagged": true,
    "parts": {
       "first": 0,
       "last3": [30, 40, 50]
    }
 }
 
 parameters in interface ParametersBuilder<PassState.Builder>parameters - Object that will be serialized into the JSON document representing this states parameters.public PassState.Builder transition(Transition.Builder transition)
transition - New transition.Copyright © 2021. All rights reserved.