Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Latest commit

 

History

History
52 lines (42 loc) · 795 Bytes

syntax.md

File metadata and controls

52 lines (42 loc) · 795 Bytes

Workflow Action syntax

opcode param1 param2 ...

Grammar

/internal/app/workflow/action/grammar

Type

  • Integer
  • Float
  • String
  • Boolean
  • Message

Opcode

count : (any -> integer)
cron [string]
debug [bool]? : (nil -> bool)
dedupe [string]? : (any -> any)
echo [any] : (nil -> bool)
else
get [any] : (nil -> any)
if
json : (string -> any)
message : (any -> bool)
query [string:(css|json|regex)] [string] [string]? : (any -> any)
secret [string] : (nil -> any)
set [any]... : (nil -> any)
status [string:(http|tcp|dns|tls)] [string] : (nil -> bool)
task [integer] : (nil -> bool)
webhook [string] [string]?

Example

get "https://httpbin.org/get"
json
count
pdf
send "success"
get #1
dosomething "param1" "param2" "param3" 
send "success"