For learning how to create and launch batch jobs in Dynamics AX, please take a look to all topics in http://msdn.microsoft.com/en-us/library/aa549082(AX.10).aspx.
If we want to configure an automatic batch job server, we need to modify the class SysStartupCmdBatchRun, method infoRun, as follows:
void infoRun()
{
batchRun batchRun = new batchRun();
;
batchRun.parmUseForm(true);
batchRun.parmGroupId(parm); // added
batchRun.run();
}
And for a batch group named "myGroup" for example, we can use the Microsoft Dynamics AX Configuration Utility to specify the "Command to run at application startup:" as Batch_myGroup. This enable the AX client to run every batch job in this group.
We can also use the command line as {path}\ax32.exe startupcmd=batch_myGroup.
If we want to configure an automatic batch job server, we need to modify the class SysStartupCmdBatchRun, method infoRun, as follows:
void infoRun()
{
batchRun batchRun = new batchRun();
;
batchRun.parmUseForm(true);
batchRun.parmGroupId(parm); // added
batchRun.run();
}
And for a batch group named "myGroup" for example, we can use the Microsoft Dynamics AX Configuration Utility to specify the "Command to run at application startup:" as Batch_myGroup. This enable the AX client to run every batch job in this group.
We can also use the command line as {path}\ax32.exe startupcmd=batch_myGroup.