Introduction
The dmp module allows a Mosel model running in a supported Decision Management Platform (DMP) Component (FICO® Xpress Insight or FICO® Xpress Executor) to interact with components and webservices within the same DMP Solution, and restricted parts of DMP Manager pertaining to the solution. 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
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.