What is the value of the stepVar variable after the processing of records in a Batch Job?
What is the value of the stepVar variable after the processing of records in a Batch Job?
In a Batch Job, variables created during the batch steps are scoped to those steps and do not persist through to the On Complete phase. Therefore, the value of such a variable, stepVar in this case, would be null after the batch steps have completed, as it is not preserved or accessible in the On Complete phase.
This question would be better viewed in anypoint studio
Any variables created during batch Steps are record-specific, they are not available outside batch steps - in On Complete Phase, so var stepVar = null