Configuring The Fleet Management Sample Application
Configuring The Fleet Management Sample Application
Configuring The Fleet Management Sample Application
Table of Contents
Overview..................................................................................................... 3
Audience.............................................................................................................................. 3
Scenarios showcased and high level design of the FM Inc. setup ................ 7
Organization model ............................................................................................................... 7
Data Model .......................................................................................................................... 7
Features covered ............................................................................................................... 7
Other Features covered by the sample (by feature area) ........................................................... 8
2
CONFIGURING THE FLEET MANAGEMENT SAMPLE APPLICATION
Overview
This paper describes how to set up and configure the Fleet Management application for
Microsoft Dynamics AX 2012. The Fleet Management demo application is an illustrative
sample that demonstrates how you can leverage the foundation framework technology
features to build applications.
This application is more illustrative than prescriptive. In particular, it does not demonstrate
much of the rich application module functionality that ships in the base foundation model. It
does not handle many error conditions or exceptions. We advise that you use this
application as an educational tool only.
Audience
The reader is expected to be already familiar with developing applications for Microsoft
Dynamics AX. This is not a tutorial for beginners. It assumes familiarity with the X++ and
C# programming languages and with the MorphX developer workspace and the Microsoft
Visual Studio Integrated Development Environment (IDE) tools.
Client
Debugger
By default the model is set to be imported into the ISV layer. Ensure that you have the
necessary license key code to access the layer where you are importing the model into.
4. After the import is complete, you must restart the Microsoft Dynamics AX service and open a new
AX client instance. When prompted, you must Compile and Sync the changes. This could take a
long time.
5. If you see a compile error in the class FMRentalCheckoutCustomization, then you should open
the C Sharp project, FMDrivingRecordChecker , in Visual Studio, and rebuild and deploy this
project.
3
CONFIGURING THE FLEET MANAGEMENT SAMPLE APPLICATION
Mgr1
Domain\usr1
Redmond Manager
Tom Michaels
Mgr2
Domain\user2
Washington Branch
Manager
Vidhya Mahadevan
Clerk
Domain\user3
Redmond Clerk
April Stewart
serv
Domain\user4
John Smith
Self
Domain\user5
Self
Adam Carter
2. Create a project to help manage the development tasks for Fleet management. Click Tools >
Model management > Create project from model, and then pick Fleet management model.
The number sequence wizard will popup twice during this process. Please follow through
and complete the wizard.
Import the workflow Vehicle Service-1.1.0.0.xml, set this as default and activate it.
You can find this XML in the Visual Studio projects node, FMWorkflowXML.
4. Set the workflow execution account to Admin.
5. Start the workflow batch jobs (System administration > Setup > Workflow > Workflow
infrastructure configuration).
4
CONFIGURING THE FLEET MANAGEMENT SAMPLE APPLICATION
AIFInboundprocessingservice
AIFOutboundprocessingservice
AifGatewaySendReceive
Right-click on the query and run the AIF Document Service Wizard. You must include
the create, update and read operations as part of the service generation. Override the
method useNaturalEntityKey in the class AxdFMAxDVehicleQuery to return true.
3. Compile the generated project to ensure that the class FMAxDVehicleQueryDocumentService that
implements the service body is complete.
4. Open System administration > Setup > Checklists > Initialization checklist and run the
Set up Application Integration Framework item. This could take a long time.
5. In the Development Workspace, on the Build menu, click Generate Incremental CIL.
3. Open Common > Organization > Jobs. Click New Job in the Action Pane. Create Manager,
Clerk, and Service Tech jobs, each with their corresponding title.
4. Open Common > Organization > Positions > Positions. Click New position in the Action
Pane. Create SEATAC Manager, Redmond Manager, Redmond Clerk, Redmond Service
Tech, and Washington Branch Manager positions, listing the name of the position in the
description box and matching each with its corresponding job.
5. Open Common > Workers > Workers. Click Hire new worker in the Action Pane. Assign each
person the position listed.
Position
Employee
Redmond Manager
Tom Michaels
Redmond Clerk
April Stewart
John Smith
Vidhya Mahadevan
You are done with the setup and configuration of Fleet Management
application!
6
CONFIGURING THE FLEET MANAGEMENT SAMPLE APPLICATION
Data Model
The most important aspects of data model design are captured in the vehicle related tables
for FM. Here is the high level overview of the most interesting aspects of the data model
design.
Features covered
Table Relations
Table Inheritance
Unit of Work
Delegate
Event handler
Workflow
Workflow runtime
Workflow history
8
CONFIGURING THE FLEET MANAGEMENT SAMPLE APPLICATION
Service groups
Security
Enterprise Portal
List pages
Reusable controls
9
CONFIGURING THE FLEET MANAGEMENT SAMPLE APPLICATION
Microsoft Dynamics is a line of integrated, adaptable business management solutions that enables you and your
people to make business decisions with greater confidence. Microsoft Dynamics works like and with familiar
Microsoft software, automating and streamlining financial, customer relationship and supply chain processes in a
way that helps you drive business success.
U.S. and Canada Toll Free 1-888-477-7989
Worldwide +1-701-281-6500
www.microsoft.com/dynamics
This document is provided as-is. Information and views expressed in this document, including URL and other
Internet Web site references, may change without notice. You bear the risk of using it.
Some examples depicted herein are provided for illustration only and are fictitious. No real association or
connection is intended or should be inferred.
This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You
may copy and use this document for your internal, reference purposes. You may modify this document for your
internal, reference purposes.
2011 Microsoft Corporation. All rights reserved.
Microsoft, Microsoft Dynamics, and the Microsoft Dynamics logo are trademarks of the Microsoft group of
companies.
All other trademarks are property of their respective owners.
10
CONFIGURING THE FLEET MANAGEMENT SAMPLE APPLICATION