Re: p:store and default readable ports

Le mercredi 24 novembre 2010 à 11:16 -0500, Tony Rogers a écrit :
> I know that the p:store step does not have a primary output.  
> 
> 
> My general question: 
> Does this mean that in a pipeline that flows in the default order (top
> to bottom of pipeline document), p:store cannot be used in the middle
> of things?  
> 
> 
> My pipeline specifics:
> I have a pipeline that does an HTTP request.  I want to store the
> results of that request, AND I also want to perform some further
> processing on those results immediately after storing them.  
> The problem is that if I store them, p:store does not have a primary
> output, so the automatic flow of my pipeline stops.  :(

After p:store, you can add 
<p:identity>
 <p:input port="source">
  <p:pipe port="result" step="the step before p:store"/>
 </p:input>
</p:identity>


Or you can move p:store somewhere else (where you will discard its
output) and create an explicit connection to the step that you want to
store:
<p:store>
   <p:input port="source">
      <p:pipe port="result" step="the step you want to store"/>

Received on Wednesday, 24 November 2010 16:32:51 UTC