# <ProcessEditor appStarted loadedContract loadContract loadContractError setLoadContractError />
Enables to create and edit a contract process model. Changes can be saved.
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. | |
setLoadContractError |
func | Yes | Action to set load contract error indicator in the store. |
Members
# inner constant commandStackRef
Command stack of modeler reference hook. Enables handling of undo/redo.
# inner constant processEditorContainerRef
Process editor container HTML element reference hook.
# inner constant propertiesPanelRef
Properties panel HTML element for modeler reference hook.
Methods
# inner createNewDiagram()
Attempts to create a diagram in XML with process modeler.
# inner encodeDownload(link, name, data)
Encodes the download of files.
Parameters:
Name | Type | Description |
---|---|---|
link |
Object | |
name |
string | |
data |
* |
# inner handleKeyDown(e)
Handles CTRL + Z and CTRL + SHIFT + Z with the command stack of the modeler.
Parameters:
Name | Type | Description |
---|---|---|
e |
Object | Triggering event. |
# inner handleRedo()
Handles redo with the command stack of the modeler.
# inner handleResize(event, size)
Updates the value of "viewerHeight" when user drags the corner of Resizable component.
Parameters:
Name | Type | Description |
---|---|---|
event |
Object | Triggered event. |
size |
Object | Updated size of Resizable component. |
# inner handleUndo()
Handles undo with the command stack of the modeler.
# inner onDrop()
Handles file drop. Displays a modal to confirm replacement of model.
# inner onDropAccepted()
Handles accepted file drop.
# inner openDiagram(xml)
Attempts to open a diagram in XML with process modeler.
Parameters:
Name | Type | Description |
---|---|---|
xml |
string |
# inner redirectIfNotReady()
Redirects the user to "Home" if there's no loaded contract or a load contract error.
# async inner saveModel()
Attempts to save the current state of the modeler as "loadedContract" in the store.
# async inner saveSVG()
Attempts to save the current SVG from the state of the model.
# async inner saveXML()
Attempts to save the current XML from the state of the model.
# inner setLoadContractErrorResult(result)
Sets load contract error both on reference hook and store.
Parameters:
Name | Type | Description |
---|---|---|
result |
boolean |