diff --git a/templates/enable_workspace_clients_for_context.json.j2 b/templates/enable_workspace_clients_for_context.json.j2 index 3dc825f..6e0f2a9 100644 --- a/templates/enable_workspace_clients_for_context.json.j2 +++ b/templates/enable_workspace_clients_for_context.json.j2 @@ -18,7 +18,7 @@ "id" : "${workflow.input.client_id}", "ctx" : "${workflow.input.context}", "filter" : "${workflow.input.filter}", - "scriptExpression": "function e(v){ return (v == null || (v.trim && v.trim() === ''))} if(e($.ctx)) throw('Context must not be empty'); f=Java.from($.filter); if(e(f)) f = []; else if(typeof(f) === 'string') f=[f]; return { encoded_root_vo : encodeURI($.root_vo), filter : Java.to(f,'java.lang.String[]')}" + "scriptExpression": "function e(v){ return (v == null || (v.trim && v.trim() === ''))} if(e($.ctx)) throw('Context must not be empty'); if(e(f)) f = []; else if(typeof(f) === 'string') f=[f]; else f=Java.from($.filter); return { encoded_root_vo : encodeURI($.root_vo), filter : Java.to(f,'java.lang.String[]')}" } } ]