By executing a Batch Job
You can run a batch job to draft rate usage inputs that are in Loaded status.
You can schedule the call from the Schedule Apex button on the Apex Classes page or using the following cron expression.
Apttus_Billing.DraftUsageRatingJob job = new Apttus_Billing.DraftUsageRatingJob();
String cronExpression = ‘0 0 0 ? * * *’;
System.schedule(‘Draft Rating Job’, cronExpression, job);
You get the following results by passing different parameters.
Parameter |
Result |
---|---|
|
If you run the batch job without any parameters, then it processes all draft usage inputs of the org. You will be notified when processing is complete. |
|
Process selected draft usage inputs. You must pass all the usage input IDs pertaining to one or more asset line items. You will be notified when processing is complete. |
|
Process draft usage inputs of selected asset line item IDs. It processes all the usage inputs pertaining to the asset line item IDs. You will be notified when processing is complete. |
On completion of the batch job, the (Draft) Rated Quantity and (Draft) Fee Amount fields are updated on the usage schedule. The usage inputs related lists are updated with the new usage inputs and corresponding Rated Amounts.
Once you are satisfied with the forecasted values in the above-mentioned fields you can process the usage input. The old forecasted data will be overwritten by the next forecast run.