Package org.drools.core.rule
Class AsyncSend
- java.lang.Object
-
- org.drools.core.rule.ConditionalElement
-
- org.drools.core.rule.AsyncSend
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Cloneable
,PatternSource
,RuleConditionElement
,RuleComponent
public class AsyncSend extends ConditionalElement implements PatternSource
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AsyncSend(Pattern resultPattern, String messageId, DataProvider dataProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionalElement
clone()
Returns a clone from itselfDataProvider
getDataProvider()
Map<String,Declaration>
getInnerDeclarations()
Returns a Map of declarations that are visible inside this conditional elementString
getMessageId()
List<? extends RuleConditionElement>
getNestedElements()
Returs a list of RuleConditionElement's that are nested inside the current elementMap<String,Declaration>
getOuterDeclarations()
Returns a Map of declarations that are visible outside this conditional element.Class<?>
getResultClass()
Pattern
getResultPattern()
boolean
isPatternScopeDelimiter()
Returns true in case this RuleConditionElement delimits a pattern visibility scope.void
readExternal(ObjectInput in)
boolean
requiresLeftActivation()
Declaration
resolveDeclaration(String identifier)
Resolves the given identifier in the current scope and returns the Declaration object for the declaration.void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
AsyncSend
public AsyncSend(Pattern resultPattern, String messageId, DataProvider dataProvider)
-
-
Method Detail
-
getMessageId
public String getMessageId()
-
getDataProvider
public DataProvider getDataProvider()
-
getInnerDeclarations
public Map<String,Declaration> getInnerDeclarations()
Description copied from interface:RuleConditionElement
Returns a Map of declarations that are visible inside this conditional element- Specified by:
getInnerDeclarations
in interfaceRuleConditionElement
- Returns:
-
getOuterDeclarations
public Map<String,Declaration> getOuterDeclarations()
Description copied from interface:RuleConditionElement
Returns a Map of declarations that are visible outside this conditional element.- Specified by:
getOuterDeclarations
in interfaceRuleConditionElement
- Returns:
-
resolveDeclaration
public Declaration resolveDeclaration(String identifier)
Description copied from interface:RuleConditionElement
Resolves the given identifier in the current scope and returns the Declaration object for the declaration. Returns null if identifier can not be resolved.- Specified by:
resolveDeclaration
in interfaceRuleConditionElement
- Returns:
-
clone
public ConditionalElement clone()
Description copied from interface:RuleConditionElement
Returns a clone from itself- Specified by:
clone
in interfaceRuleConditionElement
- Specified by:
clone
in classConditionalElement
- Returns:
-
getNestedElements
public List<? extends RuleConditionElement> getNestedElements()
Description copied from interface:RuleConditionElement
Returs a list of RuleConditionElement's that are nested inside the current element- Specified by:
getNestedElements
in interfaceRuleConditionElement
- Returns:
-
isPatternScopeDelimiter
public boolean isPatternScopeDelimiter()
Description copied from interface:RuleConditionElement
Returns true in case this RuleConditionElement delimits a pattern visibility scope. For instance, AND CE is not a scope delimiter, while NOT CE is a scope delimiter- Specified by:
isPatternScopeDelimiter
in interfaceRuleConditionElement
- Returns:
-
requiresLeftActivation
public boolean requiresLeftActivation()
- Specified by:
requiresLeftActivation
in interfacePatternSource
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
getResultPattern
public Pattern getResultPattern()
-
getResultClass
public Class<?> getResultClass()
-
-