Constructor
# <DataModel appStarted loadedContract loadContract loadContractError />
Enables editing the DasContract data model. Shows a process viewer for reference.
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
appStarted |
bool | No | App started indicator from store. | |
loadedContract |
object | No | Loaded contract from store. | |
loadContract |
func | Yes | Action to load a contract in the store. | |
loadContractError |
bool | No | Load contract error indicator from store. |
Members
Methods
# inner filterRootProcesses()
Filters processes from "loadedContractJSON" in a destructured array and sets result to "modelElements".
# inner redirectIfNotReady()
Redirects the user to "Home" if there's no loaded contract or a load contract error.
# inner updateLoadedContract()
Updates "loadedContract" from the store with the data in "loadedContractJSON".
# inner updateModelElements(modelElementToUpdate, newData)
Updates an element in "modelElement".
Parameters:
Name | Type | Description |
---|---|---|
modelElementToUpdate |
Object | Model element to update in "modelElements". |
newData |
Object | New data for the model element to update. |
# inner updateProcess(processToUpdate, newDataModel)
Updates the process data model.
Parameters:
Name | Type | Description |
---|---|---|
processToUpdate |
Object | Process to update. |
newDataModel |
Object | New data model for the process to update. |