Overview
Executing a workflow is the core action in the FrankieOne platform. It takes anentityId and runs it through a pre-configured series of steps (e.g., organization data collection, ownership insights, etc.) to return a result. This is the central mechanism for fetching organization details, assessing risk and making onboarding decisions.
This guide covers the primary methods for executing a workflow and provides a high-level overview of how to handle the response.
Workflow Execution Patterns
There are two primary patterns for executing a workflow, depending on whether the organization already exists in your system.1. Execute a workflow using organizationToken or organization registration details
If you have searched for a business and retrieved itsorganizationToken, you can execute a workflow using that token. Alternatively, if you already know the business’s registration number and type, you can execute a workflow directly with those details. This approach removes the need for a separate “create organization” step and, if an organization entity with the same registration number and type already exists in our system, we run the workflow against the existing entity—preventing the creation of duplicate entities.
Use Cases:
- Onboarding a new business for the first time.
2. Execute for an Existing Entity
If you have already created anorganization and have their entityId, or have run a workflow and have the entityId of the organization, you can execute a workflow against them at any time.
Use Cases:
- Re-running a workflow to re-assess risks.
- Running a workflow for an existing entity post onboarding.
- Performing periodic or event-driven reviews.
1. Initiate the Workflow
You send a
POST request to the /execute endpoint for a specific entity and workflow. This tells FrankieOne to initiate the workflow.
The API response will have a status of 202 Accepted and contain the workflowExecutionId which can then be used to get the results of the workflow.3. Re-evaluate an Existing Entity
If an entity has already been through a workflow and you need to update its compliance status, for example, after classifying AML hits or resolving duplicates, you should call the evaluate endpoint instead of executing the workflow again. The evaluate endpoint re-runs the decision and risk assessment steps using existing check results. It does not call external providers (e.g., CreditorWatch), which means:- No additional provider cost - external data fetches are skipped entirely.
- Faster processing - only local computation steps are run.
- Updating the workflow result after classifying AML hits.
- Re-assessing risk after resolving duplicate entities.
- Recalculating the decision after a risk factor override.
When to use Execute instead: If the entity’s underlying data has changed and you need fresh provider data, or if existing check results have expired beyond the ageing window, use
/execute.Implementation Guide
Prerequisites
Before executing a workflow, ensure you have:- The
organizationTokenorregistrationNumberandregistrationTypeof the organization. - If the organization already exists in the system, the
entityIdfor the organization. - The
serviceNameof the Service Profile they are being assessed against (e.g.,DEFAULT). - The
workflowNameof the specific workflow you want to run (e.g.,GLB-Organization-Profile).
Step 1: Initiate the Workflow
Request
Choose the endpoint that matches your execution pattern.With Organization details:
Make aPOST request to the endpoint, providing the organizationToken from the search response or registrationNumber, registrationType and country in the request body.
comment in the request body to provide additional context about the workflow execution. The comment will be added to the audit trail of the workflow execution.
You can also pass serviceName in the request body to override the default configured service profile.
With EntityId:
This endpoint is used to execute a workflow for an existing entity. Make aPOST request to the execute endpoint, including the entityId, serviceName, and workflowName in the path.
Evaluate for an Existing Entity:
If the entity has already been through a workflow execution and you need to re-assess its compliance status (e.g., after classifying AML hits), use theevaluate endpoint.
The evaluate endpoint requires a prior completed workflow execution. If no prior execution exists, the API returns
400. If the entity’s underlying data has changed and existing check results have been invalidated, the evaluation may produce an incomplete assessment. In this case, use /execute to fetch fresh data.Response
202 Accepted and contain the workflowExecutionId which can then be used to get the results of the workflow.
The workflow will continue to process in the background.
Step 2: Retrieve the Workflow Result
You can retrieve the workflow result by using theworkflowExecutionId returned in the previous step.
Request
workflowResult.workflowExecutionState indicates the execution state of the workflow. If it is IN_PROGRESS, the workflow is still running. You can poll the endpoint again to check the status.
When the workflow is completed, the workflowResult.workflowExecutionState will be COMPLETED. At this point, you can parse the workflowResult object to understand the outcome of every step.
Response will also contain the complete organization object with all the information about the business.
Next Steps
Once you have successfully executed a workflow, the next critical step is to parse the richworkflowResult object to understand the outcome of every check.
For a complete breakdown of every field in the response, refer to our detailed guide:
Interpreting Workflow Results.