
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
awaitAcknowledgementTimeoutstring
Default
PT1MFormat
durationdeliveryModestring
Default
PERSISTENTPossible Values
DIRECTPERSISTENTmessagePropertiesobject
SubTypestring
Default
{}messageSerializerstring
Default
STRINGPossible Values
STRINGBINARYIONJSONmessageSerializerPropertiesobject
Default
{}passwordstring
propertiesobject
SubTypestring
Default
{}usernamestring
vpnstring
Default
default