Error Message states "Syntax error near [filter] after reading [] at line 2. Please refer to PQL documentation for available syntax.
Â
According to my understanding of the documentation, this should work.
Â
Thanks in advance.
Error Message states "Syntax error near [filter] after reading [] at line 2. Please refer to PQL documentation for available syntax.
Â
According to my understanding of the documentation, this should work.
Â
Thanks in advance.
Hi Erwan,
MATCH_PROCESS_REGEX matches the variants of a process based on a regular expression. The regular expression defines a pattern over the activities of the variant. It returns an INT value which is 1 if the variant matches the pattern or 0 if it does not match.
Â
Therefore, you need to use
FILTER MATCH_PROCESS_REGEX("_CEL_P2P_ACTIVITIES"."ACTIVITY_EN",'Release Purchase Order' >> (ANY)* >> 'Delete Purchase Order Item') = 1;
Â
to make It work
Â
Best,
Gabriel
Hi,
you could also use PROCESS EQUALS for less complex process path.
Â
FILTER PROCESS EQUALS 'Release Purchase Order' to ANY to 'Delete Purchase Order Item';
Â
Now, if the order does not matter, MATCH_ACTIVITIES flags cases with certain activities without taking the exact order of activities into account.Â
find more on Help resources
celonis.cloud/help/display/CIBC/PROCESS+EQUALS
celonis.cloud/help/display/CIBC/MATCH_PROCESS_REGEX
celonis.cloud/help/display/CIBC/MATCH_PROCESS
Â
Best,
Gabriel
Hi @erwan.bégocÂ
Â
The below syntax should work.
Â
FILTER MATCH_PROCESS_REGEX ( "_CEL_P2P_ACTIVITIES"."ACTIVITY_EN",'Release Purchase Order' >> (ANY)* >> 'Delete Purchase Order Item')Â = 1;
Â
You can also use other PQL function for the same.
Â
For eg:
Â
Â
PROCESS EQUALS matches the variants of a process based on simple expressions.Â
Â
The generic syntax for Process Equals is as below.
Â
FILTER PROCESS EQUALS 'A' to ANY to 'C';
Â
So for your use case A is Release Purchase Order' and C is 'Delete Purchase Order Item
Â
Â
Â
MATCH_PROCESS matches the variants of a process against a given pattern.
Similar functionality is provided by MATCH_PROCESS_REGEX.
MATCH_PROCESS uses Nodes and Edges to match the cases. Nodes consist either of a single activity or a list of activities. Edges describe how the nodes are linked together.
Â
Â
FILTER
  MATCH_PROCESS (
    "Activities"."ACTIVITY" ,
    NODE T 'A' ] as src ,
    NODE 3 'B' ] as trg
    CONNECTED BY
    DIRECT  src , trg ]
  )
  =
  1;
Â
So here  MATCH_PROCESS combined with a filter. The result are only cases in which one activity A is followed by activity B.
Â
So for your use case it is Release Purchase Order' followed by 'Delete Purchase Order Item
Â
Â
Hope it helps.
Â
Happy Learning!
Â
Hi,
Â
In case the order of activities is not important MATCH_ACTIVITIES is the best way to identify cases with the condition.
Â
Best,
Kevin
MATCH_ACTIVITIES does not respect the activity sequence so it needs to be either PROCESS EQUALS, MATCH_PROCESS or MATCH_PROCESS_REGEX
Thank you for all your answers!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.