This is a dialog used to import processes
it provides functionality for importing and then editing processes as well as for warning about and solving problems that might occur due to the import
Props
Name | Type | Default value | Required? | Description |
---|---|---|---|---|
show |
Boolean | - | Yes | if the component is currently open (mostly used to reset after closing and to open the file browser on opening) |
type |
String | - | Yes | the type of process to import (e.g. process, project, ...) |
Computed
Name | Type | Description |
---|---|---|
canStoreLocally |
boolean | if the component is executed in a browser environment that allows storing data |
storedProcesses |
Array.<Process> | all processes from the vuex store |
storedInBackend |
Array.<Process> | all processes that are stored in the backend and not locally in the browser |
departmentNames |
Array.<String> | names of all possible departments |
departments |
* | all possible departments |
currentIndex |
number | the current displayed Page minus 1 (index in array) |
Events
Name | Payload Type | Description |
---|---|---|
done |
undefined | if the process import was successfully executed |
process |
Object.<Process>|null | information about the process that was imported (null when more than one) |
cancel |
undefined | if the form should be closed without the intention of doing anything (abort) |
Members
(inner) importedFile :File
The selected file in the input form https://developer.mozilla.org/en-US/docs/Web/API/File
Type:
- File
- Source:
(inner) popupData
- Source:
Methods
importSelectedFile()
Imports the file that was selected
Process relevant information is imported into the processForm
It shows errors, if
- the selected file is empty
- the selected file contains no BPMN XML
- Source:
reset()
Resets ImportForm to not carry over data from one import to another