Download - Nhi Doan Portfolio
Final Project
Implement Purchase Order Approval Workflow Feature
Sections:Student Assignment, Requirements, Deliverables, Hints, Actual Implementation Steps
Deliverables: InfoPath Forms Workflow feature
Student Assignment: Create supporting InfoPath forms
AssocForm.xsn InitForm.xsn ActionForm.xsn
Workflow Association Form 4 fields
o managerUsernameo managerFullnameo reviewTypeo reviewComments
Workflow Initiation form
2 | P a g e
Based on same structure as the Workflow Association Form
Workflow Action form
3 | P a g e
2 fieldso reviewCompletedo reviewNotes
Create a Visual Studio SharePoint workflow utilizing these forms as an approval process
Create the appropriate manifest.xml and feature.xml files
Add and activate the workflow
Associate the work flow with the Tow services invoices.
Requirements:
The workflow should:o Update the Acme Invoice list indicating payment approvalo Move the InfoPath document to the archive libraryo Email status of approval
Design of the three .xsn forms
4 | P a g e
AssocForm.xsnRight-click the Manager Username and select Text box properties
5 | P a g e
Enter Field name
Select Data type
Click the fx button then click Insert functions button and select Username()
6 | P a g e
InitForm.xsn
7 | P a g e
ActionForm.xsn
Right click the Submit button then select button properties.
Click Rules button
8 | P a g e
Click Add button
Click Add Action
9 | P a g e
Click the Field button on the right
and select ManUsername for Manager Username
Click the Field button on the right and select ManUsername for Manager Username
10 | P a g e
For Value click fx button then click Insert Functions button
Select username()
Visual Studio AcmeTowingWorkflow
11 | P a g e
Click on each step and define the properties
12 | P a g e
Workflow.xml
Under MataData the value of Association_FormURN is taken from the AssocForm.xsn form Properties.
The value of Instantiation_FormURN is taken from the InitForm.xsn form Properties.
(see below)
13 | P a g e
14 | P a g e
Feature.xml
Include AssocForm.xsn and InitForm.xsn in <ElementManifests>
<ElementManifest Location="workflow.xml" /> <ElementFile Location="AssocForm.xsn"/> <ElementFile Location="InitForm.xsn"/> </ElementManifests>And
Properties> <Property Key="GloballyAvailable" Value="true" /> <Property Key="RegisterForms" Value="AssocForm.xsn" /> <Property Key="RegisterForms" Value="InitForm.xsn" /> <Property Key="RegisterForms" Value="ActionForm.xsn" /> </Properties>
At this point we can Build and deploy.
15 | P a g e