Project: talendesb
Issue TESB-10440: Support for custom correleation id SOAP/REST including custom policy
- We need a create a custom policy called maybe correlation policy which will activate or deactivate custom correlation id feature. The Custom policy should be similar to the SOPERA ASF Correlation policy. The policy should provider 2 options. 1. Use of custom correlation id using a callback. 2. Use of custom correlation id using an xpath expression to teh SOAP body (Similar to ASF) - We need an interceptor in cxf which will be activated or deactivated based on this policy and this interceptor should take the custom correlation id from the user as defined in the policy and set it to the soap header. Incase no correlation is passed, the interceptor should create a uuid itself. - In case if custom correlation id is already present in the SOAP or HTTP header, the interceptor should just reuse this id and do nothing else. - In case if the custom correlation id feature is enabled or present in the soap header, the SAM agent should use this id and set it in the custom properties as CorrelationID. - In case of REST, the interceptor should set a custom HTTP header "CorrelationID".
Story points: 3