Skip to main content
Table of Contents

TTMSMCPServer.SetTaskResult Method

Completes a task successfully with the payload a later tasks/result request will return, and notifies the client that owns it.

API unit family: TMS.MCP.Server Declaring type: TTMSMCPServer Inherited from: TTMSMCPCustomServer

Syntax

TMS.MCP.Server.hppPascalC++
procedure SetTaskResult(const ATaskId: string; AResult: TJSONValue);
void __fastcall SetTaskResult(const System::UnicodeString ATaskId, System::Json::TJSONValue* AResult);

Parameters

Name Description
ATaskId Identifier of the task to complete.
AResult Result payload. Ownership passes to the task registry.