SCM API Developer's Reference

scmc.fflib_BatchInfoController

global with sharing class fflib_BatchInfoController

scmc.fflib_BatchInfoController.InfoProgress

global class InfoProgress

Double check different error scenarios return -2 if there is no status defined. return 100 if the Batch Control has finished the job whether the status is error or not. return -1 if the Batch Control is in the middle of a job or there is any other issue.