Basic Requirements for Workflow to Be installed
- Dynamics AX AOS with at least SP1 installed
- IIS server.
- .Net Business Connector (installation described during this tutorial)
- EP License (Not officially required, but needed for .Net Business Connector)
Step 1 – Workflow Website Installation
Before creating our workflow templates or configuring pre-existing DAX templates, we need to setup the workflow infrastructure including the Windows Workflow Foundation Framework, .net business connector etc., relevant system users and a number of configurations within AX itself. So first things first. Lets setup out Workflow Website containing Windows Workflow Foundation.
- Install Internet Information Services (IIS)
- Setup a default website on IIS
- Run the Dynamics AX server installation file on your IIS machine
- Select ‘Add/Remove Components’
- Select .NET Business Connector
- Click next.
- Select a Language for the .NET Business Connector.
- Click next.
- Click Finish when the .NET Business Connector has finished being installed.
- Run the Dynamics AX server installation file on your IIS machine again
- Select ‘Add/Remove Components’
- Select ‘Workflow’ (Ensure that your active Dynamics AX .NET business connection configuration on your IIS machine (previous steps) is pointing to the correct AOS as the setup wizard will need to connect to your AOS to make some changes)
- Click Next
- You will be requested to enter a username and password for the user that your business connector will use to login to your AX environment. If you have previously set this up in your environment, the username will not be available to change. You can later set this up in your environment by going to Administration -> Setup -> Security -> System Service Accounts
- Select your default website that you would like to add you Workflow Virtual directory/Application to. You can install this to your SharePoint site if you so wish.
- Click Next
- Select the system account that your AOS is running as, so that the setup wizard will add this user to the list of users allowed to access the workflow website
- Click Next
- Click Install
- Click Finish when the Workflow Installation wizard has finished.
Your workflow infrastructure should now all be ready.
Should you wish to have multiple AOS environments all running Workflow, but only 1 IIS server.
Step 2 – Configure your AOS
- Login to your Dynamics AX Environment as and administrator User.
- Ensure that your email server parameters are correctly setup (Administration -> Setup -> E-mail parameters)
- Setup your System Service Accounts (Administration -> Setup -> Security -> System Service Accounts)
- Business Connector Account (account used to login to your workflow website and other external tools)
- Workflow System Account
- Workflow Execution Account
- Setup a batch server (Administration -> Setup -> Server Configuration)
- Setup a workflow batch group (Administration -> Setup -> Batch Groups), give it a name like WF or WORKFLOW
- Run the workflow infrastructure configuration wizard (Administration -> Setup)
- In the first screen click Next
- Enter the full Workflow Website address that you created above if not already populated
- Click Validate, you should get a message such saying ‘Workflow runtime URL is valid’ if not you have not setup either your business connector account successfully or the workflow website is not functioning properly.
- Click Next
- Select the batch group that you created above (this is for the message processing batch job)
- If this is greyed out, you can cancel the batch the wizard and go back and delete your already existing workflow message processing batch job)
- Click Next
- Select the batch group that you created above (this is for the expired work items batch job)
- If this is greyed out, you can cancel the batch the wizard and go back and delete your already existing due date workflow batch job)
- Select a recurrence time for how often you want workflow to check for expired work items, by default this is every hour.
- Click Next
- Click Next to confirm, this will create the necessary batch jobs for workflow work item processing as well as due date checking.
- To confirm that the batch jobs were create you can check under (Basic -> Enquiries -> Batch Job). There should be 2 new batch jobs created and in a waiting state (“Workflow Message processing” and “Workflow Due date expirations”)
- Setup your workflow per company
- Setup Workflow Email template (for work item assignments) (Basic -> Setup -> E-mail Templates)
- Create a new Email template and name it “Workflow” or something similar, select default language and the name of the user that you want to appear in the Sender and Sender address fields in the email when the user receives a notification about new work item)
- Create at least one language template, select a subject and provide the necessary contents for the email by clicking on the template button. You will be able to provide both a text as well as an HTML based template.
- You can use a number of ‘tags’ with in your template (and email subject) that will allow you to open and link to the correct notification or record within AX, or simply display more information about the workitem that the user is being emailed about. E.G:
- LinkToAlert%/”>View Alert (in the html editor)
- LinkToBusinessData%/”>View Record (in html editor)
- %Subject% – Displays the subject of the workflow (from WF Configuration)
- %Message% – Displays the instruction of the workflow (from WF Configuration)
- Setup number sequences (Basic -> Setup -> Number Sequences)
- Create number sequences that will be used for your configurations as well as for your actual running instances
- E.G.
- Configuration Number sequence:
-
- Number Sequence Code: Work_200
- Name: Work_200
- Smallest: 1
- Largest: 999999
- Next: 1
- Format: ######_200
- Instance Number sequence:
- Number Sequence Code: Work_201
- Name: Work_201
- Smallest: 1
- Largest: 999999
- Next: 1
- Format: ######_201
- Setup company (for each company) workflow parameters (Basic -> Setup -> Settings for Workflow)
- On the first tab select the email template that you have just created (Approval and task notifications)
- On the second tab (Administration), your workflow runtime (website) url should already be selected.
- On the third tab (Number sequences), select number sequences created above for:
- Configuration Id Work_200
- Instance Id Work_201
- Close the settings for workflow screen
- You company/companies should now be all ready for you to begin developing or configuring workflows.
- Setup Workflow Email template (for work item assignments) (Basic -> Setup -> E-mail Templates)
Keep your eyes open for the Workflow walk-through on Configurations and Template developments.
Please let me know if you have any further comments or tips that you have discovered during workflow infrastructure configuration.
No comments:
Post a Comment