Diagram in Expression Language

From QPR ProcessAnalyzer Wiki
Jump to navigation Jump to search

Diagram is a drawing canvas where elements can be added to create user-defined business process and architecture designs. Each diagram belongs to the model in QPR ProcessAnalyzer and there can be several diagrams in each model.

Diagram Properties

Property Description
Content Returns content of the diagram as Dictionary (#48320#).
CreatedBy Returns user object (#30964#) who created the diagram.
CreatedDate Returns diagram creation date.
Description Returns Description of the diagram.
Id Returns Id of the diagram.
LastModifiedBy Returns user object (#30964#) who modified the diagram.
LastModifiedDate Returns diagram last modification date.
Model Returns model object (#27619#) which owns the diagram.
ModelId Returns Id of the model which owns the diagram.
Name Returns Name of the diagram.

Diagram functions

Function Parameters Description
DeletePermanently Deletes the diagram permanently.
Modify Dictionary of changes properties Changes the provided properties of the diagram. Parameter is a dictionary containing the properties to be updated. Supported properties are:
  • ModelId (integer): Model id (to move the diagram into different model).
  • Name (string): Diagram name.
  • Description (string): Diagram description.
  • Content (dictionary): Diagram content as dictionary.

Example:


Function to get diagram by diagram id:

Function Parameters Description
DiagramById
  • Diagram id (integer)

Returns diagram object corresponding to the provided diagram id.