067_simple_java_source_operator

/*
This example shows a very simple Java source operator.
*/
namespace com.acme.test;

composite Temp1 {
	graph
		// Invoke a Java source operator that will keep generating
		// random data periodically.
		// (See the Java operator code in impl/src/java directory.)
		stream<int32 x> MyData = MyOp() {
		}
		
		// Print the data generated by the Java source operator.
		() as Test1 = Custom(MyData) {
			logic
				onTuple MyData: {
					printStringLn("MyData=" + (rstring)MyData);
				}
		}
}