Following is the Code to create any resource in Knowledge Management (KM)
propertyName = new PropertyName("http://sapportals.com/xmlns/cm","displayname");//Creating the property map for the properties which needs to be//set for the KM resource being created.mutablePropertyMap = new MutablePropertyMap();//Creating the property and setting its display namemutableProperty = new MutableProperty(propertyName,"File");//Populating the property map with the property created above.mutablePropertyMap.put(mutableProperty);//Creating a resource(a file).resource = parent.createResource("SomeName.txt",mutablePropertyMap,null);
No comments:
Post a Comment