cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create a new Policy in OpenCMIS ?

jawwad
Champ in-the-making
Champ in-the-making
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 +'cmisSmiley SurprisedbjectTypeId' 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.
1 REPLY 1

fmui
Champ in-the-making
Champ in-the-making
Hi Jawwad,

Alfresco does not support the creation of policies. The creatable attribute is FALSE for all policy types.

Florian