Hi Ankur
Connector xPress simply creates a dynamic connector that uses the same logic as the rest of the out of the box connectors. There are several ways of achieving your requirement out of the box. I am describing 2 approaches. My recommended approach would be the second one (using IM policy xpress)
1. If your string has a fixed length, you can use the Rule Substrings supported in the provisioning server: https://docops.ca.com/ca-identity-manager/14-1/EN/administrating/managed-endpoints-and-provisioning/provisioning-roles/advanced-rule-expressions/rule-substrings
so if your string is always 8 characters then you could extract the first 7 characters, then add hyphen, then extract the last character, so your rule string becomes something like this:
%YOURATTRIBUTE:1,7%-%YOURATTRIBUTE:8,1%
2. I think your best option (and this would work with both static and dynamic length strings) is using Policy xPress policies. With policy xpress you have a possibility of using much more complex logic than with built-in rule substrings in provisioning server. You can dynamically search for strings / substrings via policy xpress.
So I would trigger policy xpress whenever the value of your attribute is added / changed in IM and then using policy xpress I would break up the value of your attribute into the desired substrings and then write the modified value in a new user attribute mapped to your provisioning store user attribute that you later use in your JDBC DYN connector account templates.
KR
Russi