fixing validation
This commit is contained in:
parent
db238a9d44
commit
6736647f91
|
@ -18,7 +18,7 @@
|
||||||
"id" : "${workflow.input.client_id}",
|
"id" : "${workflow.input.client_id}",
|
||||||
"ctx" : "${workflow.input.context}",
|
"ctx" : "${workflow.input.context}",
|
||||||
"filter" : "${workflow.input.filter}",
|
"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=$.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'); 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[]')}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue