private void validateScriptExpression(
                String expression, Map<String, Object> inputParameters) {
            try {
                Object returnValue = ScriptEvaluator.eval(expression, inputParameters);
            } catch (ScriptException e) {
                throw new IllegalArgumentException(
                        String.format("Expression is not well formatted: %s", e.getMessage()));
            }
        }
This constraint class validates following things. 1. Correct parameters are set depending on task
type.
core/src/main/java/com/netflix/conductor/validations/WorkflowTaskTypeConstraint.java