Macro code in ad-hoc workflows: approvals

Conor Cassidy October 2, 2014

I have designed a workflow that requires approvals in 2 states: 'Review and Recommend' and 'Sign Off'

I would like to enhance my code such that when the state transitions from 'Review and Recommend' to 'Sign Off', approvals are automatically assigned to two different users (Jack and Jill) in the 'Sign Off' state. I see the concept mentioned here, however I am unsure how to write the code to do it. Here is my current code. Any help is appreciated. Thanks in advance.

 

{workflow:adhoc=true}

    {state:In Progress}

    {state}

    {state:Review and Recommend|approved=Sign off Approval|rejected=In Progress|taskable=true}

        {approval:Review and Recommend|assignable=true}

    {state}

    {state:Sign Off|approved=Approved|rejected=In Progress|completed=Approved|taskable=true}

        {approval:Review|assignable=true}

    {state}

    {state:Approved|taskable=true}

    {state}

{workflow}

 

 

2 answers

1 accepted

2 votes
Answer accepted
Miguel Reimer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2014

Hi Conor,

Here's what you want to change your "Review" approval to:

{approval:Review|user=&USERNAME1, USERNAME2}

Where USERNAME1 and USERNAME2 are the usernames for the users you want automatically assigned.

Thanks,
Miguel

0 votes
Conor Cassidy October 2, 2014

Thank you Miguel!

Suggest an answer

Log in or Sign up to answer