Skip to content
Discussion options

You must be logged in to vote

This is solved through dependency method in Flow via chaining from flow to sink flow methods,
Example

	public static Consumer<Deriver> copy( Flow fromFlow, Transmission.Type fromType, String fromField,
	    String toField ) {
		return ( p) -> {
			p.dependency( fromFlow, ( s ) -> {
				return s.from( _<<Interaction>>_, fromType, fromField )
				    .sink( f -> Flows.interactions( f )
				        .filter( <<Interaction>>).findFirst().orElse( null ),
				        Interaction::request, toField );
			} );
		};
	}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shubhamlal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant