A low-code plug-in for defining combi variables in Provengo. These parameters are used to parametrize test and usage scenarios.
Variables defined via this plug-in are available to the rest of the model using the Combies library.
⚠️ NOTE: The Combies library is still experimental.
Usage
To Add New Combi File
Open command palette [command+shift+p] and type "create new combi file"
Use keyboard shortcut - [ctrl+9]
Right click on a file or folder in the explorer, then click on Create New Combi File in the popup-menu.
To Use a Combi Variable
Summon the Combies library
Use Combies.get(name) to get the combi object (where name is the name of the combi, as defined in the name field of the editor).
Example
Suppose we have a combi named "Breakfast" in spec/combies/food.combi. In order to start its value selection sequence, we can use the following code:
// summon the combies lib
// @provengo summon combies
bthread("main", function () {
// get the Breakfast combi
let breakfast = Combies.get("Breakfast");
// start breakfast's selection sequence
breakfast.doStart();
// wait for the sequence to complete
waitFor( breakfast.doneEvent);
// do more things.
});
Release Notes
1.0.0
Initial release of this plug-in. Support for defining multiple combi fields, field inter-dependencies, auto-starting, and field recordings.