Initializing help system before first use

Introduction

The dmp module allows a Mosel model running in a FICO® Xpress Insight or FICO® Xpress Executor component in Decision Management Platform (DMP) to interact with components and webservices within the same DMP Solution, and services on DMP Manager. Using the dmpresource type supplied by the dmp module, you will be able to make HTTP requests to these resources that will be automatically authorized with appropriate credentials, for example:

declarations
  mycomponent: dmpresource
end-declarations
dmpinitcomp(mycomponent, "Xpress Executor")
if mycomponent.status<>DMP_OK then
  writeln('Component not found')
else
  httpStatusCode := dmphttpget(mycomponent, "/rest/runtime/status", "status.json")
end-if

The dmp module is the only way to communicate with DMP services in Xpress Insight 4 or Xpress Executor. In Xpress Insight 5 it is not required to use the dmp module, as authorization tokens will be returned by the insightgetcontext function of mminsight and can then be used to authorize webservice calls using mmhttp or some other method, but in many cases it is still easier to use the functions of the dmp module instead.

This manual will not cover how to interact with specific DMP webservices; the developer should consult the documentation for the resource they are trying to call for details of how to formulate the HTTP request and interpret the response.


© 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.