AnsweredAssumed Answered

How can I create a new Policy in OpenCMIS ?

Question asked by jawwad on Jun 3, 2011
Latest reply on Jun 3, 2011 by fmui
Hi,

          Can anyone tell me how to create a policy. Ive tried:

   properties.put(PropertyIds.OBJECT_TYPE_ID, BaseTypeId.CMIS_POLICY.value());
      properties.put(PropertyIds.POLICY_TEXT, "Policy");
              
                Policy policy = customFolder.createPolicy(properties);

         But I am getting the exception:
                Exception in thread "main" java.lang.IllegalArgumentException: Property +'cmis:objectTypeId' is not valid for this type!

       Can anybody tell me what am I missing? or what did I do wrong?

       Any help will be highly appriciated. Thanks in advance.

Outcomes