Declaring the Return Type of a Job

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

Home >  Configuring Jobs >

Declaring the Return Type of a Job

You may need to declare the data type returned by the job if you intend to use the result of the job in other jobs, or if you want to cache the result of the job. When declaring the return type, keep in mind the following:

 

Declaring the return type is meaningful only for jobs that actually return a result.
If you want to cache the result of the job, you must declare the return type.
The return type of a job must be the same as the data type of the last step in the job. If the last step of your job returns a data type other than the one declared for the job, FlowForce Server returns an error similar to "Types string and result do not match". When type matching errors such as this one occur, use expression functions to change the data type of the last step in the job to the data type declared as the job return type (see Handling data types in steps ).

 

 

To declare the return type of the job:

1.Create a new job or open an existing one for editing.
2.Select a return type in the Execution Result section.

DeclareReturnType

The available return types are as follows.

 

ignore/discard

This is the default return type. It instructs FlowForce Server to ignore or discard the result of the job provided there is one. Select this option if the job does not return a result, or if you do not need to process the returned result in any way.

string

Specifies that the data returned by the job represents a text value (string).

stream

Specifies that the data returned by the job represents a stream.

number

Specifies that the data returned by the job is a numeric value.

boolean

Specifies that the data returned by the job is a Boolean value.


© 2019 Altova GmbH