22 lines
582 B
OpenEdge ABL
22 lines
582 B
OpenEdge ABL
global class updateStatusjob implements Database.Batchable<sObject>
|
|
{
|
|
global Database.QueryLocator start(Database.BatchableContext BC)
|
|
{
|
|
String query = 'SELECT Id,Industry, Active__c FROM Account';
|
|
|
|
return Database.getQueryLocator(query);
|
|
}
|
|
global void execute(Database.BatchableContext BC, List<Account> scope)
|
|
{
|
|
for(Account a : scope)
|
|
{
|
|
a.Industry = 'Technology';
|
|
a.Active__c='Yes';
|
|
}
|
|
update scope;
|
|
}
|
|
global void finish(Database.BatchableContext BC){
|
|
|
|
}
|
|
|
|
} |