Package org.kie.api.runtime.rule
Interface PropagationContext
- 
 public interface PropagationContext
- 
- 
Field SummaryFields Modifier and Type Field Description static intDELETIONstatic intEXPIRATIONstatic intINSERTIONstatic intMODIFICATIONstatic intRULE_ADDITIONstatic intRULE_REMOVALstatic String[]typeDescr
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description FactHandlegetFactHandle()longgetPropagationNumber()RulegetRule()The rule that caused the working memory action that created this PropagationContext.intgetType()The PropagationContextType, numbers may change between Drools versions.
 
- 
- 
- 
Field Detail- 
INSERTIONstatic final int INSERTION - See Also:
- Constant Field Values
 
 - 
DELETIONstatic final int DELETION - See Also:
- Constant Field Values
 
 - 
MODIFICATIONstatic final int MODIFICATION - See Also:
- Constant Field Values
 
 - 
RULE_ADDITIONstatic final int RULE_ADDITION - See Also:
- Constant Field Values
 
 - 
RULE_REMOVALstatic final int RULE_REMOVAL - See Also:
- Constant Field Values
 
 - 
EXPIRATIONstatic final int EXPIRATION - See Also:
- Constant Field Values
 
 - 
typeDescrstatic final String[] typeDescr 
 
- 
 - 
Method Detail- 
getPropagationNumberlong getPropagationNumber() 
 - 
getRuleRule getRule() The rule that caused the working memory action that created this PropagationContext. If this working memory action was done from java this is null.- Returns:
- rule that caused the working memory action
 
 - 
getFactHandleFactHandle getFactHandle() - Returns:
- fact handle that was inserted, updated or retracted that created the PropagationContext
 
 - 
getTypeint getType() The PropagationContextType, numbers may change between Drools versions. Or we may eventually switch this to an enum. INSERTION = 0; DELETION = 1; MODIFICATION = 2; RULE_ADDITION = 3; RULE_REMOVAL = 4; EXPIRATION = 5;- Returns:
- type of the propagation context
 
 
- 
 
-