I have a scenario that starts with a webhook, then it has many modules. Most, if not all, of the modules require data from the previous step in order to do their thing.
It seems that I can run a single module at a time, but I can’t run the previous module, then use the output from the previous module to run the next. So, basically, I am having a really hard time testing my scenario.
In addition, I would like to just rerun the entire scenario using sample input data - how do I do that? I tried to use a create JSON module and create a separate entry point for the scenario, but it won’t let me set that module as the start point for the scenario.
All I really want to do is find good ways to test. Any suggestions as to how to test modules using the outputs of previous modules would help.
Good day, @NLSetech,
I’m envious that you’re testing a single scenario, because I’m building out the 4th generation of our automation and am struggling with full system testing.
In answering your question, one method you can use is to follow the initial webhook with a Parse JSON and a Set Multiple Variables module.
The trick here is that the newly added Set Multiple Variables module uses ifempty
to set the variables and all following modules reference them.
When you want to test, load the Parse JSON module with the data you want and then call the webhook without any parameters.
E.g., https://hook.eu1.make.celonis.com/rl7t6gog3kv3w5xj95gtpy05grwwgb71
vs. https://hook.eu1.make.celonis.com/rl7t6gog3kv3w5xj95gtpy05grwwgb71?v1=w-asdf&v2=w-1234&v3=w-qwerty
Because the incoming webhook doesn’t have any parameters, the Parse JSON data will get used instead.
The blueprint below demonstrates the method.
blueprint.json (8.8 KB)