_replyToOriginator = config.getBooleanAttribute(Constants.REPLY_TO_ORIGINATOR_TAG, false) ;
}
public void setJBPMContextParameters(Message message)
{
Body body = message.getBody();
if (null!=_keyPath)
body.add(Constants.KEYPATH, _keyPath);
if (null!=_actor)
body.add(Constants.ACTOR_ID ,_actor);
if (null!=_processName)
body.add(Constants.PROCESS_DEFINITION_NAME ,_processName);
if (null!=_processId)
body.add(Constants.PROCESS_DEFINITION_ID ,_processId);
if (null!=_transitionName)
body.add(Constants.TRANSITION_NAME, _transitionName);
Map<String,Object> variableMap = _mapper.mapFromEsbMessageToJBpmMap(message,_esbToBpm);
if (null!=variableMap)
body.add(Constants.VARIABLE_VALUES, variableMap);
if (_replyToOriginator) {
final Call call = message.getHeader().getCall() ;
setEPR(body, Constants.REPLY_TO, getEPR(call.getReplyTo())) ;
setEPR(body, Constants.FAULT_TO, getEPR(call.getFaultTo())) ;