@Test void testInputOf() { SdkWorkflowBuilder builder = new SdkWorkflowBuilder(); assertEquals( SdkBindingData.ofOutputReference("start-node", "input1", LiteralTypes.STRING), builder.inputOfString("input1")); assertEquals( SdkBindingData.ofOutputReference("start-node", "input2", LiteralTypes.BOOLEAN), builder.inputOfBoolean("input2")); assertEquals( SdkBindingData.ofOutputReference("start-node", "input3", LiteralTypes.DATETIME), builder.inputOfDatetime("input3")); assertEquals( SdkBindingData.ofOutputReference("start-node", "input4", LiteralTypes.DURATION), builder.inputOfDuration("input4")); assertEquals( SdkBindingData.ofOutputReference("start-node", "input5", LiteralTypes.FLOAT), builder.inputOfFloat("input5")); assertEquals( SdkBindingData.ofOutputReference("start-node", "input6", LiteralTypes.INTEGER), builder.inputOfInteger("input6")); }
private SdkBindingData inputOf(String name, SimpleType type, String help) { LiteralType literalType = LiteralType.ofSimpleType(type); Variable variable = Variable.builder().literalType(literalType).description(help).build(); SdkBindingData bindingData = SdkBindingData.ofOutputReference(START_NODE_ID, name, literalType); inputs.put(name, variable); return bindingData; }
SdkWorkflowBuilder { private SdkBindingData inputOf(String name, SimpleType type, String help) { LiteralType literalType = LiteralType.ofSimpleType(type); Variable variable = Variable.builder().literalType(literalType).description(help).build(); SdkBindingData bindingData = SdkBindingData.ofOutputReference(START_NODE_ID, name, literalType); inputs.put(name, variable); return bindingData; } }
SdkWorkflowBuilder { private SdkBindingData inputOf(String name, SimpleType type, String help) { LiteralType literalType = LiteralType.ofSimpleType(type); Variable variable = Variable.builder().literalType(literalType).description(help).build(); SdkBindingData bindingData = SdkBindingData.ofOutputReference(START_NODE_ID, name, literalType); inputs.put(name, variable); return bindingData; } SdkWorkflowBuilder(); }
SdkWorkflowBuilder { private SdkBindingData inputOf(String name, SimpleType type, String help) { LiteralType literalType = LiteralType.ofSimpleType(type); Variable variable = Variable.builder().literalType(literalType).description(help).build(); SdkBindingData bindingData = SdkBindingData.ofOutputReference(START_NODE_ID, name, literalType); inputs.put(name, variable); return bindingData; } SdkWorkflowBuilder(); SdkNode apply(String nodeId, SdkTransform transform); SdkNode apply(String nodeId, SdkTransform transform, Map<String, SdkBindingData> inputs); static SdkBindingData literalOfInteger(long value); static SdkBindingData literalOfFloat(double value); static SdkBindingData literalOfString(String value); static SdkBindingData literalOfBoolean(boolean value); static SdkBindingData literalOfDatetime(Instant value); static SdkBindingData literalOfDuration(Duration value); SdkBinding mapOf(String name1, SdkBindingData value1); SdkBinding mapOf(
      String name1, SdkBindingData value1, String name2, SdkBindingData value2); SdkBinding mapOf(
      String name1,
      SdkBindingData value1,
      String name2,
      SdkBindingData value2,
      String name3,
      SdkBindingData value3); SdkBinding mapOf(
      String name1,
      SdkBindingData value1,
      String name2,
      SdkBindingData value2,
      String name3,
      SdkBindingData value3,
      String name4,
      SdkBindingData value4); SdkBinding mapOf(
      String name1,
      SdkBindingData value1,
      String name2,
      SdkBindingData value2,
      String name3,
      SdkBindingData value3,
      String name4,
      SdkBindingData value4,
      String name5,
      SdkBindingData value5); SdkBinding tupleOf(SdkNode... nodes); SdkBindingData inputOfInteger(String name); SdkBindingData inputOfInteger(String name, String help); SdkBindingData inputOfString(String name); SdkBindingData inputOfString(String name, String help); SdkBindingData inputOfBoolean(String name); SdkBindingData inputOfBoolean(String name, String help); SdkBindingData inputOfDatetime(String name); SdkBindingData inputOfDatetime(String name, String help); SdkBindingData inputOfDuration(String name); SdkBindingData inputOfDuration(String name, String help); SdkBindingData inputOfFloat(String name); SdkBindingData inputOfFloat(String name, String help); void output(String name, SdkBindingData value); void output(String name, SdkBindingData value, String help); void applyInternal(SdkNode node); WorkflowTemplate toIdlTemplate(); }
SdkWorkflowBuilder { private SdkBindingData inputOf(String name, SimpleType type, String help) { LiteralType literalType = LiteralType.ofSimpleType(type); Variable variable = Variable.builder().literalType(literalType).description(help).build(); SdkBindingData bindingData = SdkBindingData.ofOutputReference(START_NODE_ID, name, literalType); inputs.put(name, variable); return bindingData; } SdkWorkflowBuilder(); SdkNode apply(String nodeId, SdkTransform transform); SdkNode apply(String nodeId, SdkTransform transform, Map<String, SdkBindingData> inputs); static SdkBindingData literalOfInteger(long value); static SdkBindingData literalOfFloat(double value); static SdkBindingData literalOfString(String value); static SdkBindingData literalOfBoolean(boolean value); static SdkBindingData literalOfDatetime(Instant value); static SdkBindingData literalOfDuration(Duration value); SdkBinding mapOf(String name1, SdkBindingData value1); SdkBinding mapOf(
      String name1, SdkBindingData value1, String name2, SdkBindingData value2); SdkBinding mapOf(
      String name1,
      SdkBindingData value1,
      String name2,
      SdkBindingData value2,
      String name3,
      SdkBindingData value3); SdkBinding mapOf(
      String name1,
      SdkBindingData value1,
      String name2,
      SdkBindingData value2,
      String name3,
      SdkBindingData value3,
      String name4,
      SdkBindingData value4); SdkBinding mapOf(
      String name1,
      SdkBindingData value1,
      String name2,
      SdkBindingData value2,
      String name3,
      SdkBindingData value3,
      String name4,
      SdkBindingData value4,
      String name5,
      SdkBindingData value5); SdkBinding tupleOf(SdkNode... nodes); SdkBindingData inputOfInteger(String name); SdkBindingData inputOfInteger(String name, String help); SdkBindingData inputOfString(String name); SdkBindingData inputOfString(String name, String help); SdkBindingData inputOfBoolean(String name); SdkBindingData inputOfBoolean(String name, String help); SdkBindingData inputOfDatetime(String name); SdkBindingData inputOfDatetime(String name, String help); SdkBindingData inputOfDuration(String name); SdkBindingData inputOfDuration(String name, String help); SdkBindingData inputOfFloat(String name); SdkBindingData inputOfFloat(String name, String help); void output(String name, SdkBindingData value); void output(String name, SdkBindingData value, String help); void applyInternal(SdkNode node); WorkflowTemplate toIdlTemplate();  }