Kernel::GenericInterface::Event::Validation::ValidateDemo - Demo for condition validation module
All ValidateDemo functions.
create an object. Do not use it directly, instead use:
use Kernel::System::ObjectManager; local $Kernel::OM = Kernel::System::ObjectManager->new(); my $ValidateDemoObject = $Kernel::OM->Get('Kernel::GenericInterface::Event::Validation::ValidateDemo');
Validate Data my $ValidateResult = $ValidateModuleObject->Validate( Data => { Queue => 'Postmaster', # ... }, ); Returns: $ValidateResult = 1; # or undef, only returns 1 if Queue is 'Postmaster' );
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.