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

Suppress events about internal audit nodes #18

Closed
wants to merge 3 commits into from

Conversation

escowles
Copy link
Contributor

.to("direct:event");
.choice()
.when(not(header("org.fcrepo.jms.identifier").startsWith(simple("{{audit.container}}"))))
.to("direct:event");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this works, but filter(...) would be simpler

from("...")
    .routeId("AuditFcrepoRouter")
    .filter(not(header(JmsHeaders.IDENTIFIER).startsWith(simple("..."))))
        .to("direct:event")

Also note that the fcrep-camel component has CONST values for the JMS headers

@acoburn
Copy link
Contributor

acoburn commented Apr 27, 2015

Some updates to the two README files about the new configuration option would be nice

@escowles
Copy link
Contributor Author

I've updated EventRouter to use a filter() and handle other containers that start with /audit (e.g., /auditions/), and updated the tests and readme.

escowles added a commit that referenced this pull request Apr 27, 2015
Suppress events about internal audit nodes
@acoburn
Copy link
Contributor

acoburn commented Apr 27, 2015

Resolved via 5c7912a

@acoburn acoburn closed this Apr 27, 2015
@awoods awoods deleted the suppress-internal-audit branch April 27, 2015 20:40
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

Successfully merging this pull request may close these issues.

None yet

2 participants