Skip to content

Commit

Permalink
added some binding examples
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-higgins committed Mar 17, 2024
1 parent 73444ad commit ffb2df6
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.fluxtion.example.reference;

import com.fluxtion.compiler.Fluxtion;
import com.fluxtion.compiler.builder.dataflow.DataFlow;

public class FunctionalStatic {

public static String toUpper(String incoming){
return incoming.toUpperCase();
}

public static void main(String[] args) {
var processor = Fluxtion.interpret(cfg -> {
DataFlow.subscribe(String.class)
.console("input:{}")
.map(FunctionalStatic::toUpper)
.console("transformed:{}");
});

processor.init();
processor.onEvent("hello world");
}
}

0 comments on commit ffb2df6

Please sign in to comment.