
################
TicketServiceSet
################


****
NAME
****


Kernel::System::ProcessManagement::TransitionAction::TicketServiceSet - A module to set the ticket Service


***********
DESCRIPTION
***********


All TicketServiceSet functions.


****************
PUBLIC INTERFACE
****************


new()
=====


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


.. code-block:: perl

     my $TicketServiceSetObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::TransitionAction::TicketServiceSet');



Run()
=====


Runs TransitionAction TicketServiceSet.


.. code-block:: perl

     my $Success = $TicketServiceSetActionObject->Run(
         UserID                   => 123,
 
         # Ticket contains the result of TicketGet including dynamic fields
         Ticket                   => \%Ticket,   # required
         ProcessEntityID          => 'P123',
         ActivityEntityID         => 'A123',
         TransitionEntityID       => 'T123',
         TransitionActionEntityID => 'TA123',
 
         # Config is the hash stored in a Process::TransitionAction's config key
         Config                   => {
             Service => 'MyService::Subservice',
             # or
             ServiceID => 123,
             UserID    => 123,                   # optional, to override the UserID from the logged user
         }
     );


Returns:


.. code-block:: perl

     my $Success = 1; # 0



_CheckService()
===============


checks if a service is assigned to a customer user


.. code-block:: perl

     my $Success = _CheckService(
         UserLogin => 'some user',
         ServiceID => 123,
     );
 
     Returns:
 
     $Success = 1;       # or undef





