When a REST action is executed, the rules are applied to the document. As the name indicates, these actions are triggered by REST calls to BizzStream.
In this example is modeled how a document can be approved by a REST Action or an User Action.
Note that REST actions are not used to retrieve a document from BizzStream via REST. For this, a standard REST call that cannot be modeled is available.
Executing a REST Action
In the REST section, you can find more information about triggering a REST action by making a call to it.
Documents on which a REST action is executed
For a REST action to be execute on a document, the following criteria need to be met: * There is an incoming connection from Any Status to the REST action in the workflow, or the status of the document corresponds to the statuses that are linked to the REST action via an incoming connection. * The user who makes the REST call is member of an access group that has permissions to execute the REST action.
Adding a REST action to a workflow
Administrators can add a REST action to a workflow in a document definition by completing the following steps:
- Open a Document Definition .
- Go to the Workflow section.
- Drag a REST Action to the workflow.
- Connect the rest action via an incoming connection to one or more statuses. Alternatively, you can also connect it to Any Status.
- Double click on the REST action to open it.
- In the field REST Call, select the HTTP methods that are used to trigger the REST action. The PUT, POST, and DELETE methods are supported.
- Add one or more rules to the REST action by clicking on the Insert button.
- Close the REST Action dialog.
- Click on Save to save the document definition.