new Engine()
- Description:
Diagrams controller
Methods
close(modelId, confirm)
- Description:
Close a diagram
Parameters:
Name | Type | Description |
---|---|---|
modelId |
string | model row ID |
confirm |
boolean | false to auto-save |
create(template, name, options, cbk)
- Description:
Helper to create a new SVG business model, user must have access to ModelTemplate (read) and Model (create).
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
template |
string | Model template name |
||||||||||||||||||
name |
string | Model name |
||||||||||||||||||
options |
Object | Model options Properties
|
||||||||||||||||||
cbk |
function | Callback(diagram) |
detach(modelId, dock)
- Description:
Detach diagram from Parent/Popup window
Parameters:
Name | Type | Description |
---|---|---|
modelId |
string | model row ID |
dock |
boolean | true to dock diagram on parent window, false to open a new window |
notify()
- Description:
Notify UI events (CRUD on objects)
open(modelId, options, cbk)
- Description:
Open a diagram
Parameters:
Name | Type | Description |
---|---|---|
modelId |
string | model row ID |
options |
Object |
|
cbk |
function | optional callback(model) |
save(modelId, cbk)
- Description:
Save a diagram
Parameters:
Name | Type | Description |
---|---|---|
modelId |
string | model row ID |
cbk |
function | optional callback |
update()
- Description:
Update models with incoming object
(inner) openSVG()
- Description:
Open a SVG diagram