Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

fix: Add expression object to all EIPs which supports expression (#… #13

Merged
merged 1 commit into from
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions delay.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ spec:
definition:
title: "Delay"
description: "The Claim Check from the EIP patterns allows you to replace message content with a claim check (a unique key), which can be used to retrieve the message content at a later time."
required:
- expression
type: object
properties:
expression:
Expand Down
2 changes: 0 additions & 2 deletions dynamic-router.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ spec:
definition:
title: "Dynamic Router"
description: "The Dynamic Router from the EIP patterns allows you to route messages while avoiding the dependency of the router on all possible destinations while maintaining its efficiency."
required:
- expression
properties:
expression:
title: Expression
Expand Down
2 changes: 0 additions & 2 deletions enrich.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ spec:
definition:
title: "Content Enricher"
description: "Content Enricher from the EIP patterns."
required:
- expression
properties:
expression:
title: Expression
Expand Down
8 changes: 6 additions & 2 deletions filter.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ spec:
title: "Filter"
description: "The Message Filter from the EIP patterns allows you to filter messages. The message filter implemented in Camel is similar to if (predicate) { block } in Java. The filter will include the message if the predicate evaluated to true."
properties:
expression:
title: Expression
description: Expression content of the filter.
type: object
simple:
description: Simple language content of the body to set.
description: Simple language content of the filter.
type: string
example: 'Body: ${body}'
jq:
description: Jq language content of the body to set.
description: Jq language content of the filter.
type: string
example: '.foo == "baz"'
2 changes: 0 additions & 2 deletions idempotent-consumer.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ spec:
definition:
title: "Idempotent Consumer"
description: "The Idempotent Consumer from the EIP patterns is used to filter out duplicate messages. The Idempotent Consumer essentially acts like a Message Filter to filter out duplicates."
required:
- expression
properties:
expression:
title: Expression
Expand Down
2 changes: 0 additions & 2 deletions loop.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ spec:
definition:
title: "Loop"
description: "The Loop EIP allows for processing a message a number of times, possibly in a different way for each iteration."
required:
- expression
properties:
expression:
title: Expression
Expand Down
4 changes: 4 additions & 0 deletions message-router-choice.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
description: "The Content Based Router from the EIP patterns allows you to route messages to the correct destination based on the contents of the message exchanges. Message Router: Choice"
required:
properties:
expression:
title: Expression
description: Conditional to apply to go through this branch
type: object
simple:
title: Conditional in Simple form
description: Conditional to apply to go through this branch
Expand Down
2 changes: 0 additions & 2 deletions poll-enrich.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ spec:
definition:
title: "Poll Content Enricher"
description: "Content Enricher from the EIP patterns."
required:
- expression
properties:
expression:
title: Expression
Expand Down
2 changes: 0 additions & 2 deletions recipient-list.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ spec:
definition:
title: "Recipient List"
description: "Define a channel for each recipient. Then use a Recipient List to inspect an incoming message, determine the list of desired recipients, and forward the message to all channels associated with the recipients in the list."
required:
- expression
properties:
expression:
title: Expression
Expand Down
2 changes: 0 additions & 2 deletions resequence.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ spec:
definition:
title: "Resequence"
description: "Use a stateful filter, a Resequencer, to collect and re-order messages so that they can be published to the output channel in a specified order."
required:
- expression
type: object
properties:
expression:
Expand Down
2 changes: 0 additions & 2 deletions routing-slip.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ spec:
definition:
title: "Routing Slip"
description: "Attach a Routing Slip to each message, specifying the sequence of processing steps. Wrap each component with a special message router that reads the Routing Slip and routes the message to the next component in the list."
required:
- expression
type: object
properties:
expression:
Expand Down
8 changes: 6 additions & 2 deletions script.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ spec:
title: "Script"
description: "The Script EIP is used for executing a coding script. This is useful when you need to invoke some logic that are not in Java code such as JavaScript, Groovy or any of the other Languages. The returned value from the script is discarded and not used. If the returned value should be set as the new message body, then use the Message Translator EIP instead."
properties:
expression:
title: Expression
description: Expression content of the script.
type: object
groovy:
description: Groovy language content of the body to set.
description: Groovy language content of the script.
type: string
example: 'println "Hello World"'
javascript:
description: JavaScript language content of the body to set.
description: JavaScript language content of the script.
type: string
example: 'var util = require("util"); util.log("Hello World");'
4 changes: 4 additions & 0 deletions set-body.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ spec:
title: "Set Body"
description: "Transform the body of the message following the Message Translator EIP using en expression in simple language (Apache Camel)."
properties:
expression:
title: Expression
description: Expression content of the body to set.
type: object
simple:
title: Simple
description: Simple language content of the body to set.
Expand Down
4 changes: 4 additions & 0 deletions set-header.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ spec:
required:
- name
properties:
expression:
title: Expression
description: "Expression to set the header to."
type: object
name:
title: Name of the Header
description: "Which header are we going to set."
Expand Down
10 changes: 7 additions & 3 deletions set-property.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ spec:
required:
- name
properties:
expression:
title: Expression
description: "Expression to set the property to."
type: object
name:
title: Name of the Property
description: "Which property are we going to set."
Expand All @@ -25,13 +29,13 @@ spec:
type: object
simple:
title: Simple
description: "Value in simple form to set the header to."
description: "Value in simple form to set the property to."
type: string
constant:
title: Constant
description: "Constant value to set the header to."
description: "Constant value to set the property to."
type: string
jq:
title: Jq
description: "Jq expression to set the header to."
description: "Jq expression to set the property to."
type: string
4 changes: 4 additions & 0 deletions transform.camel-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ spec:
title: "Transform"
description: "Transform the body of the message following the Message Translator EIP using en expression in simple language (Apache Camel)."
properties:
expression:
title: Expression
description: Expression content of the body to set.
type: object
simple:
description: Simple language content of the body to set.
type: string
Expand Down