1.4.10 Function Blocks Example
Example - Function Blocks Example
int file_count; int UDR_count; initialize { file_count = 0; } beginBatch { UDR_count = 0; } consume { udrRoute( input ); UDR_count = UDR_count + 1; } endBatch { file_count = file_count + 1; debug( "Number of UDRs in file:" + UDR_count ); } deinitialize { debug(" Number of executed files:" + file_count ); } exceptionHandling { debug(" Exception occurred, stacktrace: " + exception.stackTrace); }
Next: