다음을 통해 공유


SharePoint 2010: Build a Loop Workflow

Introduction

In SharePoint 2013 Designer, SharePoint 2013 workflow now comes with a new feature called Loop where a series of actions are executed repeatedly for as long as the specified conditions are met. However, with the correct set of conditions and actions the same be achieved in SharePoint 2010 workflow as well. In this article I am going to provide a step-by-step detail of how a loop workflow can be built using a custom SharePoint 2010 list, SharePoint 2010 Designer and InfoPath 2010 designer. In this example a Site collection with SharePoint 2010 Enterprise feature has been enabled.

Setting the Scene

A legal department needs a custom list, form and workflow where businesses can submit contracts to be reviewed and approved. The forms and workflow should provide the option to return the contract back to the requester for further information or for negotiation purposes. Below is a diagrammatic view of the workflow

https://zz3yxa.dm2304.livefilestore.com/y2puLJjpT0rFiFFg6ivqSMIP7BMd8xIU8rpwDI7zbtGhXnImlkAsDtGoXBMeiIOsCWGIEyX8u1rhlxijJzP8AFzSkUevekHifSlP5bG3Z-FQII/Capture1.png?psid=1

Custom List

I have created a custom list called Contract Requests. I then created a SharePoint group called Attorneys and given them Contribute access. I have added all the attorneys to this group. In the List Settings under General Settings click on Versioning settings as shown below.

https://zz3yxa.dm2302.livefilestore.com/y2pxfqvymimflAyUAip0B408Bbw3IoVhununG8zdwDZhSv3JVrwdI2DcVgEHmkcPAJMBULR0ymd6-qdFBaScRCMOScwqf-s4x5lZBnnkTxSbcU/Capture2.png?psid=1

Below is a screenshot of the Versioning settings. For this example I have set the limit as 16, however, you can change that to your discretion. This setup is necessary for the cascading comments added by end users to the items throughout the life of the contract workflow.

https://zz3yxa.dm1.livefilestore.com/y2pe6KPmr8Bvm9IXQizpowAo7pJ8ZkMwTBJk9hfUpXXNPcPDmC3LsQhyGBknWvz-2lkbdONwts6k411kHWncTGuVwUy1u5JYMqXHSF6eRhJ_nQ/Capture3.png?psid=1

Below is a screenshot of all the custom columns I have created for this list.

https://zz3yxa.dm1.livefilestore.com/y2pBb93tSk8MPHxqY9ORHtu9cg2vE-aydDaaSbOsoij0C7ibbXpeeje0V2rBsRnlrX4x91d7JNC9Jg4t-xSUcE2U5gQj3RwyjXfTkRQIhMK5so/Capture4.PNG?psid=1

For the Choice columns, I have provided the choices as shown below.

Current Status Choices:

  • New
  • Pending additional information from requester
  • Request submitted
  • Sent to attorney
  • Attorney reviewing in process
  • Negotiating terms
  • Attorney review completed
  • Contract executed

Current WF Status Choices:

  • New
  • In-Progress
  • With Emily
  • With Attorney
  • With Requester
  • Completed

Below are screenshots of Action Required, Attorney and Loopback Control columns

https://zz3yxa.dm2302.livefilestore.com/y2pRRIoVi5ACzjkgAFZrxkgYzvkm-sgciGcFgDxeBiH7wkJcR01GDggNh6EGY2CjnDZtZMllnvD6Pc1Kl7_goWSU0M1HwbWpCI5Pb0LklyCFrs/Capture4a.PNG?psid=1

https://zz3yxa.dm2302.livefilestore.com/y2p072YJ01uopoCRIIRGxbw-HbNZ-p0JlfS44L7T0lwF0-nyDudtjAN4EbK_Cde5A231mnDpECdQ_wwo6qHofIf4tjrwsmB0oR5dxzQITkbXG8/Capture4b.PNG?psid=1 https://zz3yxa.dm2303.livefilestore.com/y2pqYlIfleVRHPljeIwi1dX1vMhFag2o2-AxCsmYKvuX-enMPoelpdEO8lX8Mx3Flq6IceV4tTCwzTTrnzmSaDmPkUaEzcoIPOfsNqUC2HVeY8/Capture4c.PNG?psid=1

I have also created 9 different views for this list, 8 views match the 8 different choices in the Current Status column and the 9th is In-Progress view. 

Below are screenshots of the filter I have applied for the In-Progress view.

https://zz3yxa.dm2304.livefilestore.com/y2pBDNbq3YLdpYIbN7TlcjhNAK9XsrclZ09K7g3HhOzGKBF7t5rC9dESIrVCqMCyt9j02Sy1-oIVK2HoANKdDrLMDzopP7VeHY0LTlszIgyI3s/Capture5a.PNG?psid=1

https://zz3yxa.dm1.livefilestore.com/y2pK82gctiNG_bw_gtZia35L9TZHI3T27BLXUgMCIw8a95m_UBJYed8KoyaUXmqmFUe0tyL4oWMaV3YfnUAfoi657BCC5nqeojiHIIhcTlirtY/Capture5b.PNG?psid=1

Building the Forms

This section talks about building the web based form built using InfoPath designer 2010. This form is going to have the following 5 views.

New Form view

Requester View

Legal Administrator view

Attorney View &

Completed view.

Specific conditions are going to be applied based on which the forms will displayed. These conditions are met at a specific step of the workflow. **Hence the views of the form are dependent on the workflow. **Open the list in InfoPath Designer 2010 directly from SharePoint using the Customize Form option from the ribbon. This option is available only in the SharePoint Enterprise feature. The initial view of the form is as shown below. Notice the Action Required field is now a Repeating Section. This is why we turned on the Versioning Settings as shown before.

https://zz3yxa.dm2303.livefilestore.com/y2p6K8k_htKRjVqTh9eZK_pWXdMx2Tcjyfux-4GA5dULtT4tWoxZky2JRFLAkT7U0TAHaRZXRsDy75RHO8FegRPkXzERuFYWWnccNxrqelMqCQ/Capture6.PNG?psid=1

I am going to add all the controls and title in this default form and then make copies of it to make custom forms. In the forms I am going the delete the titles and controls not needed. Also, the cancel button for all the views have the same action which is to close the form hence I am going to add that action in the default form.

Below is a screenshot of the default view shown both in InfoPath designer and the web form. I have also provided a screenshot of the cancel button action.

InfoPath Designer

https://zz3yxa.dm2304.livefilestore.com/y2pggSicTvwlO3Kver6K_B1HP2maR1hrUCtBgNoNQGD1QjXGX9Zwgr8n_nHhIE7WsM7UFILjFyDTqFFktaoAyOtpTA7MNCsOfGvIfu2lNn90Tc/Capture7a.PNG?psid=1

Web based form

https://zz3yxa.dm2304.livefilestore.com/y2pgRvVUEQJh7Ej_WiMP5vVLMtkASyxV3jSaqIKpeifGPk1Ef0P6cLXqWmESSLj_7SoteQoEqk8euY4Ua4C6pfAc9_gIwsz1uAShwvTcKrMF_0/Capture7b.PNG?psid=1

Now we are going to build the 5 custom views. The key idea I want to describe are the fields viewable and the Manage Rules I have setup on the Submit button for each of the Views. As I stated above all the cancel buttons have the same action hence I made that one time change in the original default form.

New Form View

 Below is the look and feel of the new form view.

 

https://zz3yxa.dm2301.livefilestore.com/y2psc4FimRJhh3dHGuob4uMDjLXsBr_QPV5-VDRN77CkH2bOYmaVx6-6M-VYvJD8kqkHDlvrTSMh8QujVsGpL-wsEpiF1fskSecGU3b5MzbgSs/Capture8a.PNG?psid=1

Click on the Submit button and add an Action Rule. Give it a name that makes sense such as 'SubmitButton'. Do not make any changes to the condition. Add three actions, 1st set Current Status = 'Sent to Attorney', 2nd Submit data and 3rd close this form. Below is a screenshot

https://zz3yxa.dm1.livefilestore.com/y2pZL-mE1u-bc4J6hyWdZ20vmG-NYdmWprm2uk40dKds7euL82qIyxJcg4HHBVjCU639XVN1J71kpnE_9NZDUxw-4FdOd1N59ba8GNomANimk4/Capture8b.PNG?psid=1

Below is the look and feel of the Legal Administrator view. As you can see we have added the 'Current Status' and the 'Attorney' columns.

https://zz3yxa.dm2301.livefilestore.com/y2pdU7ZOL__0Q-Tfn8HHaj6_C_KkFO9SQX-5izy_y6GlnHp4B2jYAhduksTuQT3V-q2VGJbPB887j1s53ubScok0LRBuNB21rqiYo5YjQymxqA/Capture9a.PNG?psid=1

Click on the Submit button and add an Action Rule. Give it a name that makes sense such as 'SubmitButton'. Do not make any changes to the condition. Add three actions, 1st set Current Status = 'Sent to attorney', 2nd Submit data and 3rd close this form. Below is a screenshot

https://zz3yxa.dm1.livefilestore.com/y2phY0HEME41xVUGUtsW1WjWRmRfNuSCnisq6Y2l4q_HY3jMCKHosQOGMqYdjO9qdq73-yomoIbpliSLllHK777naE3WxkCnX2DMvSZfR-YNEU/Capture9b.PNG?psid=1

Requester View

This view is built for the requester when the contract request has been re-turned back for either more information or for negotiation. Below is the look and feel of this view

https://zz3yxa.dm2301.livefilestore.com/y2pCVAntSTpMoZrUzO8zmd7ttbSxbErCSX3qkXnW814NVvIcnbb5Q5qwPfLcyIrPN-fPSnI1yb0Sbl7CqE1hHCDmBJEVve449Cf4U7uzDaDrI4/Capture10a.PNG?psid=1

Click on the Submit button and add an Action Rule. Give it a name that makes sense such as 'SubmitButton'. Do not make any changes to the condition. Add three actions, 1st set Loopback Control = '1', 2nd Submit data and 3rd close this form. Below is a screenshot

https://zz3yxa.dm2302.livefilestore.com/y2paMNIyI_MPn6lab5LUtYg4X5JFea_UjQk_cYFd2rcxLLOg11tZVN2hjgcB6OLgYHgRAaHPuRsGgbL87Yb5yU5hWfMa2TYABM6E67CxzT5KtI/Capture10b.PNG?psid=1

Attorney View

Below is the look and feel of the attorney view which is very similar to the legal administrator view. 

https://zz3yxa.dm1.livefilestore.com/y2piQ1gD9WNx8I-FOh9CyywATWWYvZO2ONvE1m6mK8-Dhj9c6SltXzkvguJr_KLY0l_KODCPxQieOslQ3rs_engaH6BO3LoMG9j7v-2KQ3ApTc/Capture11a.PNG?psid=1

Click on the Submit button and add an Action Rule. Give it a name that makes sense such as 'SubmitButton'. Do not make any changes to the condition. Add two actions, 1st Submit data and 2nd close this form. Below is a screenshot

https://zz3yxa.dm2302.livefilestore.com/y2pLlaLsfIJTos77MmG6XzoIuc9EAK-9cqfiueZ6Yf0ob8VSjyTqyWI0bKSwsAd31A9cjqEl2caI3djWxtqAIM-a3ekTRawDryZYedhYPVqGHw/Capture11b.PNG?psid=1

Completed View

This view is meant for viewing contracts that have completed its transaction process. The submit button is purposefully removed since no changes need to be made anymore. Below is the look and feel of the form

https://zz3yxa.dm2302.livefilestore.com/y2pajG7xfBHBdx8iUNAuSPJdEuRWOxtStUllVQWltFW3yfG1oUF7mNLVUWG7A62zEM13EwKErwPz7dfFDUS1ez7gUvTmMaaBM8ZgSMg0fw9W9s/Capture12.PNG?psid=1

Form Load Rule

In this section I will describe the Action rules to display the form which is relevant to the workflow. Below are the conditions setup using Form Load as shown below

https://zz3yxa.dm1.livefilestore.com/y2pm8n1P2rRkuEbMzKpgS6DmCdR0Orv1j2TjNCvhrbS06mpkA90MTcw9x7Zq6EzEEZWwZg2DDA3XHRPPBypAqE-wrGadDVm0pdE5MMeHe9C7n8/Capture13.PNG?psid=1

New Form View Rule

We always want the new form to be loaded when a new contract is submitted hence the condition is setup such that when the Current Status & Current WF Status = 'new', open the New Form.

https://zz3yxa.dm2302.livefilestore.com/y2pF3z5xMGk8guqn4ulAmP0HUnOYah2VZHrTRw3K_9NAQ-eTP7G-V3IPBjZHRoDXj1LSNLYDjyR1S7W0njqL88gWToAX58qS30S9VKtFkWv6W0/Capture14.PNG?psid=1

When the form is opened by the legal administrator, we want the legal administrator view form to be used hence the condition is setup such that when the Current Status = 'Request submitted' OR 'Attorney review completed', open the Legal Administrator form. 

https://zz3yxa.dm2303.livefilestore.com/y2paPG8jVeHFsucBLp8u9sKUYl-DNn1hz7uBEDnk3oLWQEA18YTAZhxdNhpcj-pKan0i8rg3sXSGobvmEStdXmZWos2jPWd7BoFUJVh8k2v7Qg/Capture15.PNG?psid=1

Requester Form View Rule

During the workflow the contract is sent back to the requester, at that point we want the requester to view the requester form hence the condition is setup such that when the Current Status = 'Pending additional information from requester' OR 'Negotiating terms', open the Requester view form. Below is a screenshot

https://zz3yxa.dm1.livefilestore.com/y2pluBM-SUQvtGx3TyYxY3UOLDL9r-IxNPaXltNeIcCXnSPBoOVCWbkoJViAISHAsWn5SClYteiTPVth_pmzpgGruk_no37rDqMeRySYYX-bXI/Capture16.PNG?psid=1

Attorney Form View Rule

When the form is opened by the attorney, we want the attorney view form to be used hence the condition is setup such that when the Current Status = 'Sent to attorney' OR 'Attorney reviewing in process', open the Attorney view form . 

Below is a screenshot 

https://zz3yxa.dm1.livefilestore.com/y2pLUnu5mqPYnUo4AE5QyuSne45Mwsbh7Q3eyA_m-4OpPQqLP71e9Ua5we24nuBONQePBXA_GmnrUp8FFDZuBuJluUtW2Qhgd4wtBBZsUE9Js0/Capture17.PNG?psid=1

Completed Form View Rule

Finally, when the Current Status = 'Contract executed' load the Completed view form.

https://zz3yxa.dm1.livefilestore.com/y2pWKpV5aZYEythbRqQ9K7Jsii2xsQ3iWC-9gWVQ2v7qd-Wqz54N-M4m4mf-JUDtLxx_yCrD36mj_DAvhnsP7L1xeTwZxlyMdKpddlMZwHi6I8/Capture18.PNG?psid=1

Form Videos

Below is a video I have created which shows you the rules setup for each Submit button and the Form load rules.

View

(Click Here to view the video in high resolution)

Below is video I have created to test the views of the form.

View

(Click Here to view the video in high resolution)

Building the Workflow

Below is a screenshot of the entire workflow which provides an overall view of all the conditions and actions which are sequenced to give you the loop effect. I have renamed the steps with titles that make sense. Current Status and Current WF Status are the two control columns. The Current WF Status controls the step of the workflow, the Current Status controls who is currently working on the contract. It is important to understand that the Current WF Status could be with someone, say, 'Daniel', but the Current Status is someone else.

https://zz3yxa.dm2302.livefilestore.com/y2pJ_ymLqaRVCP2sh5-COHlLRujPPbsowFHcJjDV00bvFoUDy5G-e81VSgEfgMVhu2EgvqZDtV_qkCNCOMnKMeVI_tKLn3zxhm4se4RZeqg44g/Capture19a.PNG?psid=1

https://zz3yxa.dm2303.livefilestore.com/y2pGlKpRZO4ftEXWtOS7cg63n47Qbzt61HaPDN2vZEiE4Nd6gyeAvI4A6iDXG1kOBxPtBb-aGlaldVCHtrFSksfCm1B2Qnwbwcz0aNeQbLQxqg/Capture19b.PNG?psid=1

https://zz3yxa.dm2303.livefilestore.com/y2pPD7DuKOipW3ocN7T2AwHwvbcc2N_hMdy-cvZCNsNeuhGzapsmzbW1vXbrVlv1eOPftrZPovj7iCDVV6mp2TbEVTSbgOl0x6vxXCWxQa6zk0/Capture19c.PNG?psid=1

https://zz3yxa.dm2304.livefilestore.com/y2pHjgHcwG3lw1aZpPbEw5qLW6hVpSpOKHm0q8PC87HZJnMDiUZrnY-c84zR8Onix_XOyk7Up2IBMz8oBDwjnk5C1DEA-sPYy54j7MWuveJ5yY/Capture19d.PNG?psid=1 https://zz3yxa.dm2301.livefilestore.com/y2pNuVJQNvkJ7GjmQ7gpQGU4j7TZv36T1YPMAqyTAp5gQfk-mzo2yVdAdTYVbFmzxP0LyH3bCCKtb-QPIR8Jb0MJfxGkMxQWffov74u7W-cMyc/Capture19e.PNG?psid=1

Workflow Videos

I have now provided three videos. The first video is a perfect world scenario where the requester submits the contract, the office administrator reviews the contract, forwards it to the attorney, the attorney reviews the contract,

the attorney sends it to the requester for negotiation, the requester approves it and returns it back to the attorney, the attorney forwards it to the legal administrator and the administrator executes it.

View

(Click Here to view the video in high resolution)

The second and third video is a realistic world scenario where the requester submits the contract, the office administrator returns it back to the requester for changes, the requester makes the changes and returns it back, 

The office administrator forwards to the attorney, the office administrator sends the contract back to the requester during the reviewing step, in the reviewing the contract step the attorney sends the contract back to the requester a few times, in the negotiating step the attorney sends the contract back to the requester a few times and then forwards it to the office administrator who then executes the contract

View

(Click Here to view the video in high resolution)

View

(Click Here to view the video in high resolution)

I am going to break the explanation of the above workflow into 8 separate parts.

Contract submitted

Returned to requester (Loop conditions)

Sent to attorney

Reviewing by attorney

Returned to requester by attorney (Loop conditions)

Negotiating terms (loop conditions)

Attorney review completed

Contract executed.

Contract Submitted

This set of conditions and actions forces the following actions to be run only once at the beginning. This is why the initial choice of the Current WF Status column was New.

https://zz3yxa.dm2301.livefilestore.com/y2pV2HDKhAMjG65TOqf5XCxRxrrf8or7MNdSTuAd7wCyAYNgjqOd2rISp-jf0_aI1ML3o3nnJjNb_1a_SZ0BVLJk4eRBUZdbXFEwhxqqe7VLyU/Capture20a.PNG?psid=1

Below is the a screenshot of the item that is updated. These updates are very important. Without these updates the workflow will either not run at all or the logic will not match our requirements. The InfoPath form updates the Current Status to 'Request submitted' and this action updates Current WF status to 'With Daniel'. At this point we have to wait for the administrator to decide if he/she is going to return the contract back to the requester or send it to the attorney for Reviewing.

https://zz3yxa.dm2303.livefilestore.com/y2pgXkL1NwSyIzsnUuGiilCqWyqt0uMawudsWSfH5nWEgZ0eb_TU1ASt2b7idB_WBnVJcigH-bZuUDMKApZ2Ophe9wq5O8MgKIt-2C-Frm22BE/Capture20b.PNG?psid=1

Below is a screenshot of the body of the email which the requester and the legal department's administrator will receive.

https://zz3yxa.dm2301.livefilestore.com/y2pOhiQDP1mk2_jLXBLBdB4yHNheGP9R9_7CzaZ0v7T_ZYy88pXR7yjIRzdIy52ce1DgJvYqje3Cy2d6h0dLcFwPw-nMAz0k20j_WK9T7Hrk3U/Capture20d.PNG?psid=1

https://zz3yxa.dm2302.livefilestore.com/y2pewYUgyUJWqWZynArXdKyFsmhU-Ic0x_IEqsvrrCpsN878lZICiNaRxpFhEwuXyYJY_fPQGSAY_jGVeRwAvVdWKqweXnT5pIRD_kb4J9ygWs/Capture20c.PNG?psid=1

Returned to requester (Loop conditions)

This step is where the loop condition is first applied. 

If the administrator has decided to return the contract back to the requester then the below two sets of conditions and actions take effect. As you have seen in the video, the administrator will select the 'Pending additional information from requester' and submit. Also, the default value of the Loopbackcontrol column is 0. Hence all the three conditions match and hence the below workflow runs. The workflow then has to wait until the Loopbackcontrol value is not equal to 0.

When the requester makes the changes and submits the form, the loopback control value is set to 1 and hence the contract is returned back to the administrator. This transaction process between the administrator

And the requester can occur as many times as needed.

Below is a screenshot of the two conditions and actions.

https://zz3yxa.dm2301.livefilestore.com/y2pg2JSLGiHxxvQgVltuzmVW7fQK4GUZEKDWdSnidT1VuzmQ7GLL9bQ_JpT5IctY8qou-17ZNXidi9oEQhvX6_ZyqtA51afZftwmIczgOAWg2A/Capture21a.PNG?psid=1

Below is a screenshot of the Update item when the requester has made the change and hits the submit button. I have highlighted that action yellow. As you can see, I have set the value of the loopbackControl back to 0 This way the loop process is ready for a re-use.

https://zz3yxa.dm2302.livefilestore.com/y2p28w8u_FlWE1a7paoiUAl3XnknUtrs6sziDAdaIx5squhBCrg4vT3NX3RKdkgN6ztTGFOAeZ5O18vVrUEFM1m4iMBNxwFRilJLpx-EqAiIbs/Capture21b.PNG?psid=1

Below is a screenshot of the email when the requester received the email, the email sent by the administrator.

https://zz3yxa.dm2301.livefilestore.com/y2pfUG2VzlU_P31QRxeS-S9eiyknB7aWaOnkPVe7xqfnaOriql7OXIZFoi62OpxprbOuH_BggNAu__nzw-_MpKJmYAuod8g3EiWFvNJPYoP6e0/Capture21c.PNG?psid=1

Below is a screenshot of the email body when the legal administrator has received the email after the requester has made the change.

https://zz3yxa.dm2303.livefilestore.com/y2pACj13siJ_R0lJfBRdWGghZlsgoGdlVSrhNIhXGgRezXrhH-VFmfyA9US1LTbvPdhNDGGBiyrmJnl16JGROablAK5q6ohvUzeVA1WZ_PqAho/Capture21d.PNG?psid=1

Sent to Attorney

Once the administrator has completed his/her task, an attorney is selected and the current status is changed to 'Sent to attorney'. Below is a screenshot of the workflow

https://zz3yxa.dm2301.livefilestore.com/y2p72VaTKs6Zdq-EueYZY3Exz_9m-GPHuL6bC0uJ4mWIGz-3F-4I45Di1ahypGFKtKAqPTiDtq-PbN_PT1ctciWUxoaGyvBgQdnt12nwpzCDTI/Capture22a.PNG?psid=1

Below is a screenshot of the update item action

https://zz3yxa.dm2303.livefilestore.com/y2pe10hvIDeBKeUDHl6InrRucjBosybQKd1zMfxRAXhpRlQ0rArAUlBEOpcmMxVe5PS7DJXmdoU7MBXCwE_OrftsEyKphUHAMzXNb-hY11-GHs/Capture22b.PNG?psid=1

Below is a screenshot of the email which is sent to the attorney

https://zz3yxa.dm1.livefilestore.com/y2p62oqdpJ-iPO8E1HInZXJEW8ZV-VQrOsI8HfwgyEZLO-b5qf9H6vZLtHgvF5ECaLPCE6kWCIfQWUBmSzdl4xPt4jeYayH5suZp6ddcyhZX_Q/Capture22c.PNG?psid=1

Attorney Reviewing

The attorney to whom the contract has been sent, has to change the status to Attorney reviewing. The primary reason for his change is to record the timing. No emails are sent out during this step. Below is a screenshot of the step

https://zz3yxa.dm2304.livefilestore.com/y2p9EXXSgd6mH0gGcjV1ouFR_pf1ORKtHGz0voiPm4h1c5wCeavU577nKZUdXGOtiVO27kJ87ZM45yRfq_GtS6q0tu03_lxKIzrm_BOUcnUU_U/Capture23.PNG?psid=1

Returned to Requester by Attorney

This step is very similar to the 'Returned to requester' by administrator. This step is where the loop condition is applied the second time. 

If the attorney has decided to return the contract back to the requester then the below two sets of conditions and actions take effect.

As you have seen in the video, the attorney will select the 'Pending additional information from requester' and submit. The Current WF status is 'With Attorney'

Also, the current value of the Loopbackcontrol column is 0. Hence all the three conditions match and hence the below workflow runs. The workflow then has to wait until the Loopbackcontrol value is not equal to 0.

When the requester makes the changes and submits the form, the loopback control value is set to 1 and hence the contract is returned back to the attorney. This transaction process between the requester and the requester can occur as many times as needed.

Below is a screenshot of the two conditions and actions.

https://zz3yxa.dm2303.livefilestore.com/y2pJ5lbjKDuvrJxL0lOj9EsLaIrqfU2MkBgkqrx4jwisGYeuZU5lC901KxCEEFUi9kkOOsbmc5XOIbTYXUHj5XNiDZyWJOj4d0s5tIVsBEF7Eg/Capture24a.PNG?psid=1

Below is a screenshot of the Update item when the requester has made the change and hit the submit button. I have highlighted that action yellow. As you can see, I have set the value of the loopbackControl back to 0. This way the loop process is ready for a re-use.

https://zz3yxa.dm1.livefilestore.com/y2p4v07d0xhgzheCFeh1G1DK5puHRuTrgzDWa79W3a5VWjNy_qKiWq9doRXfFErWmZTl4vOipYyyO63iU7HRA6aE4Cm5vxLtVp3NiPGdc0bs7k/Capture24b.PNG?psid=1

Below is a screenshot of the email when the requester received the email, the email sent by the attorney.

https://zz3yxa.dm2303.livefilestore.com/y2pvQL5SnIeWsF3VDP1jNl6_KOeqM_XLYw0Opz4ZhUjks-_JTOzArhl9abdQpkB72vTth8cvEM3-ux4k5EGwLEKFreHlKjKbNzNXTqFK68WW-A/Capture24c.PNG?psid=1

Below is a screenshot of the email which is sent to the attorney, the email is sent by the requester.

https://zz3yxa.dm2303.livefilestore.com/y2pgVK2sg1XFipqe0k4qnRExe2zdmYGYoMJeNkKNrwUhJ4PAMIDHMGxCROT5pcS4nPJX1i7AC5yekUR6f6o3ZKtHSEYFIV88NiLnA9NTk6dR3c/Capture24d.PNG?psid=1

Negotiating Terms

This step is very similar to the 'Returned to requester by attorney'. This step is where the loop condition is applied the third time. 

The contract is currently in the negotiation step. When the attorney has decided to return the contract back to the requester then the below two sets of conditions and actions take effect. As you have seen in the video, the attorney will select the 'Negotiating terms' and submit. The Current WF status is 'With Attorney'

Also, the current value of the Loopbackcontrol column is 0. Hence all the three conditions match and hence the below workflow runs. The workflow then has to wait until the Loopbackcontrol value is not equal to 0.

When the requester makes the changes and submits the form, the loopback control value is set to 1 and hence the contract is returned back to the attorney. This transaction process between the requester and the requester can occur as many times as needed.

Below is a screenshot of the two conditions and actions.

https://zz3yxa.dm2304.livefilestore.com/y2pukBGWHBQnU_BOIXbh0jY1vWsAvKJXQ5qiS-gux9dmgY2A917feQtCpsGgkpIePAU8ccxwowNX2UN77fW4XwN96QO2ClhCDxTTVC5KTazUro/Capture25a.PNG?psid=1

Below is a screenshot of the Update item when the requester has made the change and hit the submit button. I have highlighted that action yellow. As you can see, I have set the value of the loopbackControl back to 0 this way the loop process is ready for a re-use.

https://zz3yxa.dm1.livefilestore.com/y2pss6jK4xfJT4MPZWocm-1GinHQOcJPVGIz-pX0gnMS_CwVZ0ap8H4nQ737sTnYVf9_dVCI8Hf6uxQ5b9b8BXJqF-5HcDb7BGTyKpFxY_YL7s/Capture25b.PNG?psid=1

Below is a screenshot of the email when the requester received the email, the email sent by the attorney.

https://zz3yxa.dm1.livefilestore.com/y2pwPbg4a1RUuBwuqtN5PcON3po3KVE8PlfdgIRpGMAl0mncYIKlXVld4E8nKmcFItBiyuSIxP2Hm-FTH6zZwl4-EXg9vxMcKoo-3O1Wf2yYKw/Capture25c.PNG?psid=1

Below is a screenshot of the email which is sent to the attorney, the email is sent by the requester.

https://zz3yxa.dm1.livefilestore.com/y2p3_KVNTjwxDbz8KjSHWTIoW5WZfiH_GuHuWYWrz9N_M_uWcpEgYjUKoO7j7UtsQdJulBbleQ6IqbjtghOYv4DOm09MjVpuTBSHn18jUIfMNA/Capture25d.PNG?psid=1

Attorney Review Completed

This step is run after the attorney has completed the negotiating process with the requester and sending the contract to the legal administrator.

Below is a screenshot of the step

https://zz3yxa.dm1.livefilestore.com/y2p7fvXBxz8czN5K_4AL9W5xyMMDL6FmgCt5nW_-XOv98lWRvYnnomkmrpohODxvM9izJOhXN1wqakG_qNH4472l__6UR_H6IszakkI4DwOSvo/Capture26a.PNG?psid=1

Below is a screenshot of the update item action

https://zz3yxa.dm2303.livefilestore.com/y2poRh4uqYHLEwbiSPv6l6I2tL6NSdUFuTf8GcBPOzSLj6OTW30_HmoJjvGoPnd40kOKB-E-YnkYYWXpf4Nt6peNl3v-r46oGmGgAgz6Q4RL_A/Capture26b.PNG?psid=1

Below is a screenshot of the email sent to legal administrator by the attorney

https://zz3yxa.dm2303.livefilestore.com/y2pZfgeN9DYmtFu7QN8YZ2eLTBzbFtcE7nl0mMTv-C8BQYtC7J-7MY2Wg6nquERjBsHUHMldc_nWAl7-_x0Z8q0MVOPEQCGisVwVmkWbZcs5ro/Capture26c.PNG?psid=1

Contract Executed

This is the step where the legal administrator ends the workflow by executing the contract. In this step, the requester is sent an email and the contract end date is record.

Below is a screenshot of the workflow.

https://zz3yxa.dm2302.livefilestore.com/y2pu0zWOzWxjTILOWlJQozqxMBYZsnf4-uOj8bauwlHLXhqpp6sLY-0UaxT5jj3pb6o9_2GLRZde3l0dOBn7bwqNx32AX6u08f8LgVRsDoea-U/Capture27a.PNG?psid=1

Below is a screenshot of the Update item action

https://zz3yxa.dm2301.livefilestore.com/y2puDeZfrj5NpZ1Tkb1nZjmDkvlEpwGWPmC4HlpZPG_26uQxPPxgeH3MJdezaD1kGLklogVOwtincHWPqCGaxSP71k330UanU5WTQPDAK17l-s/Capture27b.PNG?psid=1

Below is a screenshot of the email sent to the requester

https://zz3yxa.dm2304.livefilestore.com/y2p_toFBRbH1KEGqWFxjCAkbH71fEmGuQDPNzF5sJrNzMzIjrCE-VaspaGoxVE2YZ1cLAI7RrUX1amcx3Lr5G5em28LStrwaX3xQkzse2YgCe8/Capture27c.PNG?psid=1

Conclusion

We have kept this example simple to explain the conditions and actions using the Current WF status and Current status control columns. In this example we have kept the versioning settings to 16, however, if you anticipate the three loop process used several times then you might want to consider increasing that number.

This workflow can also be used in SharePoint 2013 if the SharePoint 2010 workflow option is selected. 

See Also