Setting up optional scenarios for endpoint configuration for complex topologies
If you have a complex topology,
you might need to configure optional scenarios for specific types
of generated URLs.
Procedure
To configure optional scenarios, complete the following actions:
- Optional: Test Business Automation Workflow clients, generated links, and functionality that you suspect might not work correctly with the default scenario settings in your topology.
- For each deployment environment, use Optional scenario keys to identify
any scenarios for types of generated URLs that cannot be handled correctly
by the default scenarios. Focus on any clients or types of links that
do not work correctly. For each scenario key, decide whether the scenario will use a fixed URL, a fixed virtual host object, or a list of dynamic strategies to resolve the endpoint information.
- For each optional scenario in Optional scenario keys that must be
configured, perform the following actions (where
SCENARIO_KEY
is the Business Automation Workflow endpoint scenario key):- Identify the scenario by entering the following command:
scenario='SCENARIO_KEY'
Remember: Replace SCENARIO_KEY with the appropriate scenario key value from Optional scenario keys. - Create a new endpoint or modify an existing endpoint by completing
one of the following actions:
- If you decided to use a virtual host object, modify the Business Automation Workflow endpoint
for the scenario,
scenario
, to set thevirtualHost
pointer to the new Business Automation Workflow virtual host,default_vh
.
If there is only one deployment environment in the WebSphere cell, you can omit the -de parameter.AdminTask.setBPMEndpoint( [ '-de', deployment_env_name, '-scenario', scenario, '-virtualHost', 'default_vh' ] )
Important: If it is not appropriate to use the default virtual host information, create a new one, and set the pointer to that one. For example:
If there is only one deployment environment in the WebSphere cell, you can omit the -de parameter.AdminTask.setBPMVirtualHost( ['-de', deployment_env_name, '-name', 'scenario_vh', '-transportProtocol', 'https', '-hostname', 'internal.example.com', '-port', '9443' ] ) AdminTask.setBPMEndpoint( [ '-de', deployment_env_name, '-scenario', scenario, '-virtualHost', 'scenario_vh' ] )
- If you decided to use a fixed URL, set the
url
attribute on the Business Automation Workflow endpoint for the scenario,scenario
. For example, to set the URLhttps://webserver.example.com:443
, enter the following command:
If there is only one deployment environment in the WebSphere cell, you can omit the -de parameter.AdminTask.setBPMEndpoint( [ '-de', deployment_env_name, '-scenario', scenario, '-url', 'https://webserver.example.com:443' ] )
- If you decided to use dynamic predefined strategies
to extract the host information, modify the Business Automation Workflow endpoint
for the scenario,
scenario
to set thestrategies
property. For example, to set the Business Automation Workflow endpoint to use theWebsphereProxyHeaderStrategy
,XForwardedHeaderStrategy
, andHttpProtocolHostStrategy'
strategies, enter the following command:
If there is only one deployment environment in the WebSphere cell, you can omit the -de parameter.AdminTask.setBPMEndpoint( [ '-de', deployment_env_name, '-scenario', scenario, '-strategies', 'WebsphereProxyHeaderStrategy, XForwardedHeaderStrategy, HttpProtocolHostStrategy' ] )
- If you decided to use a virtual host object, modify the Business Automation Workflow endpoint
for the scenario,
- Save any changes.
AdminConfig.save()
- Identify the scenario by entering the following command: