Constructor
# <BusinessRuleActivity task updateTask />
Business rule activity. It provides a DMN editor.
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
task |
object | Yes | Task data. | |
updateTask |
func | Yes | Callback to update the value of task in the parent component. |
Members
Object
# inner constant commandStackRef
Command stack of modeler reference hook. Enables handling of undo/redo.
Methods
# inner createNewDmn()
Attempts to create a diagram in XML with DMN modeler.
# inner encodeDownload(link, name, data)
Encodes the download of files.
Parameters:
Name | Type | Description |
---|---|---|
link |
Object | |
name |
string | |
data |
* |
# 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 onDrop()
Handles file drop. Displays a modal to confirm replacement of model.
# inner onDropAccepted()
Handles accepted file drop.
# async inner openDmn(dmnXML)
Attempts to open a diagram in XML with DMN modeler.
Parameters:
Name | Type | Description |
---|---|---|
dmnXML |
string |
# 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 task attributes.
# async inner saveXML()
Attempts to save the current XML from task attributes.