Workflows - Installation and Configuration 2009
Workflows - Installation and Configuration 2009
Workflows - Installation and Configuration 2009
Sumit Loya
3/21/2009
Table of Contents
1.1 Prerequisites
1. The user installing workflow system should be a member of the Administrators group in
Microsoft Dynamics AX.
3. Ensure that the system on which workflow has to be installed has a static IP. Setup will not
configure the workflows if the IP configuration is not defined.
4. Ensure that all the instances of previous versions of AOS are stopped.
5. Software components you should install: Secure Sockets Layer (SSL) is recommended, but not
required, for the Workflow Web site. SSL is a protocol that allows Web servers and clients to
communicate more securely through the use of encryption. When SSL is not used, data sent
between the client and server is vulnerable to observation by anyone with physical access to the
network.
6. Software components the Setup wizard installs: If the following software components are not
installed on the Workflow Web server, the Microsoft Dynamics AX Setup wizard will install them
for you when you install Workflow.
Workflow The Workflow Web Select a domain account or a Microsoft Dynamics AX user in
system account server uses this the System service accounts form (Administration Setup
account to Security System service accounts). If you select a
communicate with domain account, the domain account must:
Microsoft Dynamics
AX. Be a dedicated account (used only for this purpose).
Have a password that does not expire.
Workflow This account is used for Select a domain account or a Microsoft Dynamics AX user in
execution running application the System service accounts form. If you select a domain
account business logic and account, the domain account must:
accessing Microsoft
Dynamics AX data. Be a dedicated account (used only for this purpose).
Have a password that does not expire.
Have minimal access to network resources.
Note: If the Web site you use for Workflow runs on a port other than port 80, you must add an exception
to Windows Firewall for that port. For more information about Windows Firewall, see the Windows
documentation.
If IIS is already installed on your server, create the Web site at this time. For instructions on how
to create a Web site, see the IIS documentation.
If IIS is not installed, the Microsoft Dynamics AX Setup wizard will install IIS for you when you
select Workflow. After the Microsoft Dynamics AX Setup wizard installs IIS, you can create a site
for Workflow as described above.
Note: When you install Workflow, the Setup wizard must be able to connect to a base installation of
Microsoft Dynamics AX (application files, AOS, and database) on which the initialization checklist has
been completed. The following procedure assumes that you are installing Workflow on a dedicated
server where no other Microsoft Dynamics AX components are installed.
3. On the Select installation type page, select Custom installation. Click Next.
5. On the Install files page, specify where you want the Workflow application files installed. You
can accept the default location or click Browse to select a different location. Click Next.
6. On the .NET Business Connector: Select a display language page, select the language in which
you would like to first run Microsoft Dynamics AX. Click Next.
7. On the .NET Business Connector: Connect to AOS instance page, enter the name of the AOS
server. Click Next.
8. On the .NET Business Connector proxy account information page, enter the password for the
.NET Business Connector proxy account. Click Next.
9. On the Workflow: Configure IIS page, select the Web site you want to use for Workflow. (For
more information, see Select a Web site for Workflow.) Click Next. The Microsoft Dynamics AX
Setup wizard will:
12. When the installation is complete, click Finish to close the wizard.
1.5 Add the Workflow Web site to the list of trusted sites
After installing Workflow, you must add the URL of the Workflow Web site to the list of trusted sites on
the AOS server. This will enable the AOS server to communicate with the Workflow Web services.
Complete the following procedure on the AOS server.
2. Click Tools > Internet Options. The Internet Options window is displayed.
Note: To run the Workflow Infrastructure Configuration wizard, you must belong to a Microsoft
Dynamics AX user group that has the AdminSetup security key enabled.
2. The Welcome to the Workflow infrastructure configuration wizard page appears. Click Next.
3. The Locate the Workflow Web server page appears. Verify the URL of the Workflow Web site.
o If your Workflow server is using Secure Sockets Layer (SSL), the URL is
https://ServerName:PortNumber/MicrosoftDynamicsAX50 .
o If your Workflow server is not using SSL, the URL is
http://ServerName:PortNumber/MicrosoftDynamicsAX50 .
4. The Configure the Workflow processing batch job page appears. This batch job retrieves
messages from the message queue and sends them to the Workflow server for processing.
Select a batch group (Create a new batch group for workflows if required) and click Next.
o Select a batch group (Create a new batch group for workflows if required).
o Specify how often you want the batch job to run by entering a number of hours.
o Click Next.
Field Description
Approval and task Select a template for e-mail notifications. Notifications will be sent to users
notifications when tasks or documents are assigned to them.
When you specify user relations, you identify a user's relationship to your organization. Users can be
internal, such as employees, or external, such as vendors, customers, or business relations.
2. On the Overview tab, click the Wizard button. Complete the steps in the wizard.
The Global address book (GAB) can help you in understanding the relationships of people and
organizations associated within the company. For example, you may have a customer who is also a lead
in a marketing campaign, or you could have employees who are also listed as customers.
There are two ways that you can enter records in the GAB. When first entering a record for a person or
organization, you may not know how they will be interacting with the company or you may know that
they will apply more than one entity. When this is the case, you can create a record in the GAB and
enter the entity later. If you do know the entity that the person or organization will be, such as a
customer or competitor, you can create a record in the corresponding form. When you do this, a record
will automatically be created in the GAB.
Note: You need to ensure that you create Organizations and create jobs for each organization and attach
them to positions. These positions are then mapped to each employee.
For example, your diagrams may look similar to the following workflow diagram.
Note: Creation of Workflows and workflow templates is out of the scope of this document. Creating a
workflow requires development and X++ knowledge. This document is solely meant to just install and
configure the workflow system. Creating a workflow shall be covered in another document.
Vendor bank remittance Create approval workflows for vendor bank remittance journals.
template
Vendor draw promissory Create approval workflows for vendor draw promissory note journals.
note template
Invoice approval journal Create approval workflows for invoice approval journals.
template
Vendor invoice recording Create approval workflows for vendor invoice recording journals.
template
Invoice register template Create approval workflows for invoice register journals.
Vendor redraw promissory Create approval workflows for vendor redraw promissory note journals.
note template
Vendor settle promissory Create approval workflows for vendor settle promissory note journals.
note template
Customer bank remittance Create approval workflows for customer bank remittance journals.
template
Customer draw bill of Create approval workflows for customer draw bill of exchange journals.
exchange template
Customer payment template Create approval workflows for customer payment journals.
Customer protest bill of Create approval workflows for customer protest bill of exchange
exchange template journals.
Customer redraw bill of Create approval workflows for customer redraw bill of exchange
exchange template journals.
Customer settle bill of Create approval workflows for customer settle bill of exchange journals.
exchange template
Cash advance request Create approval workflows for cash advance requests in Expense
template Management.
Non-project line item Create approval workflows for non-project line items in Expense
workflow template Management.
Project expense line Create approval workflows for project expense line items in Expense
workflow template Management.
Fixed assets budget template Create approval workflows for fixed assets budget journals.
Post fixed assets template Create approval workflows for fixed assets journals.
When you have multiple workflows that are based on the same template, you need to specify when
each workflow should be used. Continuing with the example, you would need to specify that:
The section below describes the example business policy that we will be configuring for Purchase
requisition.
When the Purchase requisition has been submitted it is validated against the configured business policy.
If the business policy is violated a Task is automatically created. The Task will create and assign a Work
Item to a user that can correct the issue. Once validated the purchase requisition must be approved.
The processes below describe the business policy for purchase requisition.
All purchase requisitions must have a valid vendor account assigned and no items must have a purchase
price of 0 (zero).
All purchase requisitions with a total amount less than USD 1000 can be automatically approved.
All purchase requisitions with a total amount greater than USD 1000 must be approved by the
Purchasing Manager.
This type of business policy falls under the category of “Hierarchy-based” work flows.
The next few sections describe about the setups required for implementing this business policy.
Use the following procedure to specify a default limit amount for a job.
Purchasing agent
Purchasing Manager
Note: This setup is required ONLY if you want to override the limits defined on the job associated with
this employee.
For example, by default, you may not want purchasing managers to approve purchase requisitions that
are greater than $50,000. However, you want Inga, a senior purchasing manager, to be able to approve
purchase requisitions up to $100,000. In this case you can override the default limits specified on the job
associated with Inga.
1. Click on New or press Ctrl + N and select the template as “Purchase requisition approval”. Now
click on “Create configuration”
This creates a new workflow configuration and opens the configuration editor form.
If the time limit is exceeded, the system will automatically act on the task. Specify
the action (Automatic action to take if timeframe is exceeded) that the system
should take. You may need to select a time and time zone, as well.
b. In the Task details section of the Details tab, Click on Automatic actions tab and do the
following:
i. Check the Enable automatic actions check box.
ii. Click on the Green + ( ) symbol to add a new line to the condition.
iii. Now click on the field to the right of word “Where” and traverse to menu
Purchase Requisition. In this menu traverse to sub menu Purchase requisition
lines and select Vendor account.
iv. Now click on contains field and select “is not” operator.
v. Now enter a blank value in the field “Enter a value” (Just click on this field, this
is enough to enter a blank value).
vi. Click on the Green + ( ) symbol again to add a new line to the condition.
xii. You can test the condition by clicking on the Test condition button. In the
subsequent form you can select a purchase requisition and click on Test. The
condition evaluates to TRUE which means that the task would have been
automatically completed for the selected purchase requisition. Close the form.
iii. User based — if you want the task assigned to specific users, click this option
and select the appropriate users.
iv. Specify how much time a user has to complete this task. Select one of the
following options:
Hours — if you select this option enter the number of hours the user has to
complete the task, and then select the calendar that your organization uses.
d. In the Task details section of the Details tab, Click on Escalation tab and setup values for
any one of the following options:
i. Do not escalate: (Select this option for our example) Select this option if you
want the task to remain assigned to the current user. If the time limit specified
on the Overview tab is exceeded, the system will automatically act on the task.
(It will take the action that you specified on the Overview tab.)
ii. Set an automatic action: Select this option if you want the system to
automatically act on the task. From the list, select the action the system should
take.
vi. To enter the text of the notification, click Define and enter the text you want to
send with notification.
f. In the Task details section of the Details tab, Click on Advanced tab and setup allowable
actions for the workflow. In our case select all the actions. See the screen shot below
7. Now on the Workflow configuration form, select General tab and click on button Set as active.
Note: Run this processor only for testing purpose. In live environment one should start the batch job that
was created while configuring the workflow infrastructure through the wizard.
3. In the lines press Ctrl + N and select an item say “9001”. Put the quantity as 10 and verify that
the Net amount is not zero and less than 1000 USD.
4. Press Ctrl + S. This will save the record and refresh the form. Now you can see the Purchase
requisition workflow message bar and action buttons on the top of the form.
8. Notice the workflow processor. It will indicate that there is 1 record in the queue and is
currently being processed. It will be like that for about 30 seconds and then reset back to zero.
10. You can refresh the purchase requisition record and see that the status has changed to
“Approved – Ordered”.
11. You can also see that a notification is received regarding the same.
12. Click on Actions button and select View history.
13. You can check the history of the workflow. Check the Tracking details.
17. Now click on Actions and you can perform following tasks
a. Approve: Approve the requisition.
b. Reject: Reject the requisition.
c. Request change: Send the requisition back with change suggestion.
d. Delegate: Assign it to somebody else for approval.
e. Select Action Approve.
f. In the subsequent form enter some comments like “Approved” and click on “Approve”
button to approve the requisition.
18. After a few seconds an infolog appears showing that requisition is approved and a purchase
order is created for the same.
21. Click on Actions button and select View history and check the history of the workflow.
1. Open the Workflow history form from Basic Inquiries Workflow history.
2. To filter the list of workflow instances that are displayed in the form, select a workflow status.
3. Select a workflow instance. Details about the workflow instance are displayed on the tabs in the
lower part of the form.
Overview tab — This tab displays the status of the workflow instance and indicates
where the submitted document is at in the workflow.
Work items tab — Use this tab to assign a task or approval step to another user.
Tracking details tab — Displays the history of this workflow instance.
1. Open the Workflow history form from Basic Inquiries Workflow history.
2. From the Filter by status list, select one of the following statuses.
Pending — Workflow instances that are currently processing are listed.
Stopped (Error) — Workflow instances that have stopped because of an error are listed.
3. Select the workflow instance that you want to stop. Click Cancel.
1. Open the Workflow history form from Basic Inquiries Workflow history.
2. From the Filter by status list, select Stopped (Error). Workflow instances that were stopped
because of an error are listed in the form.
3. Select the workflow instance that you want to restart. Click Resume.