-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hey team! This library looks awesome, thanks for your good work!!!
Lately I'm researching for tools that helps me configure and organize workflows in a easy and accesible manner.
However, I was trying to use the playground for a little bit of experimentation and didn't get it to work.
Describe the issue
I tried to use one of the usecases described in the source code but when I click on execute, i receive a template error message
To Reproduce
Used this yaml workflow
steps:
- name: unsupported
condition: $not(op in ["+", "-", "*", "/"])
template: |
$doThrow("unsupported operation")
- name: add
description: Do addition
condition: op = "+"
template: |
( a + b )
- name: subtract
description: Do subtraction
condition: op = "-"
template: |
( a - b )
- name: multiply
description: Do multiplication
condition: op = "*"
template: |
( a * b )
- name: divide
description: Do division
condition: op = "/"
template: |
(
$assert( b != 0, "division by zero is not allowed");
a / b
)with this input data:
{
"a": 10,
"b": 2,
"op": "+"
}and this bindings:
const bindings = {
"description": "Enter your bindings here"
};but i'm receiving this error output:
{
"error": "op is not defined"
}So, i think the template isn't recognizing my input json
Expected behavior
I think the output should look something like this ¿? I'm not really sure
{
"outputs": {
"add": 12
}
}
Screenshots
If applicable, add screenshots to help explain your problem.
Required information (please complete the following information):
- Package version: The one that is using the playground https://transformers-workflow-engine.rudderstack.com/#/workflow-engine
Additional context
Add any other context about the problem here.