# HG changeset patch # User Tim Englich # Date 1272970628 0 # Node ID a03d2006d7c60817722b88c9c0db6ae5ac443798 # Parent a6f86fa053a1c45cae6d8993ed520dff70e84e4d Added Example for adding a new FIS to the REST-Server doc/trunk@1050 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r a6f86fa053a1 -r a03d2006d7c6 doc/ChangeLog --- a/doc/ChangeLog Tue May 04 10:08:25 2010 +0000 +++ b/doc/ChangeLog Tue May 04 10:57:08 2010 +0000 @@ -1,3 +1,8 @@ +2010-05-04 Tim Englich + + * config-manual/model_of_transitions.tex: + Added Example for adding a new FIS to the REST-Server. + 2010-05-04 Tim Englich * config-manual/model_of_transitions.tex: diff -r a6f86fa053a1 -r a03d2006d7c6 doc/config-manual/model_of_transitions.tex --- a/doc/config-manual/model_of_transitions.tex Tue May 04 10:08:25 2010 +0000 +++ b/doc/config-manual/model_of_transitions.tex Tue May 04 10:57:08 2010 +0000 @@ -567,6 +567,36 @@ In this XML-Fragment you only have to replace the placeholder NEWFISNAME with a unique short Name for the new FIS. +\paragraph{Example} +This Example shows how to add an FIS and which effects it took to the +REST-Server. + +At first we add the follwing Artifactfactory into the file conf/conf.xml +in Section /artifact-database/artifact-factories which add a new +FIS called justanewfis to the Server: + +\begin{lstlisting} + + de.intevation.gnv.artifacts.GNVProductArtifactFactory + +\end{lstlisting} + +Then we restart the Artifact-database executing the followinig command: + +/etc/init.d/artifactdb restart + +Then we check if the new FIS is served by the REST-Server +calling the following command: + +curl http://localhost:8181/factories |grep fis\_justanewfis + +If the FIS was added the new Artifactfactory will be found in the generated +XML-Output and it will be shown. +Otherwise no XML-Output will be shown. + \subsubsection{Adding a new Artifact for Artifactfactory} The next Step is to define the Artifact itself. For this it is necessary to add an XML-Fragment into the Section /artifacts of