Kernel::System::ITSMChange::ITSMCondition::Expression - condition expression lib
All functions for condition expressions in ITSMChangeManagement.
ExpressionAdd()
Add a new condition expression.
my $ExpressionID = $ConditionObject->ExpressionAdd(
ConditionID => 123,
ObjectID => 234,
AttributeID => 345,
OperatorID => 456,
Selector => 1234,
CompareValue => 'rejected',
UserID => 1,
);
ExpressionUpdate()
Update a condition expression.
my $Success = $ConditionObject->ExpressionUpdate(
ExpressionID => 1234,
ObjectID => 234, # (optional)
AttributeID => 345, # (optional)
OperatorID => 456, # (optional)
Selector => 1234, # (optional)
CompareValue => 'rejected', # (optional)
UserID => 1,
);
ExpressionGet()
Get a condition expression for a given expression id. Returns a hash reference of the expression data.
my $ConditionExpressionRef = $ConditionObject->ExpressionGet(
ExpressionID => 1234,
UserID => 1,
);
The returned hash reference contains following elements:
$ConditionExpression{ExpressionID}
$ConditionExpression{ConditionID}
$ConditionExpression{ObjectID}
$ConditionExpression{AttributeID}
$ConditionExpression{OperatorID}
$ConditionExpression{Selector}
$ConditionExpression{CompareValue}
ExpressionList()
Returns a list of all condition expression ids for a given ConditionID as array reference.
my $ConditionExpressionIDsRef = $ConditionObject->ExpressionList(
ConditionID => 1234,
UserID => 1,
);
ExpressionDelete()
Deletes a condition expression.
my $Success = $ConditionObject->ExpressionDelete(
ExpressionID => 123,
UserID => 1,
);
ExpressionDeleteAll()
Deletes all condition expressions for a given condition id.
my $Success = $ConditionObject->ExpressionDeleteAll(
ConditionID => 123,
UserID => 1,
);
ExpressionMatch()
Returns the boolean value of an expression.
my $Match = $ConditionObject->ExpressionMatch(
ExpressionID => 123,
AttributesChanged => { ITSMChange => [ ChangeTitle, ChangeDescription ] }, # (optional)
UserID => 1,
);
_ExpressionMatchInit()
Returns object, attribute and operator of a given expression.
my $ExpressionData = $ConditionObject->_ExpressionMatchInit(
Expression => $ExpressionRef,
UserID => 1,
);
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.
Hey! The above document had some coding errors, which are explained below:
Around line 145:
=cut found outside a pod block. Skipping to next block.