Hi all,
I need to upload a document into KM from a WD with the lifetime properties.
I have the following code:
java.text.Format fo = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss");
PropertyName propertyName = new PropertyName("http://sapportals.com/xmlns/cm/tbp" , "VALIDFROM");
IProperty property = new Property(propertyName, fo.format(wdContext.currentContextElement().getDataInici()));
The document is correctly uploaded in my repository, but the property "VALIDFROM" and "VALIDTO" is always the date and hour where document has been uploaded.
Is a problem of format of the value I give to the property?
Time-dependent publishing has been enable for the folder where I store the documents.
Any hint?
Thanks!