Developing a Product Approval Workflow in Dynamics AX 2012
- There are a lot of workflow templates that are delivered with Dynamics AX 2012, but that doesn’t mean that those are the only ones that you can use. Developing new workflow templates and actions are pretty straight forward and you can easily extend out the system to incorporate other workflow scenarios that have not been added yet.
In this blueprint we will work through one example and show you how you can develop your own workflow process for product approvals that allow you to submit, track and approve the product review process.
Here are all of the topics that are included in this blueprint:
- Create a New Development Project for your Workflow Development
- Create a Menu Item for the Product Management Workflows
- Add the Workflow Editor Menu Item to the Product Area Page
- Create a New Workflow Category for Your Product Management Workflows
- Create a Base Enumeration to Track the Approval Status
- Add the Approval Status Field to the Product Table
- Adding the Approval Status to the Released Products Form
- Add a canSubmitToWorkflow Method to the Table to Enable Workflows
- Create a Query on the Products Table for the Workflows to Reference
- Create a Workflow Type Using the Workflow Wizard
- Create A Simple Product Approval Workflow
- Enabling Workflow Submission on the Product Details Form
- Updating the Submission Manager Method to Start the Workflow
- Relabel the Workflow Submission Menu Items
- Update the Completed Method on the Approval Event Handler
- Using the Tutorial Workflow Processor to Process Workflows
- Performing the Workflow Approval through the Dynamics AX Forms
In this walkthrough we showed how you can create your own workflow templates and activities. The product approval process could easily be extended out to include more steps and approvals for the products, allowing for it to be used for new product introduction and development.
This does not just have to apply to product approvals though, you can use exactly the same process to create workflow templates for the approval of other areas where the approval processes may be needed such as Customer, Vendors and BOMS. All you need to do is change the base tables and forms that are being referenced and the process will be almost identical.
You can also extend out the approval logic to update more information through the workflows like flags for allowing the use of the record after it has been activated, and also incorporating information that has been gathered during the process. If you want to get really creative, you can even create custom workflow elements that incorporate other technologies like Outlook for the creation of tasks and appointments.
Don’t be afraid to create new workflow templates, once you have built them, then they will provide a much better way to streamline your business processes, and the hour or so that you spend creating them will be recouped quickly by the removal of the manual workarounds that would have been used without them.
If you want to view the original post which may have additional content then click here.