• Java SDK 1.1 OKMWebservices.setPropertyGroupPropertiesSimple() API

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #45461  by PSHREYASHOLLA
 
Hi,

We were using OKMWebservices.setPropertyGroupPropertiesSimple(String nodeId,String grpName,Map<String,String> properties) API to set metadata to a document in OpenKM communtity version 6.3.4 which used to get deployed on tomcat-7.0.61.

Now if we install latest community version 6.3.4, installer deploys OpenKM on tomcat-8.5.24. The API OKMWebservices.setPropertyGroupPropertiesSimple(String nodeId,String grpName,Map<String,String> properties) does not set the metadata to a document directly.

It expects to first add a group to the document using OKMWebservices.addGroup(String nodeId,String grpName) and then call OKMWebservices.setPropertyGroupPropertiesSimple(String nodeId,String grpName,Map<String,String> properties).

Please let us know if the functionality changed?
 #45466  by jllort
 
There's a bug in version 6.3.5 you must upgrade to version 6.3.6 ( that's the reason why in the same week we make both releases, we detected was an error in the OpenKM core introduced by mistake into 6.3.5 what does not allow change or add metadata and for it we released inmediatelly version 6.3.6 )
 #45493  by PSHREYASHOLLA
 
Hi Jllort,

Even after deploying 6.3.6 CE, I am facing the same issue.

The API OKMWebservices.setPropertyGroupPropertiesSimple(String nodeId,String grpName,Map<String,String> properties) does not set the metadata to a document directly.
Getting ,
Code: Select all
Property group not assigned to this node
	at com.openkm.sdk4j.impl.PropertyGroupImpl.setPropertyGroupPropertiesSimple(PropertyGroupImpl.java:509)
	at com.openkm.sdk4j.OKMWebservice10.setPropertyGroupPropertiesSimple(OKMWebservice10.java:665)
It expects to first add a group to the document using OKMWebservices.addGroup(String nodeId,String grpName) and then call OKMWebservices.setPropertyGroupPropertiesSimple(String nodeId,String grpName,Map<String,String> properties).
 #45539  by PSHREYASHOLLA
 
Hi,

Was this introduced in the latest version? As to add the group first before setting properties was not mandatory in the older releases. This will create a problem as we cannot certify our integration with a particular version.

For this One more API call needs to be done and the same will hit performance :cry:

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.