Accessing DM from APM

The DM component exposes standard web service endpoints for accessing the deployed decision services.
  1. In DMP, obtain the URL for the component's service endpoint (SOAP endpoint), in this case the Process Server WSDL.
    You can obtain the Process Server WSDL from the View Links option in the drop-down menu for the component. Select Authoring as the link type in the Links dialog box.
  2. In the FASt Manager, update the following property in the DM adapter eSpace om_apm_dm_adapter with the Process Server WSDL: Integrations > ConsumedWebService > InvokeService.
  3. Set the parameter values clientId and secret for AuthorizeWebService action in the AuthenticationHeader eSpace or optionally, in the FASt Manager om_apm_consumer eSpace, create Site Properties > DM_ClientId and DMSecretId and ensure that the site properties are multi-tenant.
    All component endpoints are secure, and require client authentication before they can be invoked. Authorizing access to a decision component requires values you obtain from the solution in your DMP Library. You can obtain the values for Client Id and Secret Id by clicking the Key icon next to the solution name.
  4. In the Designer, add AuthenticationHeader as a reference to om_apm_consumer eSpace.
    A FASt application such as APM that calls a decision service must include a reference to AuthenticationHeader. For each action that invokes a decision service such as DM, the workflow must first call the AuthorizeWebService action.
    Note: For consumer, small business, and synchronous consumer templates, find usages of InvokeDMParamByDynamicURL and add the authorization piece of code before every usage.
  5. Add AuthorizeWebService action from AuthenticationHeader reference to the consumer workflow before you invoke DM decision service.
    Each web service in your eSpace has an action that you can add to a flow to call the decision service of the component. However, because the services are secure, you must first use AuthorizeWebService action from the AuthenticationHeader reference to set the correct credentials for the service invocation.
  6. In the Designer, enter the following parameter values for AuthorizeWebService execute action: webRefName and webRefURL.
    The webRefName is defined by the InvokeService property in the adapter eSpace. Use the GetURLDM API in the consumer workflow to get the Web service URL and service name from the adapter eSpace.
  7. Publish eSpace, om_apm_consumer. Or, similarly publish the eSpace as per the template you are using and publish all outdated eSpaces.
    Publish the outdated eSpaces, for example, see the screenshot below:
  • www.fico.com