Setting up an Advanced Workflow
  • 25 Sep 2023
  • 4 Minutes to read
  • PDF

Setting up an Advanced Workflow

  • PDF

Article summary

In this section, we are going to look at converting the simple workflow from the section above into something a bit more advanced, with some activities and data capture. This will look at assigning the workflow at the appropriate times, prompting for extra information, and locking and unlocking the file to prevent edits when it is in a review.

1.1. Prerequisites

This assumes that your job has the following roles:

  1. CAD Operator
  2. Reviewer

This also assumes that there's a File Attribute for each CAD File called "Revision:, which is a list attribute that contains values A through to Z.

1.2. Begin Work

The first thing we will do is modify the workflow so that when the workflow is set to “Pending Design” it will be automatically assigned to the CAD Operator. Note that Pending Design is the first state you can select, so as soon as the file is added, the workflow will begin. Select the transition between Start and Pending Design. And follow these steps.

1.3. Assign the Workflow

  1. Click the + to add a new Activity
  2. From the list, select General - Assign this Workflow
  3. This will add the activity and prompt you for cosmetic only
  4. Set the name to "Assign  to CAD Operator" - this is cosmetic only
  5. Select Assign To and pick: "Role", because we want to assign it to a specific role
  6. Select "Specific Value", because we know the name of the role is CAD Operator
  7. Select "CAD Operator" from the list
  8. Leave "Send email" to Yes

The result of this transition is that the CAD Operator for the job will be assigned to the workflow, and will receive an email to tell them that has taken place. Here is a preview of the configuration.

1.4. Begin the Review

Next, we want to allow the CAD Operator to automatically inform the Reviewer that they have something to look at. We are going to do the same thing that we did in the “Begin work” stage, but will assign it to the Reviewer instead. We are also going to lock the file to prevent anyone from editing while it is in the review stage. Click on the transition between In Progress and Pending Review.

1.4.1. Assign the Workflow

  1. Add a new General - Assign this Workflow to the list
  2. This will add the activity and prompt you for configuration
  3. Set the name to "Assign to the CAD Operator" - this is cosmetic only
  4. Select Assign To and pick: "Role", because we want to assign it to a specific role
  5. Select "Specific Value", because we know the name of the role is CAD Operator
  6. Select "Reviewer" from the list

1.4.2. Lock the File

  1. Add an additional Activity and select Files - Lock a File
  2. Select "File to lock" on the configuration panel. We get several options here - but because this is a file workflow, we can use our current entity / file right away. Select "Use the current file"
  3. Select Lock For - and again, we want to lock this for the Reviewer role. This means only Reviewers can check out and edit the file.

1.5. Accept the Work

The next part of the workflow to look at is the moving from Pending Review to Approved. All we need to do here is unlock the file

  1. Select the transition between Pending Review and Approved
  2. Add a new Activity - Files - Unlock a File
  3. Select File to Unlock and again pick "Use the current file"

1.5.1. Reject the Work

When the work is rejected, because perhaps it doesn't meet company standards, it will go back to In Progress. As part of this, we will want to:

  1. Unlock the file
  2. Assign it back to the CAD Operator
  3. Increment the revision

But we also want to tell the CAD Operator why this didn't pass the review phrase.

1.6. Setting up the Activities

Select the transition between Pending Review and In Progress

1.6.1. Unlock the File

  1. Add a new Activity - File - Unlock a File
  2. Select File to Unlock and again pick "Use the current file"

1.6.2. Assign the Workflow

  1. Add a new General - Assign this Workflow activity
  2. Set the name to "Assign to the CAD Operator" - This is cosmetic only
  3. Select Assign To and pick: "Role", because we want to assign it to a specific Role

  4. Select "Specific Value", because we know the name of the role is CAD Operator

  5. Select "Reviewer" from the list

1.6.3. Increment the Revision

  1. Add a new Activity: Attributes - Increment Attribute
  2. Select "Attribute Name" and simply type in "Revision" - this assumes you have set up

1.7. Setting up the Data Capture

As we discussed earlier, we are now going to make the workflow prompt the user to explain to the original CAD Operator why this failed the review. In this case, we are going to ask for an association to a CAD Markup File.

  1. Select the Data Capture tab and click +

  2. Select Association
  3. Set the Association type to File and enter a description - "The review markup pdf"

1.8. Sending a Custom Email

It might make more sense to send a tailored or custom email to the CAD Operator, rather than the standard ‘a workflow has been assigned to you’ email. To set this up, follow these steps:

  1. Edit your 'Assign this Workflow' activity and set 'Send Email' to 'No'
  2. Add a new General - Send an Email activity
  3. Click "Send To" and add a new contact
    1. Select the CAD Operator role, as per the other contact steps
  4. Now we need to send a template, which you may not have setup. Click "Email Template Name"
  5. On the bottom left, Click + to add a new Custom Template
  6. Consider writing an email like the one below:

    Note the use of variables for {To_Name} and {File}
    You can also create a link that references the File, using the Expression Builder.
  7. When you are ready, click Set and set a name and a subject for your template, such as "Review Rejected" and a subject of "{File} has been rejected in the Review process".
  8. When you are ready, select your new template


Was this article helpful?

What's Next