results

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Expression Functions > Step Result Functions >

results

Returns an array of streams of the specified result, optionally filtered by name. Use the function nth to access a particular value in the array.

 

Signature

results(result:result, name:string) -> stream

 

Parameters

Name

Type

Description

result

result

Mandatory parameter. The result of the step from which you want to return an array of streams.

name

string

Optional parameter. When provided, filters by name a particular value in the result.

 

Examples

If a MapForce component CompletePO produces a result consisting of several streams, and if you intend to access the first one, use:

 

{as-file(nth(results(MapForceMapping, "CompletePO"), 0))}

 

The results function picks the array of streams from the MapForce component. The nth function picks the first item from this array. Finally, the as-file function creates a file from the stream.

 

See also the following examples:

 

Creating a Job from a StyleVision Transformation
Generate Multiple PDFs from Multiple XMLs

© 2019 Altova GmbH