I have created my own view definitions in Endeca Studio, via View Manager UI, and export them by following the recommendations found at https://wikis.oracle.com/display/endecainformationdiscovery/Export+View+Configuration.
Such recommendations are to create a graph that connects to Endeca Data Store and saves all view configuration in the required format for the LoadViewDefinitions graph.
Actually, I was able to create the graph and run it. After that, the xml file with the view definitions was created.
However, when I tried to run the LoadViewDefinitions graph, to import the definitions of the xml file to other data store, the following error came out:
Interpreter runtime exception in function substring on line 5 column 26 - 'String index out of range: -161'
By looking at the xml file and comparing it with other xml files, I could see that it contains only one long line with all the code, and I think this is the cause of the import failure.
This can also occur if you have the base view in your xml (This is included in the export). If you manually delete this from your .xml file you should be able to use the import graph. We will be posting an updated design pattern shortly that accomplishes this programmatically.