Approve or Deny Template

The Approve or Deny template routes an entry to a manager’s folder for approval. It defines different courses of action based on if the manager processes the entry by a specific deadline. It also provides different courses of action based on if the entry is approved or denied.

Learn more about Workflow templates.

How it works

  1. A Deadline activity runs its primary branch first. A Move Entry activity routes the entry to the manager’s folder and waits for the field named, “Workflow Templates: Approval” to be set to “Approved” or “Denied.”
  2. If the “Workflow Templates: Approval” field is not set by the time specified in the deadline branch, the primary branch is canceled and the deadline branch runs. If the deadline branch runs, the Move Entry activity will move the entry to the Urgent folder and wait for the “Workflow Templates: Approval” field to be set to “Approved” or “Denied.”
  3. After the Deadline activity, a Conditional Decision activity runs the first branch that has satisfied conditions– evaluating from left to right.
    1. The first branch will run if the “Workflow Templates: Approval” field is set to “Approved.” In this branch, a Move Entry activity moves the entry to the Workflow Templates - Test Entries\Research and Development\Archive\Approved Plans folder.
    2. The second branch will run if the “Workflow Templates: Approval” fields is set to "Denied." In this branch, a Move Entry activity sends a shortcut to the Employee folder of the person who submitted the entry for approval and another Move Entry activity moves the entry to the Workflow Templates - Test Entries\Research and Development\Archive\Denied Plans folder.
    3. The last branch is an exception branch that does not have any conditions on it. If the conditions are not met on the first two branches, this branch will run and the Email activity will send an email to an administrator alerting the administrator that the activity did not run as expected.
    4. Tip: It is a best practice to include an exception branch (a right-most branch with no conditions) when configuring a Conditional Decision activity. If the activity does not have an exception branch, and none of the branch conditions are met, the activity is skipped without warning.

To run this workflow template in the provided test environment

  1. Ensure the WT- Approve or Deny starting event is enabled.

    1. Navigate to the Condition page in Starting Events.
    2. Select the starting event, and click Enable in the top right.
  2. Configure the Email activity in the Workflow Designer.
    1. Type one or more email addresses in the To field.
    2. Edit the email message as desired.
  3. Republish the workflow.
  4. In your Laserfiche repository, create an entry in the Workflow Templates - Test Entries\Research and Development\Proposed Plans folder. Ensure the Workflow Templates: Approval field is set to Needs Review.
  5. Check the \Workflow Templates - Test Entries\Employee Folders\Department Manager folder for the entry, and set the “Workflow Templates: Approval” field. (If you waited longer than two minutes before this step, the entry will be in the \Workflow Templates - Test Entries\Research and Development\URGENT folder.)
    1. If you approve the entry, the workflow will move the entry the Workflow Templates - Test Entries\Research and Development\Archive\Approved Plans folder.
    2. If you deny the entry, it will move to the Workflow Templates - Test Entries\Reserach and Development\Archive\Denied Plans folder. Additionally, a shortcut to the entry will be created in an Employee Folder named after the user you are signed as.

Alternatively, you can test the workflow (bypassing the starting event) with the Run Workflow button in the Workflow Designer. You can test this workflow on Plan_G or Plan_H in the Workflow Templates - Test Entries\Research and Development\Proposed Plans folder.

Ideas to expand this workflow

Give the deadline branch a reasonable time frame. By default, the branch is set to two minutes since short deadlines are ideal for testing the workflow.

Remember to rename and republish the workflow once you made all desired changes.