Consultor Eletrônico



Kbase P108556: How to set up batch process within Dynamics application ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/25/2011
Status: Unverified

GOAL:

How to set up batch process within Dynamics application ?

GOAL:

How can a batch job use the Dynamics framework ?

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.x
Dynamics
Dynamics 2.1B
Dynamics 2.1A

FIX:

The guidelines to build and configure a batch job that has full access to the Dynamics framework are as follows:

- Build the Batch Procedure from the structured procedure template and thus get the framework hooks. As with any batch/background process, avoid using UI objects. Use either the Open Client API or direct APIs to use repository objects.
- Define a Dynamics session type with "Batch" physical type. Do this by subclassing the DynCS class to make sure it inherits all the required managers etc.
- Add a startup_procedure to the new session type, set the value to the Batch procedure's name as registered in the repository.

To run the batch job, start a Dynamics session with the new session type specified on the command line. For example:
C:\DLC\10.2B\bin\prowin32.exe -p icfstart.p -pf "C:\DLC\10.2B\icf.pf" -ini "C:\DLC\10.2B\bin\icf.ini" -icfparam ICFSESSTYPE=myBatch