Executing a Workflow
A step-by-step guide to executing a verification workflow and interpreting the results.
Overview
Executing a workflow is the core action in the FrankieOne platform. It takes an existing individual
entity and runs them through a pre-configured series of checks (e.g., KYC, AML, IDV) to return a final verification status.
This guide will walk you through the end-to-end process of executing a workflow and understanding its result.
The Workflow Execution Lifecycle
The process follows a simple, synchronous pattern. For most web-based onboarding, the result is returned in a few seconds.
1. You Initiate the Workflow
You send a POST
request to the /execute
endpoint for a specific entity and workflow. This tells FrankieOne to begin the verification process.
Implementation Guide
Prerequisites
Before executing a workflow, ensure you have:
- An
entityId
for the individual you want to verify. - The
serviceName
of the Service Profile they are being assessed against (e.g.,KYC
). - The
workflowName
of the specific workflow you want to run (e.g.,Standard-KYC-AU
).
Step 1: Execute the Workflow
To trigger the workflow, make a POST
request to the execute
endpoint, including the entityId
, serviceName
, and workflowName
in the path.
Step 2: Understand the Response
The response body contains the workflowResult object. This is a rich object with everything you need to know about the verification outcome.
To make an automated decision, you should parse the key fields within the workflowResult.
status
: This is the most important field. The most common values arePASS
,FAIL
, orREVIEW
. This field incorporates any manual overrides and represents the final state.workflowExecutionState
: This must beCOMPLETED
. If it showsERROR
orTIMEOUT
, the workflow did not finish, and thestatus
should not be trusted.result
: This represents the original, automated outcome of the workflow before any manual changes. It’s useful for auditing.
Advanced: Overriding a Result
In some cases, a compliance officer may need to manually override a workflow’s automated result. This is achieved by making a PATCH request to the specific workflow execution.
Provide the new status and an optional comment to explain the reason for the change. This action is fully audited.