Accounting Apex API Developer Reference

c2g.SwitchBalanceModeScheduler

global with sharing class SwitchBalanceModeScheduler implements Schedulable

Schedules the Live Balance Type Switch to the other type.

Methods

SwitchBalanceModeScheduler

global SwitchBalanceModeScheduler()

Sets up a new Switch Balance Mode Schedule at a specific time.

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

String cronExpression = '0 0 13 ? * 5';
String jobName = 'Scheduled switch process';

System.schedule(jobName, cronExpression, new c2g.SwitchBalanceModeScheduler());

execute

global void execute(SchedulableContext sc)

Executes the corresponding scheduled job. If you want to run the process immediately, use BalanceConfigurationService.switchMode service.

© Copyright 2009–2019 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.