Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow different declarations for process #102

Open
4 tasks
shavounet opened this issue Dec 10, 2019 · 0 comments
Open
4 tasks

Allow different declarations for process #102

shavounet opened this issue Dec 10, 2019 · 0 comments

Comments

@shavounet
Copy link
Contributor

Description

Today it's only possible to declare process through YAML. We should find a way to allow easily (with custom code) :

  • database stored process : allowing an admin user to create db entities that can be converted into process / transformers
    • maybe it can only be a cookbook
  • PHP declarations : allow a quick & functional syntax for process that are not meant to be called in CLI
    • example idea, with some specific functions, and generic functions :
$processBuilder->fromInput()
    ->readFile('csv', $readOptions)                          // hypothetical FileReaderTask, see #78
    ->filter(function($item) {return test($item);})          // hypothetical CallbackFilterTask, maybe linked to #96 
    ->transform(['transformer_code' => $transformerOptions]) // TransformerTask call
    ->pipe($taskService, $taskOptions)                       // generic call
    ->writeFile('csv', $writeOptions);                       // hypothetical FileWriterTask, see #78
$process = $processBuilder->build();

$processManager->execute($process);

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant