Skip to content

Latest commit

 

History

History

067_simple_java_source_operator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/*
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);
				}
		}
}