Python scripting - Event rule callbacks

PostExecute

 

The callback PostExecute(CENPyOlpEventRuleOperator) is called when the kernel computes the events.  

 

The callback is defined in the %RULE_NAME%.py file that is located in the scripts folder of the plugin.

 

PostExecuteRules

 

[Example]

 

def PostExecute(reo):

    tpes = reo.FindTpElementsByType(EVENTPROCESS_INPROCESS)

    for x in tpes:

        reo.AddTpe(x)

 


PostExecuteRules_Ex

 


Previous
Page précédente
Chapter
Page principale du chapitre
Next
Page suivante