Accessing DM from APM
The
DM component exposes standard web service endpoints for accessing the deployed decision services.
-
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.
-
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. -
Set the parameter values
clientId and
secret for
AuthorizeWebService
action in theAuthenticationHeader
eSpace or optionally, in the FASt Managerom_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. -
In the Designer, add
AuthenticationHeader
as a reference toom_apm_consumer
eSpace.A FASt application such as APM that calls a decision service must include a reference toAuthenticationHeader
. For each action that invokes a decision service such as DM, the workflow must first call theAuthorizeWebService
action.Note: For consumer, small business, and synchronous consumer templates, find usages ofInvokeDMParamByDynamicURL
and add the authorization piece of code before every usage. -
Add
AuthorizeWebService
action fromAuthenticationHeader
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 useAuthorizeWebService
action from theAuthenticationHeader
reference to set the correct credentials for the service invocation. -
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 theGetURLDM
API in the consumer workflow to get the Web service URL and service name from the adapter eSpace. -
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:
Home
Decision Management Platform (DMP) Integration
Decision Module Integration
Accessing DM from APM
Origination Manager Application Processing Module Help