hi jllort, thanks a lot !!!
yesterday in the afternoon i worked hard on this problem and i arrived to code till
Code: Select allOKMPropertyGroup.getInstance().setPropertiesSimple(token, doc.getPath(), grpName, properties);
this line of code give me an error that today i will not able to solve because i can't work on it...
this afternoon i have to help my elder son in his xmas holiday homeworks ( today we have to study english, in particular engish possessive ) and this morning i helped the younger in his first step into calligraphy and writing
i get a strange error it cannot find the method setPropertiesSimple in the import list i gave and it states cannot find in a library i did not import ... i have to investigate
this is the code in the simple.xml file
Code: Select allimport com.openkm.api.OKMDocument;
import com.openkm.module.DocumentModule;
import com.openkm.module.ModuleManager;
import com.openkm.bean.Document;
import com.openkm.bean.PropertyGroup;
import com.openkm.module.PropertyGroupModule;
import java.util.Map;
String docUID = executionContext.getVariable("Bom").documentUuid;
String path2 = OKMDocument.getInstance().getPath(null, docUID);
DocumentModule dm = ModuleManager.getDocumentModule();
Document doc = dm.getProperties(null, path2);
PropertyGroupModule cm = ModuleManager.getPropertyGroupModule();
cm.addGroup(null, path2, "okg:technology");
Map properties = new HashMap();
properties.put("Type", "Culo");
properties.put("Language", "Java");
properties.put("Comment","Trattasi di prova");
properties.put("Description", "la corazzata cotiomkin e una cagata pazzesca");
cm.setProperties(null, path2, "okg:technology", properties);
here i get the following error
Code: Select allMethod setProperties( null, java.lang.String, java.lang.String, java.util.HashMap ) not found in class'com.openkm.module.db.DbPropertyGroupModule'
but i did not import the module d.DbProperty bla bla... so for one thing the system does not find the method in the libraries i imported and for second thing it tries to look for in some strange path i don't know
if you have some times to dedicate to my problem i will thank you... in any case i will keep you inform on my further step ...
thanks again
Alessandro