Produce
Produce
yaml
type: "io.kestra.plugin.solace.Produce"Examples
yaml
id: send_messages_to_solace_queue
namespace: company.team
inputs:
- id: file
type: FILE
description: a CSV file with columns id, username, tweet, and timestamp
tasks:
- id: read_csv_file
type: io.kestra.plugin.serdes.csv.CsvToIon
from: "{{ inputs.file }}"
- id: transform_row_to_json
type: io.kestra.plugin.graalvm.js.FileTransform
from: "{{ outputs.read_csv_file.uri }}"
script: |
var result = {
"payload": {
"username": row.username,
"tweet": row.tweet
},
"properties": {
"correlationId": "42"
}
};
row = result
- id: send_message_to_solace
type: io.kestra.plugin.solace.Produce
from: "{{ outputs.transform_row_to_json.uri }}"
topicDestination: test/tweets
host: localhost:55555
username: admin
password: admin
vpn: default
messageSerializer: "JSON"
Properties
from *Requiredobject
host *Requiredstring
topicDestination *Requiredstring
awaitAcknowledgementTimeout string
Default
PT1MdeliveryMode string
Default
PERSISTENTPossible Values
DIRECTPERSISTENTmessageProperties object
SubTypestring
Default
{}messageSerializer string
Default
STRINGPossible Values
STRINGBINARYIONJSONmessageSerializerProperties object
Default
{}password string
properties object
SubTypestring
Default
{}username string
vpn string
Default
default