ProcessStep you decide whether people
act one at a time, all at once, or a mix of both.
This page shows two worked examples, each built as an
instant package. The rules the steps must follow are set out in
The package model → The process. In short:
- Steps are numbered from
0. - Approver and FormFiller steps come before the first Signer step. Receivers share a single last step.
- Each step holds one actor type, except that Approvers and FormFillers may share a step.
400, returning Actor.InvalidOrder or
Actor.ReceiversMustComeLast.
In an instant package,
ProcessStep only sets the order. The values are sorted and renumbered from 0,
so 1, 5, 9 become steps 0, 1, 2. Either every non-Receiver actor sets ProcessStep or
none does. A Receiver’s ProcessStep is ignored: receivers always go in the last step.Sequential ordering
In a sequential flow, each actor has a step of their own, so exactly one person acts at a time. The next person is only invited once the previous one has finished. In this example, a form filler completes the document first, then an approver reviews it, then two people sign in a fixed order: Signer B first and Signer A last.
The FormFiller and the Approver could share step
0, but here the approver must see the completed
form, so the Approver gets step 1. The Approver isn’t invited until the FormFiller has filled in
every required field.
The order of the stakeholders in the request body doesn’t matter. Only ProcessStep determines
who goes first.
Request body: Stakeholders
Request body: Stakeholders
#Sig1) that is already in the document, and Signer B’s field uses explicit coordinates. Both
work in any flow. See Field positioning.
Mixed ordering
A mixed flow puts several actors in some steps and one actor in others. Actors who share a step can act in any order, and the next step starts only once all of them have finished. In this example, one approver and one form filler start at the same time, a second approver then reviews their work, and a second form filler completes the document. After that, two signers sign in parallel, and a third signs last.
Step
0 mixes an Approver and a FormFiller, which is the one allowed combination. Step 3 contains
two actors of the same type, which is always allowed.
Request body: Stakeholders
Request body: Stakeholders
Changing the order after creation
ProcessStep sets the order when you create actors. While the package is still a draft, you can
also read and restructure the process directly: add a step, add an actor to an existing step, or
replace the whole process at once. See Get process and
Update process.
Next steps
- Place the fields each actor works with in Field positioning
- Build the full request in Instant package
- Track each actor’s
WaitingandAvailablestatuses as described in The package model → Actor status