Create a Workflow Type Using the Workflow Wizard

In the past, creating a workflow was made challenging because there was a lot of plumbing that was required in order to create the workflow type, and if you didn’t have it all just right then you spent forever trying to track down the problems. With the introduction of Dynamics AX 2012 though a wizard was added to the AOT tools that does almost all of the work for you so that you don’t have to be an experienced developer in order to create workflow templates.

NOTE: This is part of the Developing a Product Approval Workflow in Dynamics AX 2012 blog series where we show how to develop a completely new workflow to manage the new product approval process. If you want to see all of the other posts in this series, click here.

How to do it…

To use the Workflow Wizard to create almost all of the framework required for a workflow, follow these steps:

  1. Open up the AOT explorer, and expand out the Workflow node so that you can see the Workflow Types folder.
  2. Right-mouse-click on the Workflow Types and select the Workflow type wizard from the Add-Ins menu.
  3. This will start the Workflow Wizard. Click on the Next button to skip the welcome screen.
  4. When the Create workflow type dialog page is shown, type in ProductApproval into the Name field.
  5. Select the workflow category that we set up in the earlier stages (ProductManagementWFCategory) from the Category dropdown.
  6. Select the workflow category that we set up in the earlier stages (ProductManagementWFCategory) from the Category dropdown.
  7. Select the workflow category that we set up in the earlier stages (ProductManagementWFCategory) from the Category dropdown.
  8. Once you have selected the options for the Workflow Wizard, click on the Next button to move to the next step.
  9. When the confirmation box is displayed, just click on the Finish button to create the workflow type.
  10. If everything is OK, then you will be able to see a new project has been created, and you will be warned that you should run an incremental CIL generation. Click the OK button to exit.
  11. When you return to the new project, select the Generate Incremental CIL option from the Build menu.
  12. After a short amount of time, the build should complete and you can continue on.
Advertisement
1 comment

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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: