Kafka mocks are essential for testing process flows that depend on external integrations, allowing you to simulate various response scenarios and edge cases.
Authentication
This endpoint requires Bearer Token authentication. Include your API token in the Authorization header.Bearer token for API authentication. Format:
Bearer YOUR_API_TOKENURL Parameters
The base URL of the mock adapter service where Kafka exchange mocks are managed.
Request Body Parameters
The Kafka topic name that the external integration listens on for incoming messages from FlowX Engine. This should match exactly with your integration’s configuration.Example:
ai.flowx.in.adapter.kyc.clientCheckPf.v1The Kafka topic name that FlowX Engine listens on for replies from the external integration. This should match the topic configured in your process definition.Example:
to.flowx.updates.qa.adapter.kyc.clientcheck.v1The JSON message that will be sent to the external integration. Use
null if you want to test scenarios where no specific message content is required, or provide a JSON string for specific message simulation.The JSON response message that the mock will return to FlowX Engine, simulating the external integration’s response. This allows you to test different response scenarios.
Request Example
Response Examples
Usage Tips
Testing Different Scenarios: Create multiple mocks with different
sentMessageJson values to test various response scenarios like success, failure, and edge cases in your process flows.Topic Naming: Ensure your topic names follow your organization’s Kafka topic naming conventions and match exactly with your integration configurations.
Mock exchanges are intended for development and testing environments only. Do not use mocked integrations in production systems.

