
#####
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:


.. code-block:: perl

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



StateList()
===========


get a State list


.. code-block:: perl

     my $List = $StateObject->StateList(
         UserID => 123,
     );
 
     Returns:
 
     $List = {
         'S1' => 'Active',
         'S2' => 'Inactive',
         'S3' => 'FadeAway',
     }



StateLookup()
=============


get State name or State EntityID

EntityID:


.. code-block:: perl

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


Returns:


.. code-block:: perl

     $Name = 'Active';


Name:


.. code-block:: perl

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


Returns:


.. code-block:: perl

     $EntityID = 'S1';





