| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project basedir="../../../." name="CRM_PROCES_tree" default="default_db:PROCES_INIT:tree"
- xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd">
- <description>
- To retrieve process tree - just process menu and structurized processes
- </description>
-
- <property name="CRM_PROCES_tree_basedir" location="${basedir}/WPS_Functions/default_db/CRM_PROCES_tree" />
-
- <property name="CRM_PROCES_tree_basedir.temp" location="${CRM_PROCES_tree_basedir}/temp" />
-
- <property name="public_html" location="${basedir}" />
- <property name="root_build.xml" location="${public_html}/build.xml"/>
- <!--<property name="build_properties.xml" location="${public_html}/build_properties.xml" />-->
-
-
- <property name="build_properties.xml" location="${public_html}/build_properties.xml" />
-
-
-
-
- <target name="default_db:CRM_PROCES:tree:create_tempdir">
- <mkdir dir="${CRM_PROCES_tree_basedir.temp}"/>
- </target>
-
- <target name="read_build_properties.xml" depends="default_db:CRM_PROCES:tree:create_tempdir">
- <ant antfile="${root_build.xml}" target="save_build_properties.xml"/>
- <loadproperties srcfile="${build_properties.xml}"/>
- </target>
-
-
-
-
- <target name="default_db:CRM_PROCES:tree" depends="read_build_properties.xml">
- <ant antfile="${default_db:recurse_ant}" target="clean_temp_dir"/>
- <ant antfile="${default_db:recurse_ant}" target="xml_recursed_from_tr_map_with_RelatedFeatureLoop">
- <property name="uuid" value="CRM_PROCES_tree"/>
- <property name="typeName" value="p5_default_db:CRM_PROCES"/>
- <property name="xpath" value="PARENT_ID"/>
- <property name="xpath_value" value="0"/>
- <property name="xpath_query" value="[ not(local-name()='PROCES_INIT') and not(local-name()='CRM_WSKAZNIK') and not(local-name()='CRM_LISTA_ZASOBOW') ]"/>
- </ant>
- </target>
-
-
-
- <target name="default_db:PROCES_INIT:from_recurse" depends="read_build_properties.xml">
- <ant antfile="${default_db:recurse_ant}" target="clean_temp_dir"/>
- <ant antfile="${default_db:recurse_ant}" target="xml_recursed_from_tr_map_with_RelatedFeatureLoop">
- <property name="uuid" value="PROCES_INIT_list"/>
- <property name="typeName" value="default_db:PROCES_INIT"/>
- <property name="xpath" value="TYPE"/>
- <property name="xpath_value" value="PROCES_INIT"/>
- <property name="xpath_query" value="[ local-name()='PROCES_INIT' ]"/>
- </ant>
- <loadfile property="PROCES_INIT.RelatedFeatureRoot" srcfile="${default_db:recurse_ant_basedir.out}/${uuid}.out_task.dita.final_with_RelatedFeatureLoop.xml"/>
- </target>
-
-
-
- <target name="default_db:PROCES_INIT" depends="read_build_properties.xml" description="Get Process List">
- <echo>TODO currently testing just one process 994 ${default_db:recurse_ant}
- simpleSchema_dir = ${simpleSchema_dir}</echo>
- <property name="uuid" value="PROCES_INIT_list"/>
- <ant antfile="${get_wfs}" target="GetFeature">
- <property name="uuid" value="${uuid}"/>
- <property name="typeName" value="default_db:CRM_PROCES"/>
- <property name="xpath" value="TYPE"/>
- <property name="xpath_value" value="PROCES_INIT"/>
-
- <!--<property name="xpath_query" value="[1=2 ]"/>-->
- </ant>
- <loadfile property="PROCES_INIT.FeatureCollection" srcfile="${get_wfs_basedir.temp}/${uuid}.wfs_output.xml"/>
- <!--<echo>$PROCES_INIT.FeatureCollection ${PROCES_INIT.FeatureCollection}</echo>-->
- </target>
-
- <target name="default_db:PROCES_INIT:tree_from_wfs" depends="read_build_properties.xml,default_db:PROCES_INIT" description="By generating default_db:CRM_PROCES:tree we will respond with structurized PROCES_INIT with child process and resources xml structures - in parallel ant queries">
- <!-- foreach PROCES_INIT.FeatureCollection/ -->
- <property name="uuid" value="PROCES_INIT_list"/><!-- moze nie dzialac nowe uuid -->
- <loadfile property="PROCES_INIT.FeatureCollection" srcfile="${get_wfs_basedir.temp}/${uuid}.wfs_output.xml"/>
- <property name="default_db:PROCES_INIT:tree.raport.xml" location="${CRM_PROCES_tree_basedir.temp}/PROCES_INIT_list.raport.xml"/>
- <tempfile property="properties.xml" prefix="properties-for-PROCES_INIT_Tree" suffix=".xml" destdir="${CRM_PROCES_tree_basedir.temp}" deleteonexit="no"/>
- <tempfile property="properties_override.xml" prefix="properties_override-for-PROCES_INIT_Tree" suffix=".xml" destdir="${CRM_PROCES_tree_basedir.temp}" deleteonexit="no"/>
- <echoxml file="${properties_override.xml}">
- <properties>
- <property name="uuid" value="PROCES_INIT_TREE_$${xpath_value}"/> <!-- to be evaluated in child xsl/ant-->
- <property name="typeName" value="default_db:PROCES_INIT"/>
- <property name="xpath" value="ID"/>
- </properties>
- </echoxml>
- <!--<property name="uuid" value="PROCES_INIT_TREE_$${xpath_value}"/>-->
- <echoproperties destfile="${properties.xml}" format="xml"/>
-
- <!--<loadfile property="PROCES_INIT.RelatedFeatureRoot" srcfile="${default_db:recurse_ant_basedir.out}/${uuid}.out_task.dita.final_with_RelatedFeatureLoop.xml"/>-->
- <!--<echo> $PROCES_INIT.RelatedFeatureRoot ${PROCES_INIT.RelatedFeatureRoot}</echo>-->
- <delete file="${default_db:PROCES_INIT:tree.raport.xml}"/>
-
- <xslt basedir="${CRM_PROCES_tree_basedir.temp}" style="${build_ant_universal_by_xsl_match.xsl}" in="${get_wfs_basedir.temp}/${uuid}.wfs_output.xml" destdir="${CRM_PROCES_tree_basedir.temp}" out="${default_db:PROCES_INIT:tree.raport.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="RelatedFeatureRoot"/>-->
- </factory>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- <param name="match_root_element" expression="wfs:FeatureCollection"/>
- <param name="match_element" expression="default_db:CRM_PROCES"/>
- <param name="antfile_prefix" expression="PROCES_INIT_tree_child"/>
- <param name="temp" expression="${CRM_PROCES_tree_basedir.temp}"/>
- <param name="basedir" expression="${CRM_PROCES_tree_basedir}"/>
- <param name="antfile" expression="${default_db:recurse_ant}"/>
- <param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>
- <param name="match_child_element" expression="ID"/>
- <param name="match_child_element_property_name" expression="xpath_value"/>
- <param name="properties.xml" expression="${properties.xml}"/>
- <param name="properties_override.xml" expression="${properties_override.xml}"/>
- <param name="parallel" expression="1"/>
- <param name="threadCount" expression="10"/>
- </xslt>
- </target>
-
- <!-- depends ,default_db:PROCES_INIT:from_recurse -->
- <target name="default_db:PROCES_INIT:tree" depends="read_build_properties.xml" description="By generating default_db:CRM_PROCES:tree we will respond with structurized PROCES_INIT with child process and resources xml structures - in parallel ant queries">
- <!-- foreach PROCES_INIT.FeatureCollection/ -->
- <property name="uuid" value="PROCES_INIT_list"/>
-
- <property name="default_db:PROCES_INIT:tree.raport.xml" location="${CRM_PROCES_tree_basedir.temp}/build_PROCES_INIT_list.raport.xml"/>
- <tempfile property="properties.xml" prefix="properties-for-PROCES_INIT_Tree" suffix=".xml" destdir="${CRM_PROCES_tree_basedir.temp}" deleteonexit="no"/>
- <tempfile property="properties_override.xml" prefix="properties_override-for-PROCES_INIT_Tree" suffix=".xml" destdir="${CRM_PROCES_tree_basedir.temp}" deleteonexit="no"/>
- <echoxml file="${properties_override.xml}">
- <properties>
- <property name="uuid" value="PROCES_INIT_TREE_$${xpath_value}"/> <!-- to be evaluated in child xsl/ant-->
- <property name="typeName" value="default_db:PROCES_INIT"/>
- <property name="xpath" value="ID"/>
- </properties>
- </echoxml>
- <property name="uuid" value="PROCES_INIT_TREE_$${xpath_value}"/>
- <echoproperties destfile="${properties.xml}" format="xml"/>
- <!--<loadfile property="PROCES_INIT.FeatureCollection" srcfile="${get_wfs_basedir.temp}/${uuid}.wfs_output.xml"/>-->
-
- <loadfile property="PROCES_INIT.RelatedFeatureRoot" srcfile="${default_db:recurse_ant_basedir.out}/${uuid}.out_task.dita.final_with_RelatedFeatureLoop.xml"/>
- <!--<echo> $PROCES_INIT.RelatedFeatureRoot ${PROCES_INIT.RelatedFeatureRoot}</echo>-->
- <delete file="${default_db:PROCES_INIT:tree.raport.xml}"/>
-
- <xslt basedir="${CRM_PROCES_tree_basedir.temp}" style="${build_ant_universal_by_xsl_match.xsl}" in="${default_db:recurse_ant_basedir.out}/${uuid}.out_task.dita.final_with_RelatedFeatureLoop.xml" destdir="${CRM_PROCES_tree_basedir.temp}" out="${default_db:PROCES_INIT:tree.raport.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="RelatedFeatureRoot"/>-->
- </factory>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- <param name="match_root_element" expression="RelatedFeatureRoot"/>
- <param name="match_element" expression="PROCES_INIT"/>
- <param name="antfile_prefix" expression="PROCES_INIT_tree_child"/>
- <param name="temp" expression="${CRM_PROCES_tree_basedir.temp}"/>
- <param name="basedir" expression="${CRM_PROCES_tree_basedir}"/>
- <param name="antfile" expression="${default_db:recurse_ant}"/>
- <param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>
- <param name="match_child_element" expression="ID"/>
- <param name="match_child_element_property_name" expression="xpath_value"/>
- <param name="properties.xml" expression="${properties.xml}"/>
- <param name="properties_override.xml" expression="${properties_override.xml}"/>
- <param name="parallel" expression="1"/>
- <param name="threadCount" expression="10"/>
- </xslt>
- </target>
-
-
-
-
-
-
-
-
- </project>
|