I want to distinguish between two different reviewer types (defined as workflow parameters) but involve both types in a single approval.
Requirements:
What I'm trying is:
{workflowparameter:Required Reviewers|description=At least 1 Team reviewer must be assigned to review the page|type=list|options=GROUP_NAME|edit=true}
{workflowparameter}
{workflowparameter:Optional Reviewers|description=Other reviewers can optionally be assigned to review the page|type=user|edit=true}
{workflowparameter}
And the review/approval:
{state:Draft|submit=Review|taskable=true|colour=#4A6785|requiredparams=Author}
{state}
{state:Review|approved=Approved|rejected=Draft|taskable=true|requiredparams=Author,Required Reviewers}
{approval:Technical Review|group=&@Required Reviewers@|user=@Optional Reviewers@}
There are a couple problems:
Hi Marya,
Regarding the requirement to get at least one approver from the group yous should use selectedapprovers
rather than "group". Without the "&". This is enough to require the user to select at least one approver from the group.
For the optional approvers, I would create a parallel approval, still using selectedapprovers=@Optional Reviewers@ and a trigger that will move the document to the next state if the required approvers approval is complete and there is nobody assigned to the optional approval.
Something like this:
{state:Review|approved=Approved|rejected=Draft|taskable=true}
{approval:Approval|selectedapprovers=@Required Reviewers@}
{approval:Approval OPTIONAL|selectedapprovers=@Optional Reviewers@}
{state}
{state:Approved|final=true|updated=Review|hideselection=true}
{state}
{trigger:pageapproved|approval=Approval|@Approval OPTIONAL>approvalassignees@=@Empty@}
{set-state:Approved}
{trigger}
I haven't tested it with parameters but it should work.
Matteo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.