Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<?xml version="1.0"?>
<configuration>
	<tempDirectory>D:/temp</tempDirectory>
	<workingThreads>4</workingThreads>
	<debug>false</debug>
	<filters></filters>
 
	<unit name="DokumentyKosztowe">
		<source>
			<directory path="D:/BarcodeReader/PiP/DokumentyKosztowe/input" recursive="true"
				pattern="(^.*\.[pP][dD][fF]$)" />
		</source>
		<barcodes multiple="false">
			<barcode name="Faktury" type="CODE_128" pattern="(^[0-9]{7,8}$)" skipNextIdentical="true" />
		</barcodes>
		<classify>
			<class name="Faktury">
				<start>
					<barcode>Faktury</barcode>
				</start>
				<end>
					<barcode>Faktury</barcode>
					<lastpage/>
				</end>
				<indexes>
					<index name="Index1" type="barcode">Faktury</index>
				</indexes>
				<destination split="false">
					<filename>${Index1}.pdf</filename>
					<directory path="D:/Praca/BarcodeReader/PiP/DokumentyKosztowe/Faktury" flat="false" />
				</destination>
			</class>
		</classify>
		<actions>
			<success>
				<move>
					<destination>
						<filename>${filename}</filename>
						<directory path="D:/Praca/BarcodeReader/PiP/DokumentyKosztowe/success"/>
					</destination>
				</move>
			</success>
			<!-- Akcje jeżeli wystąpił jakikolwiek błąd -->
			<error>
				<move>
					<destination>
						<filename>${filename}</filename>
						<directory path="D:/Praca/BarcodeReader/PiP/DokumentyKosztowe/error"/>
					</destination>
				</move>
			</error>
		</actions>
	</unit>
</configuration>

 

Przykład z C Hartwig, konfiguracja zawiera przenoszenie plików z nierozpoznanymi kodami do katalogu unclassified

No Format
<?xml version="1.0"?>
<configuration>
    <tempDirectory>/home/plusworkflow/plusworkflow-prod-home/temp/</tempDirectory>
    <workingThreads>4</workingThreads>
    <debug>true</debug>
    <filters>
        <step>
            <filter type="threshold" value="130" />
        </step>
        <step>
            <filter type="median" />
            <filter type="autothreshold" />
        </step>
    </filters>

    <unit name="Faktury_CHG">
        <source>
            <directory path="/home/plusworkflow/plusworkflow-prod-home/Skany/chg-skany" recursive="true" pattern="(^.*\.[pP][dD][fF]$)" />
        </source>
        <barcodes multiple="true">
            <barcode name="KodFaktury_CHG" type="CODE_128" pattern="(^CHG_*[A-Z]{2}_*[A-Z]{1}[0-9]{7,8}$)" skipNextIdentical="true" />
        </barcodes>
        <classify>
            <class name="Faktury">
                <start>
                    <barcode>KodFaktury_CHG</barcode>
                </start>
                <end>
                    <barcode>KodFaktury_CHG</barcode>
                    <lastpage/>
                </end>
                <indexes>
                    <index name="Index1" type="barcode">KodFaktury_CHG</index>
                </indexes>
                <destination split="false">
                    <filename>${Index1}.pdf</filename>
                    <directory path="/home/plusworkflow/plusworkflow-prod-home/config/barcode-reader/BarcodeReader_files/splited/chg-skany" flat="false" />
                </destination>
            </class>
            <class name="Niesklasyfikowane">
            <start>
                    <unclassified /> 
            </start>
        <end>
            <classified />
            <lastpage/>
        </end>
        <indexes>
        </indexes>
        <destination>
            <filename>${filename}</filename>
            <directory path="/home/plusworkflow/plusworkflow-prod-home/config/barcode-reader/BarcodeReader_files/unclassified" flat="false" />
        </destination>
        </class>
        </classify>
        <actions>
            <success>
                <move>
                    <destination>
                        <filename>${filename}</filename>
                        <directory path="/home/plusworkflow/plusworkflow-prod-home/config/barcode-reader/BarcodeReader_files/success_orginal_backup/chg-skany"/>
                    </destination>
                </move>
            </success>
            <error>
                <move>
                    <destination>
                        <filename>${filename}</filename>
                        <directory path="/home/plusworkflow/plusworkflow-prod-home/config/barcode-reader/BarcodeReader_files/error/chg-skany"/>
                    </destination>
                </move>
            </error>
        </actions>
    </unit>
</configuration>

 

Podstawowe elementy

Element configuration

...