Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 535.7K On-Premises Infrastructure
- 138.1K Analytics Software
- 38.6K Application Development Software
- 5.6K Cloud Platform
- 109.3K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71K Infrastructure Software
- 105.2K Integration
- 41.5K Security Software
How to automate the metadata generation??

Hi,
I don't know how to automate the metadata generation with a script. Is there any way to do it?
Thanks!!!
Best Answer
-
Ok , so you want to create these assets without using the UI, right ? maybe using a script or batch file or something like that .
You can do all this as mentioned earlier by using ridc , wsdl , idc command file .
The services which needs to be called for each of these are provided in the following documentation : http://docs.oracle.com/cd/E29542_01/doc.1111/e11011/toc.htm
Which action calls which service can be figured out by using the google debug panel or FF debug panel , then run the action from UI to get the list of params and service called .
This same set can be called from any of the mechanism mentioned above .
For eg , this is a sample java code to add file store provider with it's configuration to the server : http://tinyurl.com/zrxab2p
Answers
-
it's better you mention the specifics, especially, what metadata you are trying to automate. are you trying to generate metadata for files that are lying on disk somewhere and then use that information and checkin those to CS via RIDC API.
Or, while you select a profile or DOCTYPE in check-in screen then you want to pre-populate the screen fields with some pre-defined value.
Your question is too broad and there might be lots of approaches to achieve the same.
You can also look at Content Categorizer component that comes with OWCC. It provides metadata extraction feature
-
I am trying to generate the metadata schema to use it in other environment. For example, the way to create a script that generate a new profile with their metadata attributes like this:
Profile: Comercial
Metadata attributes:
General data (ContentID, Name, Title, Author,...)
Name of product as LongText
Description as LongText
Type of product as optionList
...
How to create a definition to create the profile metadata because i know how to create manually the metadata schema in UCM ( Configuration manager in Admin Applets) but i need to know if there is a way to create it automatically.
-
there is no way to create it automatically. you need to write custom idoc scripts and override required script functions and javascripts to achieve this behavior.
-
I am trying to generate the metadata schema to use it in other environment.
Looking to migrate the metadata from one environment to another ? Is that what you are looking for ?
-
Yeah, i am not looking for the way to migrate the metadata from one environment to another, I looking for the way to create automatically the metadata, profiles, rules,... (the same funcionality of configuration manager in admin applets but manual with a script). Although it can be the same.... -.-
-
Is this what you are looking for? Using the IdcCommand line option?
In Windows: call %UCM_DOMAIN_HOME%\%UCM_DOMAIN_NAME%/ucm/cs/bin/IdcCommand -f Create_Metadata_UpdateDBAlso.hda -l ./logs/CreateLogs.txt -u weblogic -c server
In Linux: $UCM_DOMAIN_HOME/$UCM_DOMAIN_NAME/ucm/cs/bin/IdcCommand -f Create_Metadata_UpdateDBAlso.hda -l ./logs/CreateLogs.txt -u weblogic -c server
Create_Metadata_UpdateDBAALSO.hda file:
@Properties LocalData
IdcService=ADD_METADEF
dIsRequired=0
dOptionListKey=Region_List
dOptionListType=choice
dIsOptionList=1
dOrder=10604
dName=xRegion
dIsSearchable=1
dIsEnabled=1
dType=Text
FieldName=Region
dCaption=Region
dDefaultValue=
<<EOD>>
@Properties LocalData
IdcService=UPDATE_OPTION_LIST
dKey=Region_List
OptionListString=Americas\nAPAC\nEMEA\nLAD
<<EOD>>
It's the ADD_METADEF service you want to invoke to add metadata programatically.
-
Ok , so you want to create these assets without using the UI, right ? maybe using a script or batch file or something like that .
You can do all this as mentioned earlier by using ridc , wsdl , idc command file .
The services which needs to be called for each of these are provided in the following documentation : http://docs.oracle.com/cd/E29542_01/doc.1111/e11011/toc.htm
Which action calls which service can be figured out by using the google debug panel or FF debug panel , then run the action from UI to get the list of params and service called .
This same set can be called from any of the mechanism mentioned above .
For eg , this is a sample java code to add file store provider with it's configuration to the server : http://tinyurl.com/zrxab2p
-
Thanks!!!
ADD_METADEF service can use to create medatada
-
Thanks, I have used web services with RIDC and... great!!
Thanks for the answer