Skip to content
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
22 changes: 22 additions & 0 deletions config/packages/process/demo.constant_iterable_output.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
clever_age_process:
configurations:
demo.constant_iterable_output:
description: >
A simple process which iterate a constant output data
help: >
Ex: bin/console cleverage:process:execute demo.constant_iterable_output
options:
ui:
source: Bar
target: Foo
tasks:
entry:
service: '@CleverAge\ProcessBundle\Task\ConstantIterableOutputTask'
options:
output:
id: 123
firstname: Test1
lastname: Test2
outputs: [ debug ]
debug:
service: '@CleverAge\ProcessBundle\Task\Debug\DebugTask'
22 changes: 22 additions & 0 deletions config/packages/process/demo.constant_output.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
clever_age_process:
configurations:
demo.constant_output:
description: >
A simple process which output a constant data
help: >
Ex: bin/console cleverage:process:execute demo.constant_output
options:
ui:
source: Bar
target: Foo
tasks:
entry:
service: '@CleverAge\ProcessBundle\Task\ConstantOutputTask'
options:
output:
id: 123
firstname: Test1
lastname: Test2
outputs: [ debug ]
debug:
service: '@CleverAge\ProcessBundle\Task\Debug\DebugTask'
33 changes: 33 additions & 0 deletions config/packages/process/demo.counter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
clever_age_process:
configurations:
demo.counter:
description: >
A simple process which count the number of times the task is processed and continue every 3 iterations
help: >
Ex: bin/console cleverage:process:execute demo.counter
options:
ui:
source: Bar
target: Foo
tasks:
entry:
service: '@CleverAge\ProcessBundle\Task\ConstantIterableOutputTask'
options:
output:
test1: test1
test2: test2
test3: test3
test4: test4
test5: test5
test6: test6
test7: test7
test8: test8
test9: test9
outputs: [ counter ]
counter:
service: '@CleverAge\ProcessBundle\Task\CounterTask'
options:
flush_every: 3
outputs: [ debug ]
debug:
service: '@CleverAge\ProcessBundle\Task\Debug\DebugTask'
4 changes: 4 additions & 0 deletions config/packages/process/demo.debug.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
clever_age_process:
configurations:
demo.debug:
description: >
A simple process which output as debug
help: >
Ex: bin/console cleverage:process:execute demo.debug
options:
ui:
source: Bar
Expand Down
4 changes: 4 additions & 0 deletions config/packages/process/demo.die.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
clever_age_process:
configurations:
demo.die:
description: >
A simple process which output as die
help: >
Ex: bin/console cleverage:process:execute demo.die
options:
ui:
source: Bar
Expand Down
4 changes: 4 additions & 0 deletions config/packages/process/demo.doctrine.read.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
clever_age_process:
configurations:
demo.doctrine.read:
description: >
A simple process to use DoctrineProcessBundle as database reader
help: >
Ex: bin/console cleverage:process:execute demo.doctrine.read
options:
ui:
source: Bar
Expand Down
33 changes: 33 additions & 0 deletions config/packages/process/demo.dummy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
clever_age_process:
configurations:
demo.dummy:
description: >
A simple process with multiple output
help: >
Ex: bin/console cleverage:process:execute demo.dummy
options:
ui:
source: Bar
target: Foo
tasks:
entry:
service: '@CleverAge\ProcessBundle\Task\DummyTask'
outputs: [ output1, output2 ]
output1:
service: '@CleverAge\ProcessBundle\Task\ConstantOutputTask'
options:
output:
id: 123
firstname: Test1
lastname: Test2
outputs: [ debug ]
output2:
service: '@CleverAge\ProcessBundle\Task\ConstantOutputTask'
options:
output:
id: 456
firstname: Test3
lastname: Test4
outputs: [ debug ]
debug:
service: '@CleverAge\ProcessBundle\Task\Debug\DebugTask'
22 changes: 22 additions & 0 deletions config/packages/process/demo.error_forwarder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
clever_age_process:
configurations:
demo.error_forwarder:
description: >
A simple process which forward data to an error output
help: >
Ex: bin/console cleverage:process:execute demo.error_forwarder
options:
ui:
source: Bar
target: Foo
tasks:
entry:
service: '@CleverAge\ProcessBundle\Task\ConstantIterableOutputTask'
options:
output:
error1: Error 1
error2: Error 2
error3: Error 3
outputs: [ error_forwarder ]
error_forwarder:
service: '@CleverAge\ProcessBundle\Task\Debug\ErrorForwarderTask'
19 changes: 19 additions & 0 deletions config/packages/process/demo.event_dispatcher.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
clever_age_process:
configurations:
demo.event_dispatcher:
description: >
A simple process which dispatch an event
help: >
Ex: bin/console cleverage:process:execute demo.event_dispatcher
options:
ui:
source: Bar
target: Foo
tasks:
entry:
service: '@CleverAge\ProcessBundle\Task\Event\EventDispatcherTask'
options:
event_name: 'myapp.myevent'
outputs: [ debug ]
debug:
service: '@CleverAge\ProcessBundle\Task\Debug\DebugTask'
4 changes: 4 additions & 0 deletions config/packages/process/demo.logger.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
clever_age_process:
configurations:
demo.logger:
description: >
A simple process which log a message into a specific logger
help: >
Ex: bin/console cleverage:process:execute demo.logger
options:
ui:
source: Bar
Expand Down
2 changes: 2 additions & 0 deletions config/packages/process/demo.rest.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
clever_age_process:
configurations:
demo.rest:
description: >
A simple process to use RestProcessBundle
help: >
Ex: bin/console cleverage:process:execute demo.rest -c codePostal:"'46800'"
options:
Expand Down
2 changes: 1 addition & 1 deletion config/packages/process/demo.soap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ clever_age_process:
description: >
A simple process to use SoapProcessBundle
help: >
bin/console cleverage:process:execute demo.soap
Ex: bin/console cleverage:process:execute demo.soap
options:
ui:
source: Bar
Expand Down
14 changes: 14 additions & 0 deletions config/packages/process/demo.stopwatch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
clever_age_process:
configurations:
demo.stopwatch:
description: >
A simple process which output as stopwatch
help: >
Ex: bin/console cleverage:process:execute demo.stopwatch
options:
ui:
source: Bar
target: Foo
tasks:
entry:
service: '@CleverAge\ProcessBundle\Task\Debug\StopwatchTask'
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
clever_age_process:
configurations:
demo.sample:
description: >
A simple process which transform data
help: >
Ex: bin/console cleverage:process:execute demo.transformer
options:
ui:
source: Bar
Expand Down
8 changes: 6 additions & 2 deletions config/packages/process/demo.upload_and_run.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
clever_age_process:
configurations:
demo.upload_and_run:
description: >
A simple process which upload a csv file and read it to log/debug each line
help: >
Ex: bin/console cleverage:process:execute demo.upload_and_run --input=/path/to/file.csv -c delimiter:";"
entry_point: entrypoint # for upload_and_run process entry_point is required
options:
ui:
Expand All @@ -25,7 +29,7 @@ clever_age_process:
choices: [',', ';']
message: delimiter context must be , or ;. {{ value }} given.
tasks:
entrypoint: # Add log info to describe witch file is reading
entrypoint: # Add log info to describe which file is reading
service: '@CleverAge\ProcessBundle\Task\Reporting\LoggerTask'
options:
message: Read file
Expand All @@ -36,7 +40,7 @@ clever_age_process:
service: '@CleverAge\ProcessBundle\Task\File\Csv\InputCsvReaderTask'
outputs: [ log_line, dump ]
options:
delimiter: '{{ delimiter }}' ## delimiter is contextualized you must add -c delimiter:; on console execute
delimiter: '{{ delimiter }}' ## delimiter is contextualized you must add -c delimiter:";" on console execute
log_line:
service: '@CleverAge\ProcessBundle\Task\Reporting\LoggerTask'
options:
Expand Down