Monday, July 25, 2011

How to Configure the Batch jobs…

Batch jobs are required to perform the particular/defined set of action in the system in the regular intervals of time defined accordingly…
In AX there were the existing batch jobs, we can use them accordingly to your use….
Let say for example,
In the Employee master, employee status needs to change accordingly…
i.e. if employee is going on leave one week after, but the leave is entered on the current date, so employee status need to be changed on the day of the leave.
Once the employee is back from the leave, it is should be retained back to original status accordingly..
So in this case of scenario’s we can have a batch job which run basis on the interval defined and changes the status accordingly…
To write a batch job...
Create a new class and it should extend from “RunBaseBatch” from the standard AX.
Class EmployeeStatusChange extends RunBaseBatch
{
}

And having the logic as per accordingly…
After creating the class, create the action menu item for the Class.
Setup;
In Administration --- setup --- open the Server Configuration form


Is Batch Server check box needs to be checked – this indicates the batch job need to be executed on which AOS instance.

In Administration --- setup --- open the Batch Group form


Here create a new Batch Group and in the Batch servers tab selected the server on which this job needs to be scheduled.

Now open the Action menu item created for the class,then

Here attach the batch job created in the above step , mark the Batch processing checkbox and click the Recurrence button there need to be defined when the job needs to be started, and what interval need to processed..
In the alerts button, email alerts can be defined.

Once the Batch job is scheduled it is being queued in the Batch Jobs list..In Basic – Inquiries – Batch Job, here the scheduled batch can be found.

1 comment:

  1. Sunset Valley Casino Hotel | SG Casino
    Sunset Valley septcasino Casino Hotel is located in SG Casino, SG 메리트 카지노 Casino, and Sunset Valley Casino Hotel offers gaming and indulgences, a world-class amenities and 카지노사이트

    ReplyDelete