State#

NAME#

Kernel::System::ProcessManagement::DB::Process::State

DESCRIPTION#

Process Management DB State backend

PUBLIC INTERFACE#

new()#

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

my $ProcessStateObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::DB::Process::State');

StateList()#

get a State list

my $List = $StateObject->StateList(
    UserID => 123,
);

Returns:

$List = {
    'S1' => 'Active',
    'S2' => 'Inactive',
    'S3' => 'FadeAway',
}

StateLookup()#

get State name or State EntityID

my $Name = $StateObject->StateLookup(
    EntityID => 'S1',
    UserID   => 123,
);

Returns:
$Name = 'Active';

my $EntityID = $StateObject->StateLookup(
    Name     => 'Active',
    UserID   => 123,
);

Returns:
$EntityID = 'S1';