WEBSITE

Sharepoint 2010 : Workflow - Demonstration Scenario

10/12/2013 3:48:24 AM

There’s a lot to demonstrate when it comes to workflows. Consider this demonstration scenario:

You’ve been asked to design and build an online ordering system for an electronic component manufacturer. To comply with international regulations relating to environmental protection, each product available for order must have achieved compliance with the appropriate standards for the country into which it will be sold. Determining compliance involves performing a series of calculations to determine the level of specific substances within the finished product. Since the calculation is relatively complex, it will be performed by a separate system. Once the calculation has been performed, the results should be sent to an environmental control officer for verification.

In addition to the environmental control procedure, products being offered for sale must also follow a specific publishing process before being included in the site. New products will be added by the sales department. So that relevant technical information is available, details of the product will be passed to the engineering department, which will update the product record with appropriate details. With these details in place, the marketing department will then be responsible for collating and attaching the appropriate artwork before the product is sent for final approval by the online sales manager.

From this scenario, an appropriate design might involve three sequential workflows:

  • The first workflow will implement the environmental control procedure.

  • The second will implement the publishing procedure.

  • The third will do the work of physically making the product available for sale once the environmental procedure and the publishing procedure have completed successfully.

Tip

All three processes could be implemented using a single workflow. However, in my experience, there’s only one constant when it comes to business processes and that’s change. In the interests of reuse and maintainability, three separate workflows are being created, since each addresses a discrete business process. This means that if the environmental control process changes, for example, only that workflow needs to be changed regardless of where it’s used across the organization. Had the process been incorporated into many separate workflows, making changes would be time-consuming and could lead to inconsistent results. It’s always a good idea to limit the scope of a workflow to a particular business process when possible.


Prerequisites

Before we can demonstrate workflows in SharePoint 2010, let’s create a sample site collection to hold the appropriate data.

  1. In SharePoint Designer, choose File | Sites | New Blank Web Site.

  2. Type this location for the new web site: http://localhost/c11.

  3. With our new blank web site in place, we can start defining the data structures that are required by our application. From the Site Objects pane, select Site Columns:

  4. From the Columns ribbon, choose New Column | Currency. In the Create a Site Column dialog that appears, type the name Unit Price. Choose the New Group radio button and type the name Online Sales Columns in the text box. The completed dialog should look like this:

  5. Now we’ll create a few new columns. Choose New Column | Hyperlink Or Picture from the Columns ribbon. In the Create a Site Column dialog that appears, type the name Product Image. Then choose New Column | Yes/No (checkbox) and type the name Environmental Compliance. Then choose New Column | Multiple Lines Of Text and type the name Technical Details. Then choose New Column | Single Line Of Text and type the name Product Name.

  6. Now we’ll make use of these site columns to define a new Product content type to hold details of our product catalog. From the Site Objects pane, select Content Types. From the Content Types ribbon, in the New section, click the Content Type button to define a new content type. In the Create a Content Type dialog that appears, type Product in the Name field. In the Select A Parent Content Type section, from the Select Parent Content Type drop-down, choose List Content Types. In the Select Parent Content Type drop-down, choose Item. Select the New Group radio button, and in the text box, enter the name Online Shopping Content Types. The completed dialog should look as illustrated:

  7. The next step in creating our custom content type is to add the site columns that we defined earlier. From the Site Objects pane, select Content Types and then select the Product content type from the content types list. Then, on the Content Types ribbon, in the Edit section, click Edit Columns.

  8. To attach the site columns that we created earlier, click the Add Existing Site Column button on the Columns ribbon. Repeat this process to include all the columns in the Online Sales Columns group that you added in steps 4 and 5. Once all columns have been added, the completed list should look as follows:

  9. Click the Save icon in the upper-left corner of the SharePoint Designer window to commit the changes to the Product content type.

  10. Our next step is to create a list using our custom content type. The list will be used to store our product data. From the Site Objects pane, select Lists and Libraries. From the Lists and Libraries ribbon, select SharePoint List | Custom List, as shown:

  11. In the Create List Or Document Library dialog, enter Products as the name and then click OK to create the list.

  12. The final step in preparing our demonstration site is to attach our Product content type to our Products list. Double-click the Products list to manage the list settings. In the Settings section, check the Allow Management Of Content Types checkbox.

  13. In the Content Types section, click the Add button, and then select the Product content type from the list. Highlight the Item content type and then click Show on New Menu from the ribbon. Removing the content type from the new menu will prevent content of type Item from being created using the user interface.

  14. Click the Save icon to commit our changes to the Products list.

Other  
 
Top 10
Review : Sigma 24mm f/1.4 DG HSM Art
Review : Canon EF11-24mm f/4L USM
Review : Creative Sound Blaster Roar 2
Review : Philips Fidelio M2L
Review : Alienware 17 - Dell's Alienware laptops
Review Smartwatch : Wellograph
Review : Xiaomi Redmi 2
Extending LINQ to Objects : Writing a Single Element Operator (part 2) - Building the RandomElement Operator
Extending LINQ to Objects : Writing a Single Element Operator (part 1) - Building Our Own Last Operator
3 Tips for Maintaining Your Cell Phone Battery (part 2) - Discharge Smart, Use Smart
REVIEW
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
VIDEO TUTORIAL
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
Popular Tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8