Categorygithub.com/konstellation-io/kai-processes/process-trigger
modulepackage
1.0.0
Repository: https://github.com/konstellation-io/kai-processes.git
Documentation: pkg.go.dev

# README

Process trigger

The process trigger is a predefined KAI process that will trigger an event when a new event is received on the given subject forwarding the message received

How to setup

The trigger requires adding the following configuration options:

  • A string field product
  • A string field version
  • A string field workflow
  • A string field process
  • A boolean field retain-execution-id

The first four fields will be used to create the subscription subject

Configuration

The configuration should be defined inside the centralized configuration scope:

KeyOptionalTypeValue
productnostrThe product in which is the process you want to subscribe to
versionnostrThe version in which is the process you want to subscribe to
processnostrThe process in which is the process you want to subscribe to
workflownostrThe workflow in which is the process you want to subscribe to
retain-execution-idyesboolKeeps the original request's id - default value is true

Subtopic

In order to subscribe to a subtopic, process field needs to be in the form process.subtopic

Example

centralized_configuration:
  process:
    bucket: process
    config:
      product: product
      version: version
      workflow: workflow
      process: process
      retain-execution-id: true

Output

It triggers an event of sending a message through the module messaging in the sdk.

KeyTypeValue
requestIDstrA string
messagestrThe message received

Example

{
	"requestID: 123
	"message": "test message"
}

# Constants

No description provided by the author