We are developing Custom UWL connector with Substitution feature. Here we are able to manage Substitution rules using our custom SubstitutionManager class. For this system, we have defined separate substitution profile. I can see this profile name in drop down while creating new substitution rule using UWL UI.
But If I create rule using that profile,following error message displayed for AdHocSystem.
"System does not support these tasks"
As per my understanding it should not valid for AdhocSystem tasks. I have used following code to define substitution profile.
SubstitutionProfile subProfile = new SubstitutionProfile("SAMPLE_ALL", "Sample Tasks", "Sub Profile for Sample Provider", "SapmpleUwlProvider", systemId);
Please correct me If I am wrong.
Are you working with a third party (non-SAP) system? I have a feeling that this won't work. Or what is actually your requirement? What are you trying to achieve?
If I remember correctly, the profiles come form SAP. In other words, if you create a new substitution profile in SAP, you will be able to see in the standard substitution application. And when you create a new substitution rule with the profile, the substition is created in SAP with the given profile. If you are working with a third party solution, I doubt this will work. Well, I don't know the details about the code behind, so I cannot be sure how this all works.