Package com.aquima.interactions.composer
Interface IComposerContext
- All Superinterfaces:
IEventChannel
,InferenceContext
,IProfile
,IProfileLifecycle
,Serializable
- All Known Implementing Classes:
ComposerContext
The composer context interface a specialization of the inference context interface, and is used during the composure
of containers and elements. The main addition to the inference context that this interface defines, is the ability to
request the
ContainerId
of the container which is actively composed.-
Method Summary
Modifier and TypeMethodDescriptionforContainerId
(String containerId) This method creates a child context of active composer context.forInstance
(EntityValue instance) This method creates a child context of active composer context, using this method the provided instance is used as the active instance in the underlying inference context.This method returns theContainerId
of the container which is being composed in this context.Methods inherited from interface com.aquima.interactions.foundation.events.IEventChannel
addEventListener, getSupportedEvents, removeEventListener
Methods inherited from interface com.aquima.interactions.rule.InferenceContext
getActiveInstance, getInferenceDetails
Methods inherited from interface com.aquima.interactions.profile.IProfile
commitTransaction, createInstance, createInstance, deleteInstance, getAllInstancesForEntity, getEntityDefinition, getInstance, getInstanceById, getInstanceByName, getSingletonInstance, getState, restore, rollbackTransaction, startTransaction
Methods inherited from interface com.aquima.interactions.profile.IProfileLifecycle
activate, passivate
-
Method Details
-
getContainerId
ContainerId getContainerId()This method returns theContainerId
of the container which is being composed in this context.- Returns:
- The container id.
-
forContainerId
This method creates a child context of active composer context. It uses the provided container id to create a newContainerId
as the container id of the child context.- Parameters:
containerId
- id of the container for which the child context is created.- Returns:
- The child context.
-
forInstance
This method creates a child context of active composer context, using this method the provided instance is used as the active instance in the underlying inference context. It uses the provided instance to create a newContainerId
as the container id of the child context.- Parameters:
instance
- instance for which the child context is created.- Returns:
- The child context.
-