package lite.flow.example.flow;

import static lite.flow.api.flow.define.FlowBuilder.*;

import lite.flow.api.flow.define.Flow;
import lite.flow.example.component.Adder;
import lite.flow.example.component.StringSplitter;
import lite.flow.example.component.StringToInt;

public class ConvertAddNumbersFlow {

	public static Flow flow = defineFlow("ConvertAddNumbersFlow")
			.component("StringSplitter", StringSplitter.class, 	10,   60)
			.component("ConvertAtoInt", StringToInt.class, 		230,  30)
			.component("ConvertBtoInt", StringToInt.class, 		230, 110)
			.component("Adder", 		Adder.class, 			450,  60)
			
			.connect("StringSplitter", 	"outA", "ConvertAtoInt", "str")
			.connect("StringSplitter", 	"outB", "ConvertBtoInt", "str")
			.connect("ConvertAtoInt", 	"number", "Adder", "a")
			.connect("ConvertBtoInt", 	"number", "Adder", "b")
			
			.get();

}

@@ -842,24 +842,131 @@
 %22, %22b%22)%0A%09%09%09%0A
+%09%09%09.flowInput(%22NumbersString%22, %22StringSplitter%22, %22str%22)%0A%09%09%09.flowOutput(%22ResultNumber%22, %22Adder%22, %22number%22)%0A%0A
 %09%09%09.get();%0A%0A
@@ -964,11 +964,10 @@
 .get();%0A
-%0A
 %7D%0A

add inputs and outputs to flow