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.scripts.nashorn.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 *Requiredstringarrayobject
host *Requiredstring
topicDestination *Requiredstring
awaitAcknowledgementTimeout string
Default
PT1M
Format
duration
deliveryMode string
Default
PERSISTENT
Possible Values
DIRECT
PERSISTENT
messageProperties object
SubType string
Default
{}
messageSerializer string
Default
STRING
Possible Values
STRING
BINARY
ION
JSON
messageSerializerProperties object
Default
{}
password string
properties object
SubType string
Default
{}
username string
vpn string
Default
default