Thursday, October 27, 2011

AX 2009 Workflow - Run batch jobs through a Job

When working with Workflows, sometimes  have encountered a situation where my workflow item just don't run.
This might be due to a problem on the Batch Server. To test (run) the workflow mimicking the batch server we can write the following job.
static void workflowJobs(Args _args)
    SysWorkflowMessageQueueManager  queueManager;
    WorkflowWorkItemDueDateJob      workItemDueDateJob;

    queueManager = SysWorkflowMessageQueueManager::construct();;
    workItemDueDateJob = new WorkflowWorkItemDueDateJob();;

Another alternative is to go to AOT > Forms > Tutorial_WorkflowProcessor and click the start button.

No comments:

Post a Comment

Thank you for your thoughts. Your comment will appear in my blog shortly after review.

Have a great day!