Initializing help system before first use

Responding to Callbacks

Callbacks are points in the solving of a job of type SOLVER where a user provided function is evaluated. The Compute Interface supports a number of solver callbacks and these can be individually enabled in the job submission request. For more information, see Supported Callbacks.
When a callback point is reached in the solving process, the solving is suspended and the client receives the following message of type APP_MESSAGE:
{
  "computeJobId":"my-job",
  "messageType":"APP_MESSAGE",
  "messagePayload":{
    "appMessageId":"uuid",
    "appMessageType":"BARLOG",
    "appMessageFile":"urltodownloadfrom(INTSOLonly)",
    "appMessage":{
      "problemName":"problem-name",
      "attributes":{
      "att1Name":{
        "key":1234,
        "name":"att1Name",
        "value":"value"
        }
      }
    }
  }
}

Each callback message includes the list of all solver attributes with their current values. The INTSOL callback includes a URL to request the current solution for the appMessageFile property.

A callback must be acknowledged. If the server does not receive an acknowledgment within 60 seconds then the job is terminated and marked as failed. This setting is configurable, for more see the following section, Editing the Callback Acknowledgment Timeout.

To acknowledge a callback and continue, send the message below. The response must include the appMessageId value of the message it is responding to. The response can also set solver controls to new values.
{
  "computeJobId":"my-job",
  "messageType":APP_MESSAGE_RESPONSE,
  "messagePayload":{
    "appMessageId":"id_of_the_received_message",
    "appMessage":{
    "interruptSolve":false,
    "controls":{
      "key":"newvalue"
      }
    }
  }
}
To acknowledge a callback and end the solve, send the message below.
{
	"computeJobId":"my-job"
	"messageType":"APP_MESSAGE_RESPONSE",
	"messagePayload":{
		"appMessageId":"id_of_the_received_message",
		"appMessage":{
		"interruptSolve":true
		}
	}
}

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.