Add a datastore from a file
What You Will Learn
This guide will explain how a datastore can be added from a file.
For these chapters it is recommended to have the configuration setting: Do a data flow analysis before starting engine? enabled.
|
1. Prerequisites
-
Have about 10 minutes
-
Have an installed version of the PAK Workflow Executor
-
Have an installed version of the PAK Editor
-
Know how to open a Workflow
-
Have a local workflow
2. What is a datastore file?
There is no datastore only file. However, whenever a workflow is created by the PAK Editor a .modelmeta
file is created, containing meta information about the specific workflow (including the datastore).
Going forward, the .modelmeta file will be referenced as just modelmeta!
|
A modelmeta might have an empty datastore. |
2.1. How do I create a datastore file?
Whenever you create and save a workflow in the PAK Editor you also automatically create a modelmeta. Within this file there is a section about every datastore key you created.
To add values to the datastore you can simply do it in this tab:
1 | To enter the datastore tab you can click on the Datastore tab. |
2 | You can add key value pairs manually by clicking on the + or you can load a .json file that contains a map (Example below). |
3 | A list of all keys added. |
4 | A list of all values added. |
{
"key1": "value1",
"key2": "value2",
[...]
"keyX": "valueX"
}
3. How do I add a datastore file?
Now as you have your workflow and modelmeta file, you can simply open the workflow.
1 | Here you see the name and the path of the opened workflow. |
2 | Here you see the path of the by default opened modelmeta. It opens a modelmeta saved under the workflows directory and name by default. |
3 | If you have the configuration setting: Do a data flow analysis before starting engine? enabled, you will see the fields prefilled with values provided by the modelmeta datastore. To see optional fields you also have to enable the setting Enable editing of optional values after workflow is opened? . |
4 | You can clear all fields by pressing the Clear (initial) data button. |
5 | You can open another modelmeta via a file chooser by pressing the Load Datastore (Optional) button. Alternatively you can also drag and drop a modelmeta into the executor window once a workflow is opened or drop a workflow together with a desired modelmeta into the executor. |
You can open any modelmeta file even if they were not created together with the opened workflow. The executor then tries to fill in any fields that the datastore of the modelmeta provides. |
Once a modelmeta is loaded, you should see the values of the file loaded into their matching field.
Any changes done to the values in the executor will not be saved to the modelmeta! |