Thanks Joe. Good points. Agreed. Rick ________________________________________ From: Joe Witt <[email protected]> Sent: Monday, September 14, 2015 9:05 AM To: [email protected] Subject: Re: Auto-terminating default connections programmatically
Or we can add something to relationship builder to let the dev indicate a relationship should be terminated by default. Rick, Bumping after two days, particularly weekend days, is probably not necessary. Joe On Mon, Sep 14, 2015 at 8:51 AM, Mark Payne <[email protected]> wrote: > Rick, > > There is no way to auto-terminate a relationship by default. One thing that > you could consider doing is to have > a property named, say, "Use to Relationship X" (though hopefully you can find > a better name) :) > > Then, if the property is set to false, do not even include the relationship > in the set of available relationships returned > by the getRelationships method. This way, your processor can also be more > intelligent about not even wasting its > time generating FlowFiles that would be terminated. > > RouteOnAttribute is a good example of a Processor that defines its > relationships dynamically. > > Thanks > -Mark > > ---------------------------------------- >> From: [email protected] >> To: [email protected] >> Subject: Re: Auto-terminating default connections programmatically >> Date: Mon, 14 Sep 2015 12:19:37 +0000 >> >> Bump >> >> >> >>> On Sep 12, 2015, at 4:39 PM, Rick Braddy <[email protected]> wrote: >>> >>> Hi, >>> >>> Is there a way to auto-terminate certain relationships / connections >>> automatically from within a processor? >>> >>> For example, a processor has three outputs, but by default we only want the >>> "success" relationship to be required, to save the user the hassle of >>> having to manually auto-terminate relationships during flow creation. >>> >>> I realize this may seem like a small thing, but one of our value >>> propositions is low-friction ease-of-use, so we like to streamline things >>> with the best possible defaults for common operation, and right now it's >>> causing user friction to manually terminate connections that are typically >>> unused by default. >>> >>> Thanks >>> Rick >
