PatternResult(pattern_id);
pattern_id
You can use PatternResult to check for a pattern in a Message or in a block. Only applicable to PageIN.The PatternResult function must be invoked within a function in a Rule in a PageIN Event. You can invoke a function in the function file using the syntax func=funcname.
1 0 If you are checking for a pattern which is in a Message, enter a Rule for the Message in the PageIN Event://Invoke a function within a rulefunc=patterncheck()//patterncheck is a custom function in the function file//In function filefunc patterncheck(
{
$result = patternresult ("id_invoice");
log(9, "Pattern match for id_invoice = " + $result);
//returns 1 if pattern is matched else 0
$result = patternresult ("id_article");
log (9, "Pattern match for id_article = " + $result);
}
OpenText StreamServe 5.6 | Updated: 2013-03-01 |