One scenario will be you have a SOAP integration and the hostname part changes from environment to environment e.g DEV, TEST, STAGING and PRODUCTION but the context root and remaining url parameter is same. You can leverage an ENV variable in this case to predefine the hostname for all environments and then you can deploy the process app without any changes and as per the runtime deifinition the appropriate URL will be constructed