act_lib 變數

act_lib 變數提供對「主動式相互關聯技術」中之檔案庫方法的存取權。

詳細資訊

act_lib 變數可以存取的方法視包含使用該變數之表示式的規則語言元素而定。請參閱表 1
表 1. act_lib 變數可存取的方法 (根據其包含表示式的內容)
表示式環境定義 IACTLibrary 方法 IExitableActionLibrary 方法 IActionLibrary 方法
<onActivation> 中的 <action> X    
<onDeactivation> 中的 <action> X    
<onDetection> 中的 <action> X X X
<onLoad> 中的 <action> X    
<onNextEvent> 中的 <action> X X X
<onTimeOut> 中的 <action> X   X
<onTimeWindowComplete> 中的 <action> X   X
<onUnload> 中的 <action> X    
<booleanThreshold> X    
<computedThreshold> X    
<computedValue> X    
<computeFunction> X    
<filteringPredicate> X    
<varInitializer> X    

編碼範例

下列程式碼將存取 act_lib 變數,以呼叫用來結束規則集的方法:
act_lib.exitRuleSet();

可存取的方法

IACTLibrary、IExitableActionLibrary 及 IActionLibrary 介面中定義了 act_lib 變數可以存取的方法,如表 2所示。
表 2. 具有相對應的方法及 Javadoc 方法說明位置的介面
介面 方法 Javadoc 方法說明的位置
IACTLibrary
  • trace
  • getVariable
  • getBooleanVariable
  • getShortVariable
  • getIntVariable
  • getLongVariable
  • getFloatVariable
  • getDoubleVariable
  • getStringVariable
  • setVariable
  • setBooleanVariable
  • setShortVariable
  • setIntVariable
  • setLongVariable
  • setFloatVariable
  • setDoubleVariable
  • setStringVariable
  • getExternalContext
com.ibm.correlation.IACTLibrary
IActionLibrary
  • forward
  • forwardOnCompletion
  • activate
  • deactivate

IACTLibrary 介面中定義的方法也可以用於 IActionLibrary 介面。

com.ibm.correlation.IActionLibrary
IExitableActionLibrary
  • exitRuleSet
  • exitRuleBlock

IACTLibrary 及 IActionLibrary 介面中定義的方法也可以用於 IExitableActionLibrary 介面。

com.ibm.correlation.IExitableActionLibrary