workflow in dyamics Ax

This question is not answered

My workflow gets activated but it is not assigned to the user i assigned.. anybody knows please help..

All Replies
  • Hi Arjun,

    Here the workflow originator (user who is submitting the workflow) and workflow approver must be under the groups of wfexc and wfsys.

    Best Regards,

    Santosh Kumar Paruvella

  •  I used the auto-approval when setting up Workflow and yes work originator is under the group wfsys and wfexec

  • HI Santhosh,   I am facing the same issue and not able to solve can you pls suggest me.   Once I submit the Purchase Requisition, the workflow is not getting assigned to any one for approval. The workflow configuration setup is done properly but the Batch server is not executing the batch jobs. I had tried to follow your steps, I had executed the below jobstatic void workflowJobs(Args _args){    SysWorkflowMessageQueueManager  queueManager;    WorkflowWorkItemDueDateJob      workItemDueDateJob;    ;    queueManager = SysWorkflowMessageQueueManager::construct();    queueManager.run();    workItemDueDateJob = new WorkflowWorkItemDueDateJob();    workItemDueDateJob.run();}But this did not work.

    If any another solution please help me out...

     

    Thanks in Advance,

    Naveen Kasula

  • Hi Naveen,

    You need to run the above job more than once until it is get assigned.... (In case batch server not working properly)

    If server works fine, it will take number of iterations as shadow, based on reoccurence....

     so here manually, you need to run the above job more than once...

    for more information u can refer my blog entry as mentioned above.....  

    still if u have issues u can contact me freely.........

    Best Regards,

    Santosh Kumar Paruvella.

  • Have you debug the code when you submit the workflow? I was facing a similar issue, and I did the following:

    1- I made sure that the Assignee was within the SysCompanyInfo table and the SysUserInfoTable. In my case I had to add those users to active directory and create an account in ax with the correct permissions.

    2- I found the above by debugging the code line by line until I got an error with some values equal to null. From that point on it took me a whole day to fix all the issues. But basicaly were issues regarding the lack of data necessary to complete operations.

    3- Make sure that in IIS the workflows have the sufficient permissions to access data (in this case you should check the Business Connector and ISAPI rights)

    Good luck!

  •  All details about setting up workflows in AX are available at the link below:

    http://microsoft-axapta.blogspot.com/2009/06/creating-workflows-in-ax.html

  • Do we need to manually run Workflow batch manually everytime. Now we are running workflow engine by going to AOT > Forms .How can we enable the workflow batch job always running backend? Please help

  • Hi,

    Verify that the user have the right to approve the workflow and the calendar that you had choosed when you affect the workflow to the user!

    click on the button Actions the choose "view history" to verify if the workflow is blocked or "waiting"!

    Good luck