Please enable JavaScript to view this site.

Das Handbuch für den JobRouter Entwickler

Ein auf das Wesentliche beschränktes, funktionsfähiges Beispiel einer XML-Konfiguration für die CSV-Systemaktivität muss in der Basisklasse SystemActivity.php als Rückgabewert der Methode getDialogXml() implementiert werden. Dies sieht wie folgt aus:

Funktionsfähige getDialogXml()-Methode

<?php

...

    protected function getDialogXml()

    {

        return "<?xml version='1.0' encoding='ISO-8859-1'?>

            <jobrouterModuleSettings>

                <module name='CONST_SA_CSV'>

                    <functions>

                        <function id='exportCsv' name='CONST_SA_CSV_CSVEXPORT_NAME' description='CONST_SA_CSV_CSVEXPORT_DESCRIPTION'>

                            <userdefined>

                                <udfield name='CONST_SA_CSV_FIX_SUBTABLE' id='fixSubtable' desc='CONST_SA_CSV_FIX_SUBTABLE_DESC' type='list' />

                            </userdefined>

                            <inputParameters>

                                <field id='fieldDelimiter' name='CONST_SA_CSV_FIELD_DELIMITER' desc='CONST_SA_CSV_FIELD_DELIMITER_DESC' worktable='yes' subtable='no' fixed='yes' datatype='varchar' required='yes'/>

                                <list id='fieldList' name='CONST_SA_CSV_COLUMN_MAPPING' worktable='no' subtable='yes' fixed='no' datatype='varchar' required='no' udl='yes'/>

                            </inputParameters>

                            <outputParameters>

                                <field id='returnCode' name='CONST_ACT_RETURN_CODE' desc='CONST_ACT_RETURN_CODE' info='return_code' worktable='yes' subtable='no' fixed='no' datatype='int'/>

                                <field id='errorMessage' name='CONST_ACT_ERROR_MSG' desc='CONST_ACT_ERROR_MSG' worktable='yes' subtable='no' fixed='no' datatype='varchar'/>

                                <field id='targetFile' name='CONST_SA_CSV_TARGET_FILE' desc='CONST_SA_CSV_TARGET_FILE_DESC' worktable='yes' subtable='no' fixed='no' datatype='file' required='yes'/>

                                <field id='numberOfRows' name='CONST_SA_CSV_NUMBER_OF_ROWS' desc='CONST_SA_CSV_NUMBER_OF_ROWS_DESC' worktable='yes' subtable='no' fixed='no' datatype='varchar'/>

                            </outputParameters>

                        </function>

                    </functions>

                    <simulation>

                        <behavior id='EXECUTE' name='CONST_ACT_SIM_EXECUTE' desc='CONST_ACT_SIM_EXECUTE_DESC' />

                        <behavior id='SUCCESS' name='CONST_ACT_SIM_SUCCESS' desc='CONST_ACT_SIM_SUCCESS_DESC' />

                        <behavior id='ERROR' name='CONST_ACT_SIM_ERROR' desc='CONST_ACT_SIM_ERROR_DESC' />

                    </simulation>

                </module>

            </jobrouterModuleSettings>";

 }

...