Use the For Each scope to process individual collection elements sequentially and return the original payload
Use the Batch Job scope(EE only) for complex batch jobs
Created expecially for processing data sets
Splits messages into individual records and performs actions upon each record
Can have multiple batch steps and these can have filters
Record-level data is persisted across steps using variables
Can handle record level failures so the job is not aborted
The batch job returns an object with the result of the job for insight into which records were processed or failed
1. A Batch Job scope has three batch steps. An event processor in the second batch step throws an error because the input data is incomplete.
What is the default behavior of the batch job after the error is thrown? A All processing of the batch job stops B Event processing continus to the third batch step C The second batch step is retried D The first batch step is retried
答案:A
2. Refer to the exhibit. What are the values of the counter and stepVar variables in the On Complete phase?
A counter:1, stepVar:31 B counter:1, stepVar:null C counter:31, stepVar:null D counter:31, stepVar:31
答案:B
3. Refer to the exhibit. What is the output of the Logger component in the Batch Job?
A [.33] [.667] [1] [1.333]
B [.333] [1]
C [.333,1]
D [.333,.667,1,1.333]
答案:C,先过滤掉了整除2的2和4,再除以3,batch:aggregator size=2
4. Refer to the exhibit. The payload[1,2,3] is passed to the Batch Job scope. In Batch_Step_1, a variables named batchStepPayload is set to the current payload.
What is the value of the last log message after one batch job completes?
A [11,12,13] B 30 C 13 D 10
答案:C,这里问的是last log message
5. Refer to the exhibits. The Set Payload component sets the payload to a Map object(not an Array).
The File Write operation writes out files based on this Map object. How many files are written to the file system when the flow executes?