Diagram in Expression Language: Difference between revisions

From QPR ProcessAnalyzer Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
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.
In QPR ProcessAnalyzer, '''diagram''' can be used to create user-defined business process and architecture designs. The diagram is a drawing canvas where elements can be added from a tool palette and relation between them defined. Each diagram belongs to the model in QPR ProcessAnalyzer and there can be several diagrams in each model.


==Diagram Properties==
==Diagram Properties==
Line 22: Line 22:
|-
|-
||LastModifiedBy
||LastModifiedBy
||Returns user who modified the diagram.
||Returns user who last modified the diagram.
|-
|-
||LastModifiedDate (DateTime)
||LastModifiedDate (DateTime)
Line 28: Line 28:
|-
|-
||Model (Model)
||Model (Model)
||Returns model object which owns the diagram.
||Returns model object where the diagram is located.
|-
|-
||ModelId (Integer)
||ModelId (Integer)
||Returns id of the model which owns the diagram.
||Returns id of the model where the diagram is located.
|-
|-
||Name (String)
||Name (String)

Revision as of 13:53, 12 October 2023

In QPR ProcessAnalyzer, diagram can be used to create user-defined business process and architecture designs. The diagram is a drawing canvas where elements can be added from a tool palette and relation between them defined. Each diagram belongs to the model in QPR ProcessAnalyzer and there can be several diagrams in each model.

Diagram Properties

Property Description
Content (Dictionary) Returns content of the diagram as dictionary.
CreatedBy (User) Returns user who created the diagram.
CreatedDate (Datetime) Returns diagram creation date.
Description (String) Returns description of the diagram.
Id (Integer) Returns id of the diagram.
LastModifiedBy Returns user who last modified the diagram.
LastModifiedDate (DateTime) Returns diagram last modification date.
Model (Model) Returns model object where the diagram is located.
ModelId (Integer) Returns id of the model where the diagram is located.
Name (String) 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:

ModelById(1)
  .Modify(#{
    "ModelId": 2,
    "Name": "New diagram name",
    "Content": #{ ... },
  });

Function to get diagram by diagram id:

Function Parameters Description
DiagramById
  • Diagram id (Integer)

Returns diagram object corresponding to the provided diagram id.