How-to: invoice approval workflow

Prev Next
This content is currently unavailable in Ja - 日本語. You are viewing the default (English) version.

Incoming invoices are quickly and accurately processed with a document-based approval workflow.

Here is a basic example how an invoice approval workflow could work:

  • Workflow is triggered: A new invoice is stored in a DocuWare file cabinet. A new workflow for approval or rejection is executed.

  • The invoice is routed depending on the amount: An amount above a threshold, for example 10,000, leads to the head of department. An amount equal or below a threshold leads to the team level.

  • Invoice is checked and approved or rejected: The head of department or team leads approve or reject the invoice. Depending on the decision the invoices trigger another workflow, for example, all approved invoices move on to a payment workflow.

Configuration overview

You see here all action needed for a basic invoice approval workflow. Learn how to configure the workflow with the DocuWare Web based Workflow Designer.

Create a new workflow


  1. Go to DocuWare Configuration > Collaboration.

  2. Click Workflow Designer to open the Workflow Designer dashboard.

  3. On the dashboard, click New Workflow.

  4. Select the file cabinet in which the incoming invoices are stored.  

  5. Add a name for the workflow configuration. This name is visibile to the users in the Web Client.  

  6. Confirm with Create to bring up the Workflow Designer canvas.

Set start activity


You are now configuring the start activity

In this step you will define the red marked section - the start activity.

 

The Start activity is provided automatically when you create a new workflow. You do not need to add it manually.

The controller permission and the trigger are both required:

  1. Permissions: A workflow requires a DocuWare user which acts as workflow controller. The workflow controller may handle workflow errors or stop and restart the workflow, among others.

    Select a workflow controller and click Authorize.

  2. Trigger: There are two trigger options, Document event and Schedule. Check the tabs below for more information:

For a Document event trigger, you specify the index values that the triggering document must meet in order for the workflow to start.

For example, a workflow is executed when a new document is stored or index entries of an archived document is changed or both.  

A Schedule trigger operates basically the same way as a document event: you specify the index data conditions that must be met by the triggering document.

In addition to that, a scheduled workflow configuration is only executed at defined times:

  • daily or on specified days

  • weekly or in specified weeks

  • monthly or in specified months

  1. Trigger configuration: For this workflow configuraiton, select the trigger Document event > Type > New document as shown below in the screenshot:  
     

  2. Trigger conditions: To define the type of document to be procecessed in the workflow click Set trigger requirements.

    Enter two conditions:

    1. The first condition ensures that all new stored documents are taken into account for the workflow:

      • System Index Field “Document ID”

      • Operator IS NOT EMPTY

    2. The second condition ensures that only those new documents will be processed, which are tagged as an invoice:

      • Index field “Document type”

      • Operator is “Equal”

      • Fixed value is “Invoice”

    Set these two trigger conditions for new invoices

  3. Click Done.

Route invoice with a condition


You are now configuring the condition action

In this step you will define the red marked section - the condition, which routes the invoices to the appropriate users.  

 

To route the invoices to the appropriate user or role in the company, use an action of the type Condition.

Invoices with an amount higher than 10.000 are routed automatically to the head of department, all other invoices to the team lead.

  1. Condition: Add an activity of the type Condition.

  2. True output: Define the rule for the “True” output of the condition:

    • Index Field: “Amount”

    • Operator “Greater Than”

    • Fixed Value “10000”

  3. False output: Set the rule for the “False” output of the condition:

    • Index Field: “Amount”

    • Operator “Less Than Or Equal”

    • Fixed Value “10000”

  4. Name outputs: Go to Condition > Outputs to change the default “True” and “False” outputs to more meaningful terms, as for example >10.000. Renaming is not required but is makes the configuration easier to track. You may also restyle the colors of the outputs.


  5. Proceed with Next > No error handling > Done.

Add task for user group 1


You are now configuring the task for the first user group

In this step you will define the red marked section. It is the task that the head of department level has to complete.
 

The invoice approval workflow requires two tasks depending on the amount of the invoice. The incoming invoices are routed to different users or user groups, which both can approve and reject.

To mirror this in the workflow you need two tasks.

  • One task is for the decision maker who approve or reject the high sum invoices >10.000.

  • The second task is for the decision maker who approve or reject the low sum invoices <10.000.

Create the task for the high sum inovices first.

  1. Add a Task. In the next steps you will walk through the sections Method - Decision - Data - Behavior.  

  2. Choose Method > Dialog > Next.

  3. In the next steps you will create two decisions, one for approval and one for reject.
    Click Add first decision.

  4. Type “Approve” as Decision title and select a color optionally. The title is shown in the Web Client. The color is only visibile in the Workflow Designer as box color and connector line color:  


  5. Switch to the tab Decision > Dialog to specify the fields for the task in the Web Client.  

  6. Add an integer field to show the invoice amount.

    Integer field settings:

    1. Field type: Integer

    2. Field label: Amount

    3. Predefined type: Document Index

    4. Predefined source: Amount


  7. Optionally add a text field for comments and remarks:

    Text field settings:

    1. Field type > Text

    2. Field label > Comment

    3. Leave Field is required unchecked to keep the field optional.


  8. Go to the tab Data Assignment. Here, you may define index data changes for the invoice which will be applied after the decision is made. Change the status field to “Approved.”
    The changed index data can trigger a another workflow - for example, to pay the invoice.

  9. Click Add first assignment

    • Destination type > Document index

    • Destination entry > Status - These are the index fields of the file cabinet

    • Source type > Fixed value

    • Source entry: Approved


    You have finished the first decision for approval now.
    Click Done to return the the Decision tab.

  10. Create the second decision for the rejection. Click Add next decision.

  11. Proceed similarly to the first decision. Type “Reject” as Decision title and select optionally a color.  

  12. Create an integer field for the amount of the invoice:

    Integer field settings:

    • Field type: Integer

    • Field label: Amount

    • Predefined type: Document Index

    • Predefined source: Amount

  13. Add a text field so that people enter a reason for the rejection. Make the text field required this time.
    Text field settings:

    • Field label: Reason

    • Activate Field is required

  14. Data Assignment: Go to the tab Data Assignment. Here, you define index data changes for the invoice after the decision is made. Change the status field to “rejected.”
    As with approval, a separate workflow can also be defined for rejection—depending on the needs of your company.

  15. Click Add first assignment

  • Destination type > Document index

  • Destination entry > Status

  • Source type > Fixed value

  • Source entry: Rejected

  • Done

  1. Behavior: In the tab Behavior you may configure notifications, which are sent to the users to notify or remind them to accomplish a task. In this example, there is no notification used, as it is a basic workflow.

  2. Decision maker: A decision maker is the user who accomplishes the task in the Web Client.

    Click on Decision makers in the task dialog and Choose users or roles.

    Decision-making options for task assignments, highlighting users and roles selection.

Add task for user group 2

You are here

In this step you will define the red marked section. It is the task for the second user group.

 

The invoice approval workflow requires two tasks depending on the amount of the invoice. The incoming invoices are routed to different user groups, which both can approve and reject.

To mirror this in the workflow you need two tasks.

  • One task is for the decision maker who approve or reject the high sum invoices >10.000.

  • The second task is for the decision maker who approve or reject the low sume invoices <10.000.

Now you create the second task for the low sum inovices. This takes fewer steps than the first task.

  1. Duplicate the task you have created in the previous step:


  2. Then, change the decision maker from head of department to the team lead role.

    Optionally you can switch the color and the name of the task.  

Connect the workflow actions


Finally, connect the workflow actions.

Grab the output ports and drag the connectors to the input ports.

See How to connect workflow activities in detail.