ParameterHash hash = context.getParameters(); Object object = hash.get("your-datum");if(StringUtils.contains(object.getClass().toString(), "java.lang.String")){ // this datum object returned a string value -- do some processing...}else{ List dcrs = (List)object; if(dcrs == null || dcrs.isEmpty()){ return; } Iterator iterator = dcrs.iterator(); while(iterator.hasNext()){ dcrPath = (String)iterator.next().toString(); // now you have the DCR Path -- so do whatever you need to do with that ... }}
import com.interwoven.livesite.external.ExternalUtils;....Document dcrXML = ExternalUtils.readXmlFile(context, dcrPath);