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 you declare the return type, keep in mind the following points:
•Declaring the return type is meaningful only for jobs that actually return a result.
•If you want to cache the result of a 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 (e.g., Types string and result do not match). When type matching errors 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. for details, see Data Types in Steps.
Return type of a job
To define the return type of a job, take the following steps:
1.Create a new job or open an existing one for editing.
2.Select a return type in the Execution Result section (see screenshot below).
The available return types are listed below.
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.
Specifies that the data returned by the job represents a text value (string).
Specifies that the data returned by the job represents a stream.
Specifies that the data returned by the job is a numeric value.
Specifies that the data returned by the job is a Boolean value.