1. Summary

Both commands let the user choose from the local file system, ChooseFile is used to look for files, ChooseDirectory for directories respectively.

Both commands can only be used inside the Workflow Executor

2. Examples

Figure 1. The Command

Due to simplicity, the title input parameter will be left empty for the examples. By default, it is set to “Choose a file” and “Choose a directory”.

2.1. Choose File

Example 1. Command run no inputs

The selected file will be written under the key pathToFile as "C:\\Users\\user\\Downloads\\Workflow Executor Setup (7).exe" in this case.

Sometimes however, you might want to restrict the file types that are shown to the user, this can be done by providing the fileType parameter. If we for example only want to allow gifs, we can set fileType to "*.gif"

Example 2. Command run with restricted file types

2.2. Choose Directory

The ChooseDirectory command offer analogous functionality as described above. However, you cannot provide any file extensions as those can be emitted for directories.