
#######
LinkAdd
#######


****
NAME
****


Kernel::System::ProcessManagement::TransitionAction::LinkAdd - A module to create a link between to objects


********
SYNOPSIS
********


All LinkAdd functions.


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


new()
=====


create an object. Do not use it directly, instead use:


.. code-block:: perl

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



Run()
=====


Runs TransitionAction LinkAdd.


.. code-block:: perl

     my $Success = $LinkAddActionObject->Run(
         UserID                   => 123,
         Ticket                   => \%Ticket,   # required
         ProcessEntityID          => 'P123',
         ActivityEntityID         => 'A123',
         TransitionEntityID       => 'T123',
         TransitionActionEntityID => 'TA123',
         Config                   => {
             SourceObject => 'Ticket',             # (required) Source object
             SourceKey    => '321',                # (required) Source ID
             TargetObject => 'FAQ',                # (required) Target object
             TargetKey    => '5',                  # (required) Target ID
             Type         => 'ParentChild',        # (required) Link type
             State        => 'Valid',              # (required) State of the link
             UserID       => 1,                    # (optional) UserID
         }
     );


Returns:


.. code-block:: perl

     my $Success = 1; # 0




