GreaterThan#

NAME#

Kernel::System::ProcessManagement::TransitionValidation::GreaterThan - GreaterThan for Transition Validation Module

DESCRIPTION#

All GreaterThan functions.

PUBLIC INTERFACE#

new()#

Don’t use the constructor directly, use the ObjectManager instead:

my $TransitionValidationObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::TransitionValidation::GreaterThan');

Validate()#

Validate Data

my $Match = $ValidateModuleObject->Validate(
    Data => {
        # TicketData
        TicketID          => 1,
        DynamicField_Make => [
           'Test1',
           'Test2',
           'Test3'
        ]
        # [...]
    },
    FieldName    => 'DynamicField_Make',
    'Transition' => {
        'Name'      => 'Transition 2',
        'Condition' => {
            'Type'             => 'and',
            'ConditionLinking' => 'and',
            'Condition 1'      => {
                'Fields' => {
                    'DynamicField_Make' => $VAR1->{'Condition'}
                }
            }
        }
    },
    TransitionName     => 'Transition 2',
    TransitionEntityID => 'T1903007681700000',

    Condition          => {
        Match => 'Test4',
        Type  => 'GreaterThan'
    },
    ConditionName    => 'Condition 1',
    ConditionType    => 'and',
    ConditionLinking => 'and'
);

Returns:

$ValidateResult = 1;        # or undef, only returns 1 if Queue is 'Raw'