HOW TO RUN A BATCH JOB IN CLR SESSION X++ CODE
HOW TO CHECK WHETHER A JOB IS RUNNING ON CLIENT OR SERVER
WE CAN ALSO CHECK IT FROM THE PROPERTIES OF THE CLASS .
HOWEVER IN CASE IT IS SET TO AUTO THEN THIS TRICK WILL HELP US TO KNOW WHERE THE CLASS IS RUNNING.
MICROSOFT DYNAMICS AX 2012 AX 2009 X++ CODE
[SysEntryPointAttribute(false)]
void processrecords()
{
vik_SalesOrderIntegration vik_SalesOrderIntegration;
int counter = 0;
//Determines the runtime
if (xSession::isCLRSession())
{
info('Running in a CLR session.');
}
else
{
info('Running in an interpreter session.');
//Determines the tier
if (isRunningOnServer())
{
info('Running on the AOS.');
}
else
{
info('Running on the Client.');
}
}
vik_SalesOrderIntegration= new vik_SalesOrderIntegration();
vik_SalesOrderIntegration.run();
}
class vik_SalesOrderIntegrationBatch
{
}
No comments:
Post a Comment