Class CDIPrintOutCommand

  • All Implemented Interfaces:
    org.kie.api.executor.Command

    public class CDIPrintOutCommand
    extends Object
    implements org.kie.api.executor.Command
    Simple command to log the contextual data and return empty results. After attempting to get BeanManager and creating simple CDI bean based on given class name as parameter. Just for demo purpose.
    • Constructor Detail

      • CDIPrintOutCommand

        public CDIPrintOutCommand()
    • Method Detail

      • execute

        public org.kie.api.executor.ExecutionResults execute​(org.kie.api.executor.CommandContext ctx)
        Specified by:
        execute in interface org.kie.api.executor.Command
      • getParameter

        protected Object getParameter​(org.kie.api.executor.CommandContext commandContext,
                                      String parameterName)