Custom Serialization

    If you want to use a different format or override automatic serialization, you can select custom as an output format.

    In that case, do not connect any edge to Output. Use any writer Component with file URL response:body.

    We recommend you additionally set a Content-Type header using the setResponseContentType CTL function to match the serialization format you are returning in the payload.

    Automatic serialization is performed after all components in job logic have finished their execution. This is necessary so that the correct HTTP error code can be determined in case of any exception during processing.

    If you need to start streaming output before all components finish, use custom serialization with own writer component in the job body. Do note however, that during exception in processing or serialization, the client may receive only partial response. You can use standard graph phases to start your serialization in a separate phase, only after all data has been successfully prepared.