Ax2012 Enus WN Dev 08
Ax2012 Enus WN Dev 08
Ax2012 Enus WN Dev 08
CHAPTER 8: WORKFLOW
Objectives
The objectives are:
Introduction
The workflow architecture in Microsoft Dynamics AX 2012 is now refined and
simplified. Workflow is incorporated into the Application Object Server (AOS)
and upgraded to .NET 4.0. The workflow authoring experience is now improved
to include a graphical workflow editor, and system wide changes are now
incorporated including changes to the organization model, security, financial
dimensions, and the relational database.
8-1
Overview
With the overall Microsoft Dynamics AX 2012 theme of simplified user and
development experience, there have been multiple improvements to workflow,
including the changes in functionality and configuration described in the
following table.
Microsoft Dynamics AX
2009
Separate workflow
component have to be
installed
8-2
Requires additional
security setup
Microsoft
Dynamics AX
2012
Introduce
branching
Introduce
automated
tasks
Introduce
parallelism
Introduce a
graphical
workflow
editor
Support for
drag-anddrop of
workflow
elements
Familiar
property
editing
experience
Separate
installation no
longer required
Benefits
Expand workflow
capabilities by
providing broader
applicability
Improve the
workflow editing
experience and
usability
Simplify workflow
deployment and
installation
Chapter 8: Workflow
Architectural Changes
Workflow server components no longer need to be installed on a web server
running Internet Information Services (IIS). Workflow server components are
now automatically installed when installing the Microsoft Dynamics AX AOS.
This new deployment significantly simplifies the administrative effort required to
set up the workflow infrastructure.
Workflow History
You can view workflow history and the status of an active or completed
workflow and its elements that includes data about new workflow features, such
as advanced flow-controls, automated tasks, line item workflow, and work item
queues. You can view this data either in the Microsoft Dynamics AX client or the
Enterprise Portal for Microsoft Dynamics AX.
Upgrade Information
Workflows being processed in Microsoft Dynamics AX 2009 will not be
upgraded. Before you upgrade to Microsoft Dynamics AX 2012, the
recommendation is to process all documents that are submitted to workflow, or
cancel the workflows that are currently in progress.
8-3
Workflow Editor
The Workflow Editor is a graphical interface that is used to model Microsoft
Dynamics AX 2012 workflows by arranging workflow elements similarly to how
a business process is graphically modeled using Microsoft Visio. You can add,
delete, and reposition workflow elements that represent the tasks and approvals
that comprise the workflow. You can also add flow-control elements, such as
manual and automated decisions, automated tasks, parallel activities, and subworkflows. These improvements can be used to create complex workflows that
closely model the business processes that an organization wants to automate.
For each element in a workflow, you set properties that determine things such as
the assignment of a task, the time allowed for completing a task, an escalation
path in case the time limit for the task is exceeded, who will be notified about
specific events related to the task, and any automatic actions that will be taken
for the task.
The Workflow Editor uses the workflow designer in .NET 4.0 and replaces the
forms-based workflow configuration that is used in the Microsoft Dynamics AX
2009 client.
Flow-Control Elements
Several new elements were added to help you design workflows. These elements
will help create workflows that have alternate branches or branches that run at
the same time. These elements include the following:
8-4
Chapter 8: Workflow
Advanced Workflow Controls
Workflow for Microsoft Dynamics AX 2012 now supports advanced workflow
flow controls. They include starting and ending elements, manual and conditional
decisions, parallel activity and parallel branches, automated tasks, and sequence
flows. Business users can now author workflows that correspond more closely to
real life business processes using graphical elements that help them to better
visualize the process flow. The following table describes the new workflow
control elements that provide additional flow control capabilities to increase the
automation of a workflow.
Workflow
element
Description
Start
Parallel branch
End
Automated
Tasks
NOTE: The advanced controls are not defined in the Application Object Tree
(AOT).
Automated Task
You can now add automated tasks to your workflows. An automated task is a
type of workflow element that does not involve human interaction. For example,
an automated task can perform a credit check, run a report, or update a record.
The purpose of an automated task is to execute business logic as part of a
workflow that is implemented to automate a business process.
8-5
8-6
Chapter 8: Workflow
8. Remove the Accept or rejected escalate comment from the Work
item subject field.
9. Close the Properties form.
10. Open the Error Pane by clicking the Show error pane button (error
is caused by step 10).
8-7
8-8
Chapter 8: Workflow
Challenge Yourself!
Use the information that is provided to create a work item queue and modify the
Automatic purchase requisition approval workflow to use the new work item
queue.
Step by Step
1. Select Organizational administration > Setup > Workflow >
Work item queues to open the Work item queue set up form.
2. Click New and enter Requisition review queue into the Name field.
3. Select Purchase requisition as the Document type.
4. Expand the User Fast Tab.
5. Click the Add button to add more users to the Requisition review
queue.
6. Set the status of the queue to Active.
7. Close the Work item queue form.
8-9
8-10
Chapter 8: Workflow
Line-Item Workflows
You can now implement workflows for line items on a document. By providing
support for line-item workflows, workflow now supports more business process
scenarios. For example, you might define a workflow for timesheets where each
line item on the timesheet is approved by a specific project manager.
A line-item workflow is configured and instantiated for different types of line
item records that are related to a header. A header-line workflow can be
configured to pause until other workflows are run on any number of line records.
For example, a header can be a sales order with sales order lines or a purchase
order with purchase order lines. Each line item associated with the header has its
own workflow processing, depending on the conditions set up for that workflow.
After each individual line items workflow processing is completed, the overall
workflow can continue.
8-11
Summary
Workflow in Microsoft Dynamics AX 2012 is refined from its initial release in
Microsoft Dynamics AX 2009. The major improvements include the following:
8-12
Chapter 8: Workflow
4. What are the advantages of moving workflow from IIS to the AOS? (Select
all that apply)
( ) Simplified setup.
( ) Multi-threading.
( ) Fewer components to break in production
( ) 64 bit support.
5. Which tool would you use to find the status of a specific workflow?
( ) Batch job history
( ) Performance analysis reports
( ) Workflow history
8-13
2.
3.
8-14
Chapter 8: Workflow
Solutions
Test Your Knowledge
1. Which of the following improvements are introduced in Microsoft Dynamics
AX 2012 to simplify the user and development experience in workflow?
(Select all that apply)
() Host the Workflow Foundation runtime in AOS
() Line-item workflow support
() Drag-and-Drop of workflow elements
() Graphical workflow editor
2. Which system-wide changes were implemented in workflow? (Select all that
apply)
() Financial dimensions
() Organization model
() Security
() Relational database changes
3. Match the workflow improvements to their descriptions.
e 1. Advanced flow
controls
b 2. Line level
workflow
c 3. Work item
queue
d 4. Automated
tasks
f 5. AOS hosting
a 6. Graphical
workflow editor
4. What are the advantages of moving workflow from IIS to the AOS? (Select
all that apply)
() Simplified setup.
( ) Multi-threading.
() Fewer components to break in production
( ) 64 bit support.
8-15
8-16