Hi Martin
Thanks for the response. Correct i can version manually and the file copies.
What i did notice is if i put the version script on the pre server method on the transition it works,the file versions correctly (copying the word file ect) but the document does not move to the next life cycle step it stays on the current one.
I have given ARAS-PLM permissions in the script aswell. I have updated it as per below,
Innovator inn = this.getInnovator();
// Grant 'Aras PLM' permissions
Aras.Server.Security.Identity plmIdentity = Aras.Server.Security.Identity.GetByName("Aras PLM");
bool PermissionWasSet = Aras.Server.Security.Permissions.GrantIdentity(plmIdentity);
try
{
// Version
Item resItem = this.apply("version");
resItem = resItem.apply("unlock");
// Finish
return resItem;
}
finally
{
// Revoke 'Aras PLM' permissions
if (PermissionWasSet) Aras.Server.Security.Permissions.RevokeIdentity(plmIdentity);
}
The only issue i still have is that this does not move on to the next lifecycle step when i add it on the pre.
Wian