Class ExecutionSchema


  • public class ExecutionSchema
    extends RuleEngine
    An execution schema is a special rule engine and a facade for accessing the EVM. In addition to the RuleEngine, it uses a scheduler for firing activations.
    • Constructor Detail

      • ExecutionSchema

        protected ExecutionSchema​(Scheduler scheduler)
        Creates a facade for the EVM represented by the given scheduler
        Parameters:
        scheduler -
    • Method Detail

      • create

        public static ExecutionSchema create​(Scheduler scheduler)
        Creates a facede for the EVM represented by the given scheduler.
        Parameters:
        scheduler -
        Returns:
        the created facade
      • dispose

        public void dispose()
        Disposes of the scheduler.
        Overrides:
        dispose in class RuleEngine
      • getScheduler

        protected Scheduler getScheduler()
        Returns:
        the scheduler
      • getContext

        public Context getContext()
        Returns:
        the context of the executor
      • startUnscheduledExecution

        public void startUnscheduledExecution()
        Starts the executor without waiting for a scheduling event. Can be used for executing enabled activations of added rules without waiting for or otherwise forcing a scheduling event.