====== GetMessageAsSelectionBase ======
Returns for the current document the message as Input- and OutputMessage in the SelectionBase structure (s. [[en:kommunikation:nachrichten:selectionbase_pfade|]]). Use this mapping function to test the [[en:prozessdefinition:jobs:jobsteps:allgemein:messageselector|]] function.
{{:images:sign_warning.png?nolink|}}**Note:** This function should be used only for testing [[en:prozessdefinition:jobs:jobsteps:allgemein:messageselector|]].
==== Syntax/Exampels ====
GetMessageAsSelectionBase(['input'|'output'])
in/output (optional): If the parameter start with "in" or "out" only the InputMessages e.g. OutputMessages are set.
==== Exampels ====
GetMessageAsSelectionBase()/SelectionBase/InputMessages[contains(@Subject,'desadv')]
GetMessageAsSelectionBase()/SelectionBase/InputMessages[ count(Attachments) = 0]
GetMessageAsSelectionBase('input')/SelectionBase/InputMessages[UCase(Documents/@DocType) = 'DESADV']
GetMessageAsSelectionBase('in')/SelectionBase/InputMessages[UCase(Documents/@DocType) = 'DESADV']/Documents/@DocNumber
GetMessageAsSelectionBase('output')/SelectionBase/OutputMessages[Match(Documents/EntityType/@Name, '.*Desadv.*D96') ]
GetMessageAsSelectionBase('out')/SelectionBase/OutputMessages [Match(Documents/EntityType/@Name, '.*Desadv.*D96') ]/Documents/@DocNumber
GetMessageAsSelectionBase()/SelectionBase/InputMessages[contains(Attachments/@Filename,'INVREC-')]