From 31f55d92c23a26aabc86273bfd03a86c66ea46ed Mon Sep 17 00:00:00 2001 From: Nicolas Joubert Date: Wed, 30 Sep 2026 16:54:05 +0200 Subject: [PATCH] cleverage/cache-process-bundle#22, cleverage/cache-process-bundle#23 - Add demo processes Co-Authored-By: Claude Opus 5.5 (1M context) --- .../process/demo.cache.get_invalid_input.yaml | 24 +++++++++++++++++++ .../demo.cache.set_invalid_input_option.yaml | 24 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 config/packages/process/demo.cache.get_invalid_input.yaml create mode 100644 config/packages/process/demo.cache.set_invalid_input_option.yaml diff --git a/config/packages/process/demo.cache.get_invalid_input.yaml b/config/packages/process/demo.cache.get_invalid_input.yaml new file mode 100644 index 0000000..798b47c --- /dev/null +++ b/config/packages/process/demo.cache.get_invalid_input.yaml @@ -0,0 +1,24 @@ +clever_age_process: + configurations: + demo.cache.get_invalid_input: + description: > + GetTask receiving a string input (cleverage/cache-process-bundle#22): the task only accepts an array or + null input, it must fail with a clear message + help: > + Ex: bin/console cleverage:process:execute demo.cache.get_invalid_input + tasks: + sku: + service: '@CleverAge\ProcessBundle\Task\ConstantOutputTask' + options: + output: 'key1' + outputs: [ get ] + + get: + service: '@CleverAge\CacheProcessBundle\Task\GetTask' + options: + adapter: 'memory' + key: '' # Overridden by the input + outputs: [ debug ] + + debug: + service: '@CleverAge\ProcessBundle\Task\Debug\DebugTask' diff --git a/config/packages/process/demo.cache.set_invalid_input_option.yaml b/config/packages/process/demo.cache.set_invalid_input_option.yaml new file mode 100644 index 0000000..b7140a2 --- /dev/null +++ b/config/packages/process/demo.cache.set_invalid_input_option.yaml @@ -0,0 +1,24 @@ +clever_age_process: + configurations: + demo.cache.set_invalid_input_option: + description: > + SetTask receiving an input with an invalid option type (cleverage/cache-process-bundle#23): the input + values must be validated like the options + help: > + Ex: bin/console cleverage:process:execute demo.cache.set_invalid_input_option + tasks: + item: + service: '@CleverAge\ProcessBundle\Task\ConstantOutputTask' + options: + output: + adapter: 1 + key: 'key1' + value: 'value1' + outputs: [ set ] + + set: + service: '@CleverAge\CacheProcessBundle\Task\SetTask' + options: + adapter: 'memory' + key: '' # Overridden by the input + value: ~ # Overridden by the input