Change folder domain using Javacode (knowing that the domain already exists in windchill)
I am using Windchill PDMLink Release 11.2 and Datecode with CPS 11.2.1.14
I am trying to change the domain to some folders that were created automatically with a script was created using java code.
I found a method from the class AdministrativeDomainManager called changeAdministrativeDomain(DomainAdministered obj, AdminDomainRef domain_ref) that it says :Changes the domain to which the object belongs and sets domain inheritence to false.
So when I try to get the AdminDomainRef using AdminDomainRef (see code below) I get an exception that says I am out of context(see error messages or warning) String newDomain="Default//Test//XDomain//"; AdminDomainRef admDom = AdministrativeDomainHelper.getAdminDomainRef(newDomain);
Please I need help on that I could not get any clear documentation or example about it , if you have some java code example to move a folder to another domain ( knowing that that domain already exists in windchill ) will be great if you share it.
Here are the errors that I faced
Status Code: 500
Exception: (wt.inf.container.containerResource/26) wt.inf.container.ClassicContainerNotFoundException: Context not found: "Windchill PDM"

