| | |
| | | global class NFM402Batch implements Database.Batchable<sObject>, Database.AllowsCallouts { |
| | | public String query; |
| | | |
| | | // public BatchIF_Log__c iflog; |
| | | global NFM402Batch() { |
| | | this.query = query; |
| | | // iflog = new BatchIF_Log__c(); |
| | | // iflog.Type__c = 'NFM402Batch'; |
| | | } |
| | | |
| | | global Database.QueryLocator start(Database.BatchableContext bc) { |
| | |
| | | for (String id : tempids ) { |
| | | ids.add(id); |
| | | } |
| | | // iflog.Log__c = 'ids '+ids; |
| | | |
| | | try { |
| | | if (ids.size()>0) { |
| | |
| | | } |
| | | } |
| | | catch (Exception e) { |
| | | // iflog.Log__c += 'e:: '+e.getMessage(); |
| | | // iflog.Log__c += 'e:getCause: '+e.getCause(); |
| | | System.debug(e.getStackTraceString()); |
| | | } |
| | | // insert iflog; |
| | | |
| | | } |
| | | |