You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
Hi folks, I did a little complex menu for my automation, with many conditional parameters and when I choose an alternative option, I got this error:
What happened:
Error: config.json: conditional variable rit_pizza_option not found
What you expected to happen:
Should continue alternative menu without crash
How to reproduce it (as minimally and precisely as possible):
I'm sharing with u my config.json and a mind map with menu flow, and options to get the crash.
For details explanation, when Bring me a Pizza is selected, it works like a charm, because the second menu option related to favorite pizza and address have "rit_pizza_option" variable filled.
But when Give me a Drink is selected, even with all variables with default value it doens't work.
Here my config.json:
{
"dockerImageBuilder": "ritclizup/rit-kotlin-jdk8-builder",
"inputs": [
{
"label": "Wellcome to Pizza Planet :D ",
"name": "rit_menu_option",
"default": "Bring me a Pizza",
"required": false,
"items": [
"Bring me a Pizza",
"Give me a Drink"
],
"type": "text"
},
{
"cache": {
"active": true,
"qty": 15,
"newLabel": "Enter a new name:"
},
"condition": {
"variable": "rit_menu_option",
"operator": "==",
"value": "Bring me a Pizza"
},
"label": "Enter your name: ",
"name": "rit_pizza_client",
"default": "Yan",
"required": false,
"type": "text"
},
{
"condition": {
"variable": "rit_menu_option",
"operator": "==",
"value": "Bring me a Pizza"
},
"label": "Choose one of the options: ",
"name": "rit_pizza_option",
"default": "Enter an address",
"items": [
"Enter an address",
"Define favorite pizza"
],
"required": false,
"type": "text"
},
{
"condition": {
"variable": "rit_pizza_option",
"operator": "==",
"value": "Define favorite pizza"
},
"label": "Tell us the pizza that you love: ",
"name": "rit_pizza_favorite",
"default": "Calabresa",
"required": false,
"type": "text"
},
{
"condition": {
"variable": "rit_menu_option",
"operator": "==",
"value": "Give me a Drink"
},
"label": "Pick your drink ",
"name": "rit_drink_option",
"items": [
"Coke",
"Orange Juice"
],
"default": "Coke",
"required": false,
"type": "text"
}
]
}
What I've done to solve this problem:
Tried to set a default value for every variable in config.json
Environment:
Ritchie version (use rit --version): 2.9.1
Operating System: Ubuntu
The text was updated successfully, but these errors were encountered:
@GuillaumeFalourd yes, I don't know if I used default parameter has need to be, but if you see all variables in this config.json have default value and returned the same error.
Hi folks, I did a little complex menu for my automation, with many conditional parameters and when I choose an alternative option, I got this error:
What happened:
What you expected to happen:
Should continue alternative menu without crash
How to reproduce it (as minimally and precisely as possible):
I'm sharing with u my
config.json
and a mind map with menu flow, and options to get the crash.For details explanation, when Bring me a Pizza is selected, it works like a charm, because the second menu option related to favorite pizza and address have "rit_pizza_option" variable filled.
But when Give me a Drink is selected, even with all variables with default value it doens't work.
Here my
config.json
:What I've done to solve this problem:
Tried to set a default value for every variable in config.json
Environment:
rit --version
): 2.9.1The text was updated successfully, but these errors were encountered: