Kernel::System::ITSMChange::ITSMCondition::Action - condition action lib
All functions for condition actions in ITSMChangeManagement.
ActionAdd()
Add a new condition action.
my $ActionID = $ConditionObject->ActionAdd(
ConditionID => 123,
ActionNumber => 5,
ObjectID => 234,
AttributeID => 345,
OperatorID => 456,
Selector => 1234,
ActionValue => 'rejected',
UserID => 1,
);
ActionUpdate()
Update a condition action.
my $Success = $ConditionObject->ActionUpdate(
ActionID => 1234,
ActionNumber => 1, # (optional)
ObjectID => 234, # (optional)
AttributeID => 345, # (optional)
OperatorID => 456, # (optional)
Selector => 1234', # (optional)
ActionValue => 'rejected', # (optional)
UserID => 1,
);
ActionGet()
Get a condition action for a given action id. Returns a hash reference of the action data.
my $ConditionActionRef = $ConditionObject->ActionGet(
ActionID => 1234,
UserID => 1,
);
The returned hash reference contains following elements:
$ConditionAction{ActionID}
$ConditionAction{ConditionID}
$ConditionAction{ActionNumber}
$ConditionAction{ObjectID}
$ConditionAction{AttributeID}
$ConditionAction{OperatorID}
$ConditionAction{Selector}
$ConditionAction{ActionValue}
ActionList()
Returns a sorted list of all condition action ids for a given ConditionID as array reference.
my $ConditionActionIDsRef = $ConditionObject->ActionList(
ConditionID => 1234,
UserID => 1,
);
ActionDelete()
Deletes a condition action.
my $Success = $ConditionObject->ActionDelete(
ActionID => 123,
UserID => 1,
);
ActionDeleteAll()
Deletes all condition actions for a given condition id.
my $Success = $ConditionObject->ActionDeleteAll(
ConditionID => 123,
UserID => 1,
);
ActionExecute()
Returns the success value of the execution of an action.
my $Success = $ConditionObject->ActionExecute(
ActionID => 123,
UserID => 1,
);
_ActionExecuteInit()
Returns object, attribute and operator of a given action.
my $ActionData = $ConditionObject->_ActionExecuteInit(
Action => $ActionRef,
UserID => 1,
);
_CreateNewActionNumber()
Create a new unused action number for the given condition. The highest current action number for the given condition is looked up and incremented by one.
my $ActionNumber = $ConditionObject->_CreateNewActionNumber(
ConditionID => 123,
);
This software is part of the OTRS project (http://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (AGPL). If you did not receive this file, see http://www.gnu.org/licenses/agpl.txt.