try with lambda

This commit is contained in:
Marco Lettere 2021-06-04 11:33:15 +02:00
parent 6561d96531
commit 899621e6a3
2 changed files with 4 additions and 3 deletions

View File

@ -62,7 +62,7 @@
"type": "LAMBDA", "type": "LAMBDA",
"inputParameters": { "inputParameters": {
"role": "${retrieve_member_role.output.body}", "role": "${retrieve_member_role.output.body}",
"scriptExpression": "return Java.to([$.role], 'java.lang.Object[]')}" "scriptExpression": "return Java.to([$.role], 'java.lang.Object[]')"
} }
}, },
{ {
@ -77,7 +77,7 @@
"Content-type" : "application/json", "Content-type" : "application/json",
"Accept":"application/json" "Accept":"application/json"
}, },
"body" : "${to_array.output.result}" "body" : "${to_role_array.output.result}"
} }
} }
] ]

View File

@ -57,7 +57,8 @@
"headers" : { "headers" : {
"Authorization" : "Bearer ${authorize.output.body.access_token}", "Authorization" : "Bearer ${authorize.output.body.access_token}",
"Content-Type" : "application/json" "Content-Type" : "application/json"
} },
"expect" : [200,204,201,409]
} }
}, },
{ {