====== EntityIfCase ====== The Jobstep EntityIfCase is a Boolean switch and evaluates the mapping function stored under the Expression property. If the result is true, the jobsteps associated with OnTrue are executed. If the function result is incorrect, the job steps associated with OnFalse are executed. ^GENERATED src="eBiss.ClassLib.Resources.JobSteps.EntityIfCase" changed=""^^ ^Properties^^ ^Name^Description^ |**Type**|Class name of the jobstep| |**Name**|Name for the jobstep that will appears in the job designer| |**Description**|Optional description for the jobstep| |**XPath query**|Here XPath functions can be specified, whose result returns true or false.\\\\If the result is **true**, the steps associated with **OnTrue** are executed.\\\\If the function result is **false**, the steps associated with **OnFalse** will be executed.| ==== Examples ==== * **[[en:kommunikation:nachrichten:start]] Content** evaluation://@Funktion='10' or //@Funktion='9010' * Entities of the type INVOIC whose sender GLN is stored in the EXCEPTION variable instance with the system partner and which do not have any items.(//INVOIC/UNB/DG_S002/@DE_0004 = GetSystemPartnerVariable('EXCEPTION')) and (count(//INVOIC/SG_25) = 0) * check if the document matches the criteriaboolean(//UNH/DG_S009[@DE_0052 = "D" and @DE_0054 = "96A"]) * Check of a frame variable, e.g. set in the mapping with "SetTargetFrameVariable('IsSpecialCase', 'True')": IsTrue(GetFrameVariable('IsSpecialCase')) {{:images:sign_warning.png?nolink|}}**Note:** The input from this job step are documents (EntityObjects) that have already passed through the [[en:prozessdefinition:jobs:jobsteps:allgemein:entityloader|Loader]] . Therefore, the XPATH expression is applied directly to the message structure. {{:images:sign_warning.png?nolink|}}**Note:** See also [[en:kommunikation:nachrichten:start#auswertung_bzw_filterung_von_nachrichten_in_jobs|evaluation or filtering of messages in jobs]] ===== The following JobSteps are usually connected to the EntityIfCase ===== * [[en:prozessdefinition:jobs:jobsteps:allgemein:EventRouter]] * [[en:prozessdefinition:jobs:jobsteps:kommunikation:backend:backendobjecttransmitter]] * [[en:prozessdefinition:jobs:jobsteps:allgemein:EntityIfCase]] * [[en:prozessdefinition:jobs:jobsteps:allgemein:EntityMessageCreator]] * [[en:prozessdefinition:jobs:jobsteps:allgemein:EntityStatusSetter]] * [[en:prozessdefinition:jobs:jobsteps:allgemein:EntityTransformer]] * [[en:prozessdefinition:jobs:jobsteps:allgemein:ReportGenerator]] * [[en:prozessdefinition:jobs:jobsteps:allgemein:ReportMessageCreator]] * [[en:prozessdefinition:jobs:jobsteps:supplier:tradeitemselectordirectsql]]