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:- Second parameter for the process method will be mapped to a header parameter called "eventId".
- 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 Summary
ConstructorsConstructorDescriptionStmBodyTypeSelector(org.chenile.stm.impl.STMActionsInfoProvider stmActionsInfoProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.chenile.core.context.ChenileExchange exchange)
-
Constructor Details
-
StmBodyTypeSelector
public StmBodyTypeSelector(org.chenile.stm.impl.STMActionsInfoProvider stmActionsInfoProvider)
-
-
Method Details
-
execute
- Specified by:
executein interfaceorg.chenile.owiz.Command<org.chenile.core.context.ChenileExchange>- Throws:
Exception
-