Sets the task output message that is to be sent back to the client.

C# |
public void SetTaskOutput( Message outMsg )

- outMsg (Message)
- The output message to be returned to the client

To retrieve this task response on the client, you must use [Session.FetchTaskOutput] for a synchronous Session, or register a handler with the OnResponse event for an asynchronous Session.
IMPORTANT NOTE: This SetTaskOutput overload uses Symphony Serialization. That is, the service will send your task output to the client as a Platform.Symphony.Soam.Message. If you set your task output using this overload, you must retrieve your task output on the client with the TaskOutputHandle.PopulateTaskOutput(Platform.Symphony.Soam.Message) method.
By using Symphony Serialization, this overload provides best performance and memory usage for sending task output.
For more details, please refer to the Application Development Guide.

Exception | Condition |
---|---|
[SoamException] | If output message could not be set. |

[Session.FetchTaskOutput]
[SessionCallback]
[SessionCallback]