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 calling components/pipelines from code #2

Open
yamalight opened this issue Dec 10, 2015 · 0 comments
Open

Allow calling components/pipelines from code #2

yamalight opened this issue Dec 10, 2015 · 0 comments
Milestone

Comments

@yamalight
Copy link
Contributor

Allow executing components and pipelines as part of code.
This can significantly improve flexibility of the system.

Imported code should be a promise/observable due to the nature of the platform (we'll need to pre-compile it on server before it can be used).

Example pseudo-code:

import componentPromise from 'user/c/component'; // or 'user/p/pipeline'
export default (data) => Rx.Observable.create(obs => {
    componentPromise.then(component => component(data).subscribe(obs));
});
@yamalight yamalight added this to the v1.0 milestone Dec 10, 2015
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