Kernel::System::ProcessManagement::DB::Process::State
Process Management DB State backend
Don't use the constructor directly, use the ObjectManager instead:
my $ProcessStateObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::DB::Process::State');
get a State list
my $List = $StateObject->StateList( UserID => 123, ); Returns: $List = { 'S1' => 'Active', 'S2' => 'Inactive', 'S3' => 'FadeAway', }
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';
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.