Skip to content

Commit

Permalink
Allowing JSON/YAML bulk actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Nov 30, 2016
1 parent 8491342 commit d401d2c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -110,7 +110,7 @@ private void startPerformed(AjaxRequestTarget target) {

ScriptingExpressionType expression = null;
try {
Object parsed = getPrismContext().parserFor(bulkActionDto.getScript()).xml().parseRealValue();
Object parsed = getPrismContext().parserFor(bulkActionDto.getScript()).parseRealValue();
if (parsed == null) {
result.recordFatalError("No bulk action object was provided.");
}
Expand All @@ -120,7 +120,7 @@ private void startPerformed(AjaxRequestTarget target) {
if (parsed instanceof ScriptingExpressionType) {
expression = (ScriptingExpressionType) parsed;
} else {
result.recordFatalError("Provided XML text is not a bulk action object. An instance of {scripting-3}ScriptingExpressionType is expected; you have provided " + parsed.getClass() + " instead.");
result.recordFatalError("Provided text is not a bulk action object. An instance of {scripting-3}ScriptingExpressionType is expected; you have provided " + parsed.getClass() + " instead.");
}
} catch (SchemaException|RuntimeException e) {
result.recordFatalError("Couldn't parse bulk action object", e);
Expand Down

0 comments on commit d401d2c

Please sign in to comment.