Sie sind auf Seite 1von 37

Document Review and Approval Application Design

The first step to building a new application is to lay out the application design. Begin with the workflow, or workflows. This identifies
the user steps and system steps necessary to achieve the workflow goal. From here, you can determine what forms you need. Does the
user need to edit form content? Are the forms read-only? Once you have a good understanding of the workflow and forms, you can
determine the data sources. Where is data stored? SharePoint? SQL Server? Do you need to retrieve data? If so, where is the data
coming from? Finally, you can decide if you need to report on the workflow and what kind of reports you need.

Workflow
This application has two workflows: Document Review Workflow and Document Approval Workflow. You will configure both
workflows to start on-demand. After you upload a document to the SharePoint library, you will decide which workflow to start. If you
need input on a document, select the Document Review Workflow. If the document is ready for final approval, select the Document
Approval Workflow.
Both workflow layouts are in a swim-lane format. Notice how each lane represents a user or a system responsible for the task(s). The
workflow moves from one lane to another, before coming to an end.
Document Review Workflow

Document Review Workflow


Key points in the Document Review Workflow steps:

 You can select one or more reviewers to provide input


 A system step updates the status property in the SharePoint library to pending
 The workflow moves to a review document user step
 All reviewers must accept the document to follow the accepted outcome
 If one or more reviewers selects rework, the workflow follows the rework outcome
 The rework outcome routes the workflow back to you (the originator)
 You have the option to resubmit the document or cancel the review request
 The rework outcome creates a looping effect and can loop as many times as needed
 After each user step, a system step updates the document's status property
Document Approval Workflow

Document Approval Workflow


Key points in the Document Approval Workflow steps:

 You can select one or more approvers


 A system step updates the status property in the SharePoint list to pending
 All approvers must approve the document to follow the approved outcome
 If one or more approvers rejects the document, the workflow follows the rejected outcome
 If approved, a system task sends an email to you with the approvers decision with a link to the document
 If rejected, a system task updates the document's status property

Forms
This application uses K2-generated SmartForms for user interaction. SmartForms are not used to start the workflow. You start each
workflow on-demand from the library itself. SmartForms are more flexible than standard SharePoint forms. In the last step in this
tutorial, you will edit a SmartForm and remove unnecessary controls. This is not easily accomplished with SharePoint forms.

Reports
You will create the reports element as part of generating application elements from the library. The reports component is not covered
in depth however.

Data
This application uses one SharePoint library for the data component. The table below outlines the properties (columns) the application
requires.

Column Type of
Library Name Name Data Notes

Documents to Title Single line This is the existing Title column for the document library. The column displays
Review and Approve (existing) of text Name when viewing the library.
This is a group of users who review the document. When you start the
Person or workflow, you add user names to this list. The workflow creates a task for each
Reviewers Group user on the list.

Review Single line


Status of text The review workflow updates this property as it progresses.

This is a group of users who approve or reject the document. When you start
Person or the workflow, you add user names to this list. The workflow creates a task for
Approvers Group each user on the list.

Approve Single line


Status of text The approve workflow updates this property as it progresses.
Next: 1. Confirm the SharePoint App is Active; Add the K2 Worklist Web Part

How to create a SharePoint approval workflow with 3


dynamically-determined approvers
15DEC

Create a workflow which is described on following image.

Note: After any two of three approvers finish their approval tasks document will be either approved or rejected.
<img src="http://3.bp.blogspot.com/-
b9K2UqMffzA/VH3PIj35S8I/AAAAAAAABW8/ANRGs4DAGk8/s1600/Approval%2Bworkflow.png"/>

Resolution

Access SharePoint site and create custom SharePoint list.

List name: Regulation Approvers

Columns:

 Editor (PeoplePicker)
 Approver1 (PeoplePicker)
 Approver2 (PeoplePicker)
 Approver3 (PeoplePicker)

<img src="http://4.bp.blogspot.com/-
Mf6W8Mjq7Yg/VH4LpgoEKoI/AAAAAAAABf4/38Da7PkuuXs/s1600/x01.PNG"/>

Note: Using this method approvers can be different for different users/employees.

Also, create libraries:

 Regulations – draft
 Regulations

Regulations is public library, everyone has “Read” access.


Open SP Designer – Workflows – List WorkFlow – “Regulations – Draft”

Name: Parallel Approval WF 2013 – 3 approvers.

VIDEO: How to Create a More Complex Workflow using SharePoint Designer

<img src="http://3.bp.blogspot.com/-jsULqd-
D3fA/VH3YZRvrVcI/AAAAAAAABbk/iF0L4kJx5Ec/s1600/01.PNG"/>

Action – Set WF Status – this message – “In progress”.


<img src="http://4.bp.blogspot.com/-
IfuJhKblS24/VH3YZbi4B3I/AAAAAAAABbs/I5pYoOORZRg/s1600/02.PNG"/>

Action – Set WF Variable.


Workflow variable – create a new variable… –

<img src="http://1.bp.blogspot.com/-
7VdBlJiOc4o/VH3YZSq73qI/AAAAAAAABbo/usyO3d00uh4/s1600/03.PNG"/>

Name: Approver1
Type: String – OK
<img src="http://1.bp.blogspot.com/-
7KVAkvdHr5o/VH3YaETHnAI/AAAAAAAABb0/9c9xVn_zzms/s1600/04.PNG"/>

Value – fx.
Click on fx and enter following parameters:

<img src="http://2.bp.blogspot.com/-
LP_hg2_xavA/VH3YaZnURXI/AAAAAAAABb8/fQgmc4U_9rA/s1600/05.PNG"/>
<img src="http://3.bp.blogspot.com/-
_wC10YhCXJk/VH3YaSN78uI/AAAAAAAABb4/q9N-lnpJclA/s1600/06.PNG"/>

<img src="http://1.bp.blogspot.com/-
hnwmITRsR_A/VH3YajvB4iI/AAAAAAAABcA/Fluje7cninQ/s1600/07.PNG"/>
Click on OK button.

<img src="http://3.bp.blogspot.com/-s92Dq-
dP_Io/VH3Ya9TAq5I/AAAAAAAABcE/zdTl9uVu3rE/s1600/08.PNG"/>

Click on Yes button.

<img src="http://2.bp.blogspot.com/-
Pa9slvZueo8/VH3YipajGmI/AAAAAAAABew/KxzrhbT5Ioo/s1600/09.PNG"/>
You should be able to see workflow presented on the following image:

<img src="http://3.bp.blogspot.com/-
x53R7jz55cE/VH3YbZNlVWI/AAAAAAAABcI/Uh785a59fVY/s1600/10.PNG"/>

Now repeat the same steps to create variables:

 Approver2
 Approver3

<img src="http://4.bp.blogspot.com/-
0qlPHNrwloQ/VH3YbiDkKmI/AAAAAAAABcM/sDc7hR7YIrg/s1600/11.PNG"/>

 Now click on Action – Set a task process.


 Click on “these users” link.
 Window presented on following image will be shown.
 Select “Parallel (all at once)”.
<img src="http://4.bp.blogspot.com/-
Ig51AKI_puc/VH3YcOepxTI/AAAAAAAABcU/7jKE4xtrN6Q/s1600/12.PNG"/>

Now click on “…” button to define paticipants (approvers) – Workflow Lookup for a User… – Add – (insert parameters as shown on the image
below).

<img src="http://4.bp.blogspot.com/-
jqreF4rX7u0/VH3YcSm8UoI/AAAAAAAABcY/OWPzo_SUJrY/s1600/13.png"/>
 Repeat process for Approver2 and Approver3.
 Click on OK button.

<img src="http://1.bp.blogspot.com/-
tqEdlbD2TuI/VH3Yc9i9CCI/AAAAAAAABcg/Cy_CGOG7vJM/s1600/14.png"/>

Click on “…” button next to the “Task Title” field.


<img src="http://4.bp.blogspot.com/-
e4Fcu3dVkts/VH3Yc4mE89I/AAAAAAAABck/O1okQmoNLU0/s1600/15.png"/>
Type: “Request for approval – “.
Click on Add or Change Lookup button, insert parameters as shown on the image below.
Click on OK button.

<img src="http://4.bp.blogspot.com/-
GEpt4hMgIM0/VH3YdfYeUhI/AAAAAAAABcs/9YdlmpvGMfA/s1600/16.png"/>

Following image presents workflow created so far.


<img src="http://1.bp.blogspot.com/-
a4N9o0HDzzQ/VH3YduA43WI/AAAAAAAABcw/r4dErgqHsYE/s1600/17.png"/>

Click on Task Options.


Insert parameters as shown on the images below.
<img src="http://4.bp.blogspot.com/-
MopPugNAWUM/VH3YeNK-xCI/AAAAAAAABdA/LySrQSPyafU/s1600/18.png"/>

<img src="http://1.bp.blogspot.com/-
G4iJCtt3OiY/VH3YeORfDzI/AAAAAAAABdE/dLJo6F-9mdc/s1600/19.PNG"/>

In this case approval process will be finished after any two of three approvers finish their approval tasks.
Note: if I put any number higher than 33 and lower than 67 outcome will be the same.
Now click on Email Options.
Click on Open email editor and edit email that will be sent to approvers.
E.g.

<img src="http://1.bp.blogspot.com/-
7p9m5Yx0N7c/VH3Ye5YgIEI/AAAAAAAABdM/aV-UZBukIXU/s1600/20.png"/>

We do not want to set Approval Task Due Date, so in this case we will not check “Send Task Overdue Email” option.
<img src="http://3.bp.blogspot.com/-
smEyRriFtds/VH3YfBLg9rI/AAAAAAAABdQ/nP4IeqOmPdk/s1600/21.PNG"/>

Click on Outcome Options and select parameters as shown on image below.

<img src="http://4.bp.blogspot.com/-
X2SLK38cD_o/VH3YfjO2reI/AAAAAAAABdc/vhuy-6JOC4A/s1600/22.PNG"/>

Click on OK button.
<img
src="http://3.bp.blogspot.com/-tNe_-mt0VWA/VH3YfwP9vtI/AAAAAAAABdg/yf4mO3F1T0o/s1600/23.PNG"/>

Now we need to set what whoul happened if an item is approved and what if an item is rejected.
Click on Condition – If any value equals value.

<img src="http://1.bp.blogspot.com/-
Luo27D5Zcq8/VH3YgQKZ0gI/AAAAAAAABdo/0FLC05k1nlY/s1600/24.png"/>
Click on left “value” link, click on “fx” button – (enter parameters as shown on image below).
Click on other “value” link, click on Approved.
Singl left click below following string: “(Start typing or use the Insert group on the Ribbon.)”.

<img
src="http://1.bp.blogspot.com/-Rtv9ghLCWX8/VH3Ygq7WrNI/AAAAAAAABeI/LaYF0hUm678/s1600/25.PNG"/>

Action – Set WF Variable – Set WF status to: “Document is Approved”.


Action – Copy Document – this library – Current item – OK – this library – Regulations.
Action – Send an Email – these users – (click on the icon next to the “To” field).

<img src="http://3.bp.blogspot.com/-
8d8cZ9W4wTE/VH3YhP4HJkI/AAAAAAAABd4/6qXAxqRJa98/s1600/26.PNG"/>

Workflow Lookup for a User… – Add.


<img src="http://2.bp.blogspot.com/-
s4CWtXhzOhA/VH3Yh8ECBSI/AAAAAAAABeQ/Wyeoow5gMGY/s1600/27.png"/>

Enter parameters as shown on the images below.


<img src="http://2.bp.blogspot.com/-1-
_3yM1UMJQ/VH3YihGIiPI/AAAAAAAABeU/Tq3STXU-odo/s1600/28.png"/>

<img src="http://3.bp.blogspot.com/-
vtPIEpniX0A/VH3YiwoZN2I/AAAAAAAABeo/4n2gNKsbgag/s1600/29.png"/>
<img src="http://4.bp.blogspot.com/-
xrIUJAITlu0/VH3YjKhWSXI/AAAAAAAABek/QAjOzdhAUDI/s1600/30.png"/>

Define Subject as shown on the image below.


Define mail body.
E.g.
<img src="http://4.bp.blogspot.com/-
LMncBi2mI_o/VH3YkeNl7RI/AAAAAAAABfg/5dBaxMDEjV8/s1600/31.png"/>

Click on “Else Branch” button placed in the ribbon.


<img src="http://2.bp.blogspot.com/-AknkNjBH4pM/VH3YkYF1GEI/AAAAAAAABe0/UnKJ1-
ZaEYI/s1600/32.png"/>

Action – Set WF Variable – Set WF status to: “Document is NOT Approved”.

<img
src="http://3.bp.blogspot.com/-wSPkao_aqXI/VH3YlDx_nEI/AAAAAAAABe4/5pP2VFNIjXI/s1600/33.PNG"/>

Action – Send an Email.


Now define mail that will be sent if document is not approved using the same method described abowe.
After you finished defining Else branch click below “(Insert go-to actions with conditions for transitioning to the stage)” string, click on Action –
Go to a stage – click on “a stage” link – select “End of Workflow”.

<img
src="http://2.bp.blogspot.com/-wASAhhqBG1o/VH3YltvvQmI/AAAAAAAABfA/xb0SX9D7IyI/s1600/34.png"/>
Now click on “Check for Errors” button placed on the ribbon.
“The workflow contains no errors” message will be shown, click on OK button.
Click on Save button placed on the ribbon.
Now click on the name of workflow we created.
Define Settings and Start Options.

<img src="http://2.bp.blogspot.com/-
rI34YLmmpJY/VH3Yln03WcI/AAAAAAAABfQ/2t8V02rzuxg/s1600/35.png"/>

<img src="http://1.bp.blogspot.com/-
4379J50iwpA/VH3YmN6yzHI/AAAAAAAABfI/3Zs3gsYuDgE/s1600/36.PNG"/>
Click on Save button.
Click on Publish button.

Originally Posted here: link.

<img style="width: 100%" src="https://collab365.community/wp-content/uploads/2019/06/register-for-the-flow-summit-01.png"/>


<img style="width: 100%" src="https://media.collab365.community/c365jobs/wp-content/uploads/2019/05/16090200/powerapps-blog-promotion-
ebooks-01-01.png"/>
3.63/5 (8)

Please rate this


Presentation style

Usefulness of content

Quality of content

Views: 36.19K | Categories: SharePoint, Workflows


<img alt='' src='https://collab365.community/wp-content/uploads/avatars/4279/2491-1098335416-bpfull.jpeg'/>

About The Author


Tomislav Tasic -

Previous

Win one of three HP Windows 8.1 tablets Sponsored by MetaOption on SharePoint-Community!

Home
About
 Products
 Benefits
 Testimonials
 Blog
 Contact
SharePoint Workflows Automate Business Processes
December 4, 2014

In general, workflow refers to a series of tasks that produce a particular outcome. For Microsoft SharePoint products and technologies, workflow is the automated movement of documents or items through a
sequence of actions or tasks that are related to a business process. Workflows can be used to consistently manage an organization’s common business processes by enabling the organization to attach business logic to
documents or items in a SharePoint list or library. Business logic is a set of instructions that specifies and controls the actions that happen to a document or item.

Workflows can streamline the cost and time required to coordinate common business processes, such as project approval or document review, by managing and tracking the human tasks involved with these
processes. For example, adding a workflow to a document library in a SharePoint site could then route a document to a group of people for approval. When the document author starts this workflow, the workflow
creates document-approval tasks, assigns these tasks to the participants, and then sends email alerts to the participants with task instructions and a link to the document out for approved. While the workflow is in
progress, the workflow owner or participants can check the Workflow Status page to see what tasks are completed. When all tasks are completed, the workflow ends and the owner is automatically notified that it is
completed.

Out-of-the-Box SharePoint Workflows

SharePoint workflows 2013 offer several tools for common business scenarios:

Approval: Routes documents or items to a group for approval.

Feedback: Routes documents or items to a group for feedback, which is then compiled and sent back to the initiator of the feedback workflow.

Signature collector: Routes documents or items to a group to collect their digital signatures.

Disposition approval: Manages document expiration and retention by allowing participants to decide whether to retain or delete expired documents; supports records-management processes.

Group approval: Similar to the Approval workflow, but uses a designated document library and offers a personalized view of the approval processes in which the user is participating.
Three-state: Manage business processes that require organizations to track a high volume of issues or items, such as customer-support issues, sales leads or project tasks.

Custom Workflow Support

These predefined workflows can be somewhat customized to meet different needs, but it is also possible to design and develop workflows for unique business processes. Workflows can be as simple or complex as
the business processes require. Developers can create workflows that are started by people who use a site, or they can create workflows that start automatically based on an event, such as when a list item is created or
changed. For more information about customizing workflows visit this SharePoint tutorial.

MH (Marc-Henri) Lauzon

MH Lauzon is President of the cloud-hosting provider ITUtility.NET, a Canadian leader in the cloud-hosting industry. With unparalleled expertise in Microsoft® SharePoint®, he has been helping
private- and public-sector organizations automate their business processes using that platform since 2003. www.itutility.net

Comments

0 comments

Das könnte Ihnen auch gefallen