The item gets closed on new generation/version on lifecycle

オフライン

Whenever I create a new generation/version using csharp code on lifecycle it would always close the item, is there any function i can use which does not  close it?

below is my code

Aras.Server.Security.Identity plmIdentity = Aras.Server.Security.Identity.GetByName("Aras PLM");
bool PermissionWasSet = Aras.Server.Security.Permissions.GrantIdentity(plmIdentity);
Innovator inn = this.getInnovator();
try {
Item myThis = this.apply("version");
} catch (Exception e) {
return inn.newError(e.Message);
}

return this;

Parents Reply Children
  • I have never done this by myself. But you maybe can avoid using the Method. Innovator automatically creates a new revision within the lifecycle if your LifeCycle state has the "Released" property set to 1. Maybe this variant works better?

    Edit: I think the previous state has to be set to "Released", so then the next state will trigger the new revision...