
REST API: The URL is not configured correctly
The Representational State Transfer (REST) API must be configured correctly, otherwise you get an error when you try to use the graphical process widget in the Business Process Choreographer Explorer, Business Process Archive Explorer, or Business Space.
Reason
This can have the following causes:
- If you want to use the graphical process widget in a clustered environment, you must set the endpoints for the Business Flow Manager and Human Task Manager REST APIs manually.
- If you configured Business Process Choreographer Explorer or Business Process Archive Explorer in a cluster, to achieve load balancing, you must map the web modules to a web server and configure the correct host name and port for this web server.
- If you change the context root or map web modules to a web server, you might need to change the URL for the REST API.
Resolution
To correct this problem:
- If you configured Business Process Choreographer Explorer or Business Process Archive Explorer instances, check your log files for messages CWWBZ0052W or CWWBZ0053W, which contain information about the URL that the instance was configured to use.
- If you have multiple Business Process Choreographer or Business
Process Archive Manager configurations in a cell, and the REST API
web modules for the following applications are mapped to the same
web server, these web modules must have unique context roots:
- For the Business Process Choreographer Explorer:
- Business Flow Manager BPEContainer application
- Human Task Manager TaskContainer application
- For the Business Process Archive Explorer:
- Business Flow Manager BPArchiveMgr application
- Human Task Manager TaskArchiveMgr application
- To set the context roots for the Business Flow Manager, click then ,
where application is BPEContainer for
a Business Process Choreographer configuration or BPArchiveMgr for
a Business Process Archive Manager configuration, and suffix is
either node_name_server_name or
the cluster_name where Business Process Choreographer
or Business Process Archive Manager is configured. Then make sure
that the context roots for the following web modules and are correct
and unique.
- BFMIF_scopeWeb
- BFMJAXWSAPI
- BFMRESTAPI
- To set the context roots for the Human Task Manager, click then ,
where application is TaskContainer for
a Business Process Choreographer configuration or TaskArchiveMgr for
a Business Process Archive Manager configuration, and suffix is
either node_name_server_name or
the cluster_name where Business Process Choreographer
is configured. Then make sure that the context roots for the following
web modules and are correct and unique.
- HTMIF_scopeWeb
- HTMJAXWSAPI
- HTMRESTAPI
- To change the REST URLs that the Business Process Choreographer
Explorer uses:
- Click or . On the Configuration tab, in the Business Process Manager section, expand Business Process Choreographer and click Business Process Choreographer Explorer. Update the Business Flow Manager and Human Task Manager REST API URLs.
- Update the endpoints in config-rest.xml using a command similar
to the following example, which uses PS.AppTarget as
the cluster name:
wsadmin>AdminTask.updateRESTServiceProvider(['-clusterName', 'PS.AppTarget', '-appName', 'BPEContainer_PS.AppTarget', '-webModuleName','bfmrestapi.war', '-contextRoot', '/rest/bpm/bfmPS2/']) wsadmin>AdminTask.updateRESTServiceProvider(['-clusterName', 'PS.AppTarget', '-appName', 'TaskContainer_PS.AppTarget', '-webModuleName','taskrestapi.war', '-contextRoot', '/rest /bpm/htmPS2/'])