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

viewbuilder for multiple events #24

Closed
TomKaltz opened this issue Jul 27, 2015 · 7 comments
Closed

viewbuilder for multiple events #24

TomKaltz opened this issue Jul 27, 2015 · 7 comments

Comments

@TomKaltz
Copy link
Contributor

ed.defineViewBuilder({
    name: '', // optional, default is file name without extension, if name is '' it will handle all events that matches
    aggregate: 'timesheet', // optional
    context: 'timesheet',
    id: 'aggregateId', // if not defined or not found it will generate a new viewmodel with new id
    //payload: 'payload' // optional,
    //if not defined it will pass the whole event...
    autoCreate: true

    // optional, if not defined it will pass the whole event...
    //payload: 'payload'
  },...

I have tried this but the denormalizer wouldn't fire for all aggregates named timesheet. Did I misinterpret "it will handle all events that matches"?

@TomKaltz TomKaltz changed the title Denormalizer for multiple events viewbuilder for multiple events Jul 27, 2015
@adrai
Copy link
Contributor

adrai commented Jul 27, 2015

No, viewBuilders are dedicated to a specific event...

@TomKaltz
Copy link
Contributor Author

What is...

name: '', // optional, default is file name without extension, if name is '' it will handle all events that matches

@adrai
Copy link
Contributor

adrai commented Jul 27, 2015

I think this is a mistake... only eventExtenders can do such things...

@adrai
Copy link
Contributor

adrai commented Jul 27, 2015

But this could be the next feature ;-)

@adrai
Copy link
Contributor

adrai commented Jul 27, 2015

It's ok for you if I do this tomorrow?

@TomKaltz
Copy link
Contributor Author

You can do it whenever you want. I make no demands for open source
software. Thanks for your contribution to the community!

On Mon, Jul 27, 2015 at 4:11 PM, Adriano Raiano notifications@github.com
wrote:

It's ok for you if I do this tomorrow?


Reply to this email directly or view it on GitHub
#24 (comment)
.

@adrai
Copy link
Contributor

adrai commented Jul 28, 2015

v1.8.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants