comparison doc/config-manual/model_of_transitions.tex @ 919:29a4a1a99a22

Added Sample calls for creating an FIS doc/trunk@1054 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 04 May 2010 13:36:36 +0000
parents 8a63b0d53003
children 63bc0044ff72
comparison
equal deleted inserted replaced
918:8a63b0d53003 919:29a4a1a99a22
589 /etc/init.d/artifactdb restart 589 /etc/init.d/artifactdb restart
590 590
591 Then we check if the new FIS is served by the REST-Server 591 Then we check if the new FIS is served by the REST-Server
592 calling the following command: 592 calling the following command:
593 593
594 curl http://localhost:8181/factories |grep fis\_justanewfis 594 curl http://localhost:8181/factories | xmllint --format - | grep fis\_justanewfis
595 595
596 If the FIS was added the new Artifactfactory will be found in the generated 596 If the FIS was added the new Artifactfactory will be found in the generated
597 XML-Output and it will be shown. 597 XML-Output and it will be shown.
598 Otherwise no XML-Output will be shown. 598 Otherwise no XML-Output will be shown.
599 599
631 </artifact> 631 </artifact>
632 \end{lstlisting} 632 \end{lstlisting}
633 633
634 Restart the Artifact-Database: 634 Restart the Artifact-Database:
635 635
636 \begin{lstlisting}
636 /etc/init.d/artifactdb restart 637 /etc/init.d/artifactdb restart
638 \end{lstlisting}
637 639
638 Now we should be able to choose the Artifact. 640 Now we should be able to choose the Artifact.
641
639 The Listbox with products will be empty. 642 The Listbox with products will be empty.
640 //TODO: USE Screenshots the commandline is to complex? 643 \begin{lstlisting}
644 curl -d "@sample-documents/create-artifact.xml" http://localhost:8181/create | xmllint --format -
645 \end{lstlisting}
641 646
642 \subsubsection{Adding removing Products to the specific Artifact} 647 \subsubsection{Adding removing Products to the specific Artifact}
643 Now it is Time to configure the different Products which the FIS should be able 648 Now it is Time to configure the different Products which the FIS should be able
644 to provide. 649 to provide.
645 To do this it is necessary to Copy the XML-Fragments of the products into the 650 To do this it is necessary to Copy the XML-Fragments of the products into the
701 <parameter name="sourceid" 706 <parameter name="sourceid"
702 value="4"/> 707 value="4"/>
703 <parameter name="fisname" 708 <parameter name="fisname"
704 value="fis\_justanewfis"/> 709 value="fis\_justanewfis"/>
705 </parameters> 710 </parameters>
706 </product> 711 </product>
707 \end{lstlisting} 712 \end{lstlisting}
708 713
709 Restart the Artifact-Database: 714 Restart the Artifact-Database:
710 715
716 \begin{lstlisting}
711 /etc/init.d/artifactdb restart 717 /etc/init.d/artifactdb restart
718 \end{lstlisting}
719
720 If we call
721 \begin{lstlisting}
722 curl -d "@sample-documents/create-artifact.xml" http://localhost:8181/create | xmllint --format -
723 \end{lstlisting}
724
725 The Product timeSeries should be available for ths FIS justanewfis.
712 726
713 Now we should be able to choose the Product Timeseries for FIS justanewfis. 727 Now we should be able to choose the Product.
714 This Product should work and you should be able to generate even the defined 728 This Product should work and you should be able to generate even the defined
715 Outputformats. 729 Outputformats.
716 730
717 \subsubsection{Putting SourceID to specific Artifact} 731 \subsubsection{Putting SourceID to specific Artifact}
718 \subsection{Adding a new Product} 732 \subsection{Adding a new Product}

http://dive4elements.wald.intevation.org