class RuleServiceImpl implements RuleService {

	@Override
	public String invokeRule(String ruleId, List<Map<String, Object>> ruleOptionalParams) {
		Rule ruleDetails = ruleRepository.findById(ruleId).get();
		AWSLambda awsLambdaClient = amazonClient.getAWSLambdaClient(config.getRule().getLambda().getRegion());
		String invocationId = AdminUtils.getReferenceId();
		boolean invokeStatus = invokeRule(awsLambdaClient, ruleDetails, invocationId, ruleOptionalParams);
		if(invokeStatus) {
			return invocationId;
		} else {
			return null;
		}
	}

}