Forum Discussion

hkhan's avatar
hkhan
Ideator I
4 years ago

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;

7 Replies

  • Object Lifecycle Management, you define a lifecycle configuration, which must be set on a bucket. The configuration contains a set of rules which apply to current and future objects in the bucket. When an object meets the criteria of one of the rules, Cloud Storage automatically performs a specified action on the object. Here are some example use cases: