Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to set ExtendedAttribute
Ram_IWOV
Hi All,
I am new to Livesite and Java.
We have a requirement to set the ExtendedAttribute to a file through workflow external task.Could some one explain to me how to set the ExtendedAttribute using Java class.
Environment:
Teamsite 7.2
Window2003
Regards
Ram
Find more posts tagged with
Comments
foogoo
[php]
String eaName= "Name...";
String eaValue= "Value...";
CSAreaRelativePath[] fileList= task.getFiles();
for (CSAreaRelativePath aFile: fileList) {
CSSimpleFile simpleFile = (CSSimpleFile) task.getArea().getFile(aFile);
CSExtendedAttribute attribute = new CSExtendedAttribute(eaName, eaValue);
simpleFile.setExtendedAttributes(new CSExtendedAttribute[] { attribute });
}
[/php]