Home > Dynamics Ax > Dynamics Ax 2009 Workflow – Simple Job to complete the workflow steps

Dynamics Ax 2009 Workflow – Simple Job to complete the workflow steps


Workflow batch jobs can be executed using the following Job, without using Batch Server.

static void workflowJobs(Args _args)

{

    SysWorkflowMessageQueueManager  queueManager;

    WorkflowWorkItemDueDateJob      workItemDueDateJob;

    ;

    queueManager = SysWorkflowMessageQueueManager::construct();

    queueManager.run();

    workItemDueDateJob = new WorkflowWorkItemDueDateJob();

    workItemDueDateJob.run();

}

But, we need to run the above job number of times, to complete the workflow process; this job will be useful in case if we have any issues related to Batch Server.

Note: Same issues related to Batch Server, while working with workflow, can find at the following link and also solution suggested by me using the same above job.

https://community.dynamics.com/forums/p/22881/44338.aspx#44338

This may useful for my blog readers, so I am sharing the same through my blog.

Advertisements
Categories: Dynamics Ax
  1. Hani
    December 11, 2009 at 8:12 pm

    Hi Santosh,Excellent, I was looking for this job function, my question is what about the recurrence like the batch server? regards,Hani

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: