Kernel::GenericInterface::Event::Handler - GenericInterface event handler
This event handler intercepts all system events and fires connected GenericInterface invokers.
returns a serialized hash/array of a given hash/array my $ConditionCheck = $Self->_SerializeConfig( Data => \%OldHash, SHash => \%NewHash, ); Modifies NewHash (SHash): my %OldHash = ( Config => { A => 1, B => 2, C => 3, }, Config2 => 1 ); my %NewHash = ( Config_A => 1, Config_B => 1, Config_C => 1, Config2 => 1, );
Checks if one or more conditions are true my $ConditionCheck = $Self->_ConditionCheck( ConditionLinking => 'and', Condition => { 1 => { Type => 'and', Fields => { DynamicField_Make => [ '2' ], DynamicField_VWModel => { Type => 'String', Match => 'Golf', }, DynamicField_A => { Type => 'Hash', Match => { Value => 1, }, }, DynamicField_B => { Type => 'Regexp', Match => qr{ [\n\r\f] }xms }, DynamicField_C => { Type => 'Module', Match => 'Kernel::GenericInterface::Event::Validation::MyModule', }, Queue => { Type => 'Array', Match => [ 'Raw' ], }, # ... }, }, # ... }, Data => { Queue => 'Raw', DynamicField1 => 'Value', Subject => 'Testsubject', # ... }, ); Returns: $CheckResult = 1; # 1 = process with Scheduler or Requester # 0 = stop processing
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.