SNIPPET:
/*************** START OF THE CLASS***************************/
List lstAsyncApexJob = [SELECT Id, ApexClass.Name, status FROM AsyncApexJob WHERE status = 'Processing' AND Id != BC.getJobId AND JobType='BatchApex'];
if(!lstAsyncApexJob.IsEmpty()){
return emty_List;
}else{
return Query_List;
}
/*************** REST OF THE CLASS***************************/
Comments
Post a Comment