14. Complete the Rework Outcome Steps

In this step, you add the second user task for the review workflow. This task is for reworking the document and the recipient is the originator (you!). You can either "rework" the document, then resubmit it or cancel the review request altogether. This creates a looping effect between the Review Document task step and the Rework Document task step. The loop can repeat over and over, until either the reviewers or you select a different outcome.

  1. Begin by updating the review status property. Since you have already added an Update Document Properties step, you can reuse that step to save time. Copy and paste the Set Status Pending Review step. Align it with the Rework Required outcome, then connect the outcome to the step. Edit the step and change the Review Status value to Rework Required, then change the step name to Set Status Rework Required.
    1. Reusing steps saves time and maintains consistency. Locate the Set Status Pending Review step and select it. Click Home > Copy to copy the step. Click Home > Paste to duplicate the step on the canvas. Drag the duplicated step so that it aligns to the right of the Rework Required outcome (line). Connect the outcome to the step.
      Adding an Update Document Properties Step
      Connect Outcome to Step
    2. Select the new Set Status Pending Review step, then expand the Configuration Panel. Under the PROPERTIES heading, change the Review Status value to
      Rework Required.
      The required Reviewers and Approvers property values are already set, so there are no additional edits to this screen.
      Update Document Properties
    3. Click the Properties tab. Name the step
      Set Status Rework Required
      then collapse the Configuration Panel.
      Changing a Step Name Label
  2. Now, you are ready to add the rework task step.
    Add a Task step below the Set Status Rework Required step. Connect the two steps. Configure the task step as follows:
    • Instructions: Please rework and resubmit the document for review, or cancel the review workflow.
    • Actions: Resubmit, Cancel
    • Form: SmartForm > Edit Document
      • References: Keep default settings
      • Open Task: Help me configure it
      • Workflow View: Create a new State: Workflow Task
      • Open Task Rule Action: Keep default settings
      • After submit: Keep default settings
      • Summary: Save and Finish
    • Recipients: Keep the default, Originator
    • Email Alert: Personalize the notification email to include Context Browser references. Attach the Document (File) reference to the email.
      Adding Context Browser References
      Adding Context Browser References
      Adding Context Browser References
    • Properties: Rename the step: Rework Document
    1. Next, you will add and configure the Rework Document task step. The originator (you!) can rework and resubmit the review request or cancel the request altogether.
      From the Toolbox > Basic node, drag a Task step below the Set Status Rework Required step. Connect the two steps.
      Adding a Task Step
    2. Select the Task step, then expand the Configuration Panel. Click the Task tab to make it active, if it is not already. For the INSTRUCTIONS, enter
      Please rework and resubmit the document for review, or cancel the review workflow.
      Task Step Instructions
    3. Click the Add (+) icon under the ACTIONS heading to add the task actions:
      Resubmit
      Cancel
    4. Click the Form tab. You will select the edit form for the task steps, as you want the originator to make changes if necessary. For the FORM TYPE, select SmartForm. For the FORM, browse to and select the Edit Document form. Your menu structure may be different than the image below, depending on subsites and other naming conventions. Click OK.
      Selecting a Task SmartForm
    5. The Open Task on a Form wizard launches.

    6. On the REFERENCES screen, notice that K2 has found the Documents to Review and Approve SmartObject reference. Click NEXT.
      Open Task on a Form - References
    7. On the OPEN TASK screen, select Help me configure it, then click NEXT.
      Open Task on a Form - Open Task
    8. On the WORKFLOW VIEW screen, confirm the option to Create a new State has the Workflow Task state. Click NEXT.
      Open Task on a Form - Workflow View
    9. There are no changes to the OPEN TASK RULE ACTION screen, click NEXT.
    10. There are no changes to the AFTER SUBMIT ACTION screen, click NEXT.
    11. On the Summary screen, review the settings, then click SAVE AND FINISH. When you see the green success check, click OK to close the wizard.
      Open Task on a Form - Summary
    12. Click the Recipients tab. Keep the default RECIPIENTS value, as you want to send the rework task back to the workflow Originator.
      Type/Construction my own Recipient Value
    13. Next, you will configure the task notification email using properties once again from the Context Browser.

    14. Click the Email Alert tab. CHECK the Customize Notification option. For the SUBJECT, enter
      Rework required for document:
      then drag the Title from the Documents to Review and Approve reference and append it at the end of the line.
      Adding Context Browser Properties to an Email
    15. Next, you will attach your document to the email.

    16. Under the ATTACHMENT heading, click Add Attachment. Drag the Document (File) reference into the ATTACHMENT box.
      Add the Document Attachment
    17. You want the user to open the edit form to make their decision on resubmitting the document for review. You will change the message body of the email to let them know they must open the form.

    18. For the message BODY, enter
      Your document requires rework. Use the link below to resubmit your document after you have made the necessary changes. You may also use this link to cancel the review request.
      then delete everything after the Worklist Item Link field.
      Earlier, you learned about Standard Actions and Configured Actions. These actions allow the user to submit their decision from the email directly, or redirect or delegate the decision to another user. Because you want the user to open the worklist item, you remove the standard and configured options.
      Deleting Email Stardard Actions
    19. Click the Properties tab. The last configuration is to rename the step. Change the name to
      Rework Document
      then collapse the Configuration Panel.
      Setting a Step Name
  3. Add a Decision step and connect it to the Rework Document step.
    1. From the Toolbox > Logic node, drag a Decision step below the Rework Document step. Connect the two steps.
      Adding a Decision Step
  4. Now, you will update the review status once again. Copy, then paste the Set Status Rework Required step. Align it and connect it to the Resubmit outcome. Edit the step and change the Review Status property to Rework Resubmitted. Rename the step Set Status Rework Resubmitted.
    1. Next, you will update the status to indicate the reworked document has been resubmitted for review.
      Copy, then paste the Set Status Rework Required step onto the design canvas. Align it left of the Resubmit outcome. Connect the outcome to the step.
      Adding an Update Document Properties Step
    2. Select the Set Status Rework Required step, then expand the Configuration Panel. Change the Review Status to
      Rework Resubmitted.
      Update Document Properties
    3. Click the Properties tab. Name the step
      Set Status Rework Resubmitted
      then collapse the Configuration Panel.
      Changing a Step Name Label
  5. Connect the Set Status Rework Resubmitted outcome back to the Review Document step. This creates the loop between the Review Document task step and the Rework Document task step.
    Looping Outcomes
    1. Next, you will route the Set Status Rework Resubmitted outcome back to the Review Document step. This creates a looping effect where the document can loop between review and rework, until a different outcome comes into play.
      Hover over the left-side border of the Set Status Rework Submitted step until you see the handle appear. Drag the handle up and connect it to the Review Document step.
      Connecting Steps
    2. Your workflow should look like the image below.

  6. Finally, for the Cancel outcome, you will just update the review status property. Copy, then paste the Set Status Rework Resubmitted step and connect the new step to the Cancel outcome. Edit the step and change the Review Status value to Review Canceled. Rename the step Set Status Review Canceled.
    1. The final configuration for the rework task is to update the review status for the cancel outcome. Copy, then paste the Set Status Rework Resubmitted step. Align it to the right of the Cancel outcome, then connect the outcome to the step.
      Adding an Update Document Properties Step
    2. Select the new Set Status Rework Resubmitted step, then expand the Configuration Panel. Change the Review Status value to
      Review Canceled.
      Update Document Properties
    3. Click the Properties tab. Name the step
      Set Status Review Canceled
      then collapse the Configuration Panel.
      Changing a Step Name Label
    4. Your workflow should look like the image below at this point.
      Document Review Workflow Partial Two

Review

In this step, you completed the rework path of the workflow. You updated the review status several times to let your users know where the process stands. You used the copy and paste tools to reuse steps which saves time and maintains consistency. You added and configured the Rework Document task step, then looped it back to the Review Document step. In the next step, you will complete the accepted path of the workflow.

Next Step: 15. Complete the Accepted Outcome Steps