Class StmBodyTypeSelector

java.lang.Object
org.chenile.workflow.service.stmcmds.StmBodyTypeSelector
All Implemented Interfaces:
org.chenile.owiz.Command<org.chenile.core.context.ChenileExchange>

public class StmBodyTypeSelector extends Object implements org.chenile.owiz.Command<org.chenile.core.context.ChenileExchange>
Selects the body type of the ChenileExchange based on the event Id passed This should be used as the body type selector for the StateEntityServiceImpl.process(org.chenile.stm.StateEntity, String, Object) method. Will work with all subclasses. Assumptions:
  1. Second parameter for the process method will be mapped to a header parameter called "eventId".
  2. The body type has been defined in the stm in a states/event-information section. eventId must be mapped to meta attribute called "meta-bodyType"

Author:
Raja Shankar Kolluru
  • Constructor Details

    • StmBodyTypeSelector

      public StmBodyTypeSelector(org.chenile.stm.impl.STMActionsInfoProvider stmActionsInfoProvider)
  • Method Details

    • execute

      public void execute(org.chenile.core.context.ChenileExchange exchange) throws Exception
      Specified by:
      execute in interface org.chenile.owiz.Command<org.chenile.core.context.ChenileExchange>
      Throws:
      Exception