Skip to content

Commit

Permalink
#22 Add demo.csv_reader for CsvReaderTask
Browse files Browse the repository at this point in the history
  • Loading branch information
njoubert-cleverage committed Dec 12, 2024
1 parent c7eb85d commit 52b2305
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions config/packages/process/demo.csv_reader.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
clever_age_process:
configurations:
demo.csv_reader:
description: >
A simple process which read a specific csv to log/debug each line
help: >
Ex: bin/console cleverage:process:execute demo.csv_reader
options:
ui:
source: Bar
target: Foo
tasks:
entry:
service: '@CleverAge\ProcessBundle\Task\File\Csv\CsvReaderTask'
outputs: [ log_line, dump ]
options:
file_path: '%kernel.project_dir%/var/data/sample.csv'
log_line:
service: '@CleverAge\ProcessBundle\Task\Reporting\LoggerTask'
options:
message: Read line
level: info
dump:
service: '@CleverAge\ProcessBundle\Task\Debug\DebugTask'

0 comments on commit 52b2305

Please sign in to comment.