Using Executor Properties
The simplest way to define the corresponding properties of your Executor entity, for example:
model DirectInitExample uses "executor" declarations myexecutor: Executor end-declarations myexecutor.componenturl := "https://vm65j75lqh-vm65j75lqh.dms.usw2.ficoanalyticcloud.com/" myexecutor.bearertokenurl := "https://iam-svc.dms.usw2.ficoanalyticcloud.com/registration/rest/client/token" myexecutor.clientid := "vm5qh0y37c" myexecutor.secret := "wdS97u648BVoI#d3e4g2Z4mP780Y1DLdSDKm" ! myexecutor now initialized and can be used end-model
To find the component URL, bring up the drop-down menu beside the component name in DMP and select "View Links". Use the value from the 'REST' field but remove everything after the domain name. For example, if the link displayed is:
https://vm65j75lqh-vm65j75lqh.dms.usw2.ficoanalyticcloud.com/rest/ runtime/execution?solutionID=vm5qh0y37c
then use
https://vm65j75lqh-vm65j75lqh.dms.usw2.ficoanalyticcloud.com/
The clientid and secret values for your solution can be found on the "Client Apps" page of the solution screen in DMP. Finally, the bearertokenurl will be the URL from where we will obtain DMP authentication tokens - consult the "Requesting a Bearer Token" page of the DMP documentation for more details.
If you prefer to manage the authentication with DMP yourself, you can alternately initialize the Executor with the component URL and a DMP bearer token, e.g.:
model DirectInitExample uses "executor" declarations myexecutor: Executor end-declarations myexecutor.componenturl := "https://vm65j75lqh-vm65j75lqh.dms.usw2.ficoanalyticcloud.com/" myexecutor.bearertoken := "xyfuehdsoguihUGHifsihf7hi" ! myexecutor now initialized and can be used end-model
However, note you will need to refresh the 'bearertoken' value periodically as the tokens will expire. If you initialize with clientid and secret, the 'executor' module will request new bearer tokens when it needs to.