Class StmBodyTypeSelector

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

public class StmBodyTypeSelector extends Object implements Command<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