Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
polterguy committed Dec 27, 2023
1 parent dd90580 commit 9357655
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions backend/files/misc/workflows/actions/http/http-delete.hl
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,25 @@ if
.:&

// Creating HTTP invocation.
http.get:x:@.arguments/*/url
http.delete:x:@.arguments/*/url
convert:bool:true

// Verifying above invocation succeeded.
if
and
mte:x:@http.get
mte:x:@http.delete
.:int:200
lt:x:@http.get
lt:x:@http.delete
.:int:300
.lambda

// Returning result to caller.
return-nodes:x:@http.get/content/*
return-nodes:x:@http.delete/content/*

else

// Oops ...!!
lambda2hyper:x:@http.get
lambda2hyper:x:@http.delete
log.error:HTTP GET invocation failed
response:x:@lambda2hyper
throw:HTTP GET invocation failed
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

// Returns the result of all actions at root
// Returns the result of all actions.
for-each:x:../*/execute
set-name:x:./0/-/*/*
get-value:x:@.dp/#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

// Returns the result of your last action
// Returns the result of your last action.
return-nodes:x:@execute/*

0 comments on commit 9357655

Please sign in to comment.