13.02.2014, 19:12 | #1 |
Участник
|
axStart: AX 3.0 and 4.0 Batching
Источник: http://www.axstart.com/ax-3-0-and-4-...d-4-0-batching
============== It is quite easy to create batch clients in Microsoft Dynamics AX old. It is getting harder when you want to check it easily if all batches are still running. There are some additional Microsoft programs and functionalities in Microsoft Dynamics AX that can help you out:
In the class SysStartupCmdBatchRun, method inforun is one line of code missing. Add this line so the batch service will use the correct batch group. void infoRun() { BatchRun batchRun = new BatchRun(); ; batchRun.parmUseForm(true); batchRun.parmGroupId(parm); //TODO Missing line batchRun.run(); }Monitoring the Batch
In Microsoft Dynamics AX 4.0, a batch process or a batch server can process jobs for only one company. However, a virtual company can access the batch table collection for other companies. When you add jobs to a batch group, Microsoft Dynamics AX 4.0 inserts the virtual company identifier in the DataAreID field. When you run the batch process, the batch process treats all the records in the batch process as records from one company. Additionally, the batch process works as a central batch server. When companies belong to a virtual company, you can create a batch group for a company that belongs to the virtual company. This batch group is then used by the other companies. This feature lets you run one batch process that processes jobs for multiple companies. To do this, follow these steps:
In Microsoft Dynamics AX 4.0, a batch process or a batch server can process jobs for only one company. However, a virtual company can access the batch table collection for other companies. When you add jobs to a batch group, Microsoft Dynamics AX 4.0 inserts the virtual company identifier in the DataAreID field. When you run the batch process, the batch process treats all the records in the batch process as records from one company. Additionally, the batch process works as a central batch server. When companies belong to a virtual company, you can create a batch group for a company that belongs to the virtual company. This batch group is then used by the other companies. This feature lets you run one batch process that processes jobs for multiple companies. To do this, follow these steps:
Have a look at the Windows Server 2003 Resource Kit Tools http://www.microsoft.com/en-us/downl....aspx?id=17657 This toolkit has the utility SRVANY.EXE; this tool can start any application in server mode. To create the service we use the program INSTSRV.EXE. Example create service: INSTSRV DynamicsBatch “C:\Program Files\Windows Resource Kits\Tools\srvany.exe” -a DOMAIN\batchuser1 -p Pa$$w0rd Example remove service: INSTSRV DynamicsBatch1 REMOVE Next we have to add the Microsoft Dynamics AX batch client to the svrany service Start Registry Editor.
Источник: http://www.axstart.com/ax-3-0-and-4-...d-4-0-batching
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|