Hi, in my workflow, I need to add information to certain redundant fields depending on the value of a field. I would like to know if there’s an easy way to do this using only one node that contains all the cases and the fields to fill in as JSON.
Something like this, for example:
{
“cases”: [
{
“match”: “PLANTING RISK (case 1)”,
“status_gpt”: “PLANTING RISK”,
“priorite”: “High”,
“actions”: “-Check the information in the TMS -Call the carrier and if there’s no answer, follow up by email”
},
{
“match”: “PLANTING RISK (case 2)”,
“status_gpt”: “PLANTING RISK”,
“priorite”: “High”,
“actions”: “-Check the information in the TMS -Call the carrier again and start looking for a solution”
},
{
“match”: “AWAITING CARRIER RESPONSE (case 1)”,
“status_gpt”: “AWAITING CARRIER RESPONSE”,
“priorite”: “Low”,
“actions”: “-Monitor and follow up with the carrier in 30 minutes if no reply -Mark as ‘Urgent’ in case of follow-up”
},
{
“match”: “AWAITING CARRIER RESPONSE (case 2)”,
“status_gpt”: “AWAITING CARRIER RESPONSE”,
“priorite”: “Medium”,
“actions”: “-Check the information in the TMS -Follow up with the carrier by email or via the TMS if site arrival is not confirmed in the TMS”
}
]
}
As of now, most of my switch cases look like this (or even bigger, with more than 8 states), and it would be much more maintainable if I could change everything in a single entry.
