Feature #7450

SCL script storage, editing and validation support

Added by Tuukka Lehtonen 3 months ago. Updated 16 days ago.

Status:ClosedStart date:2017-08-26
Priority:4Due date:2017-08-26
Assignee:Tuukka Lehtonen% Done:

100%

Category:-Spent time:-
Target version:2017-26
Release notes:Implemented support for creating SCL script entities in the database along with a validating workbench editor for scripts. Scripts can be executed from the Model Browser context menu or from the script editor directly through the context menu or by pressing @CTRL+R@.
Tags: 1.31.0
Story points-
Velocity based estimate-
ReleaseSimantics 1.31.0Release relationshipAuto

Description

  • Ontology for defining an SCL script in the database (L0.SCLScript)
  • A text editor for L0.SCLScripts:
    • Basic syntax highlighting (same as in SCL Module editor)
    • Script validation
    • Easy script execution directly from the editor (CTRL+R)
  • View scripts in model browser under L0.Library instances
  • Script execution from Model Browser context menu
  • Simple script execution through SCL function(s)

Related issues

Related to Platform - Feature #7528: Separate output-only console for SCL script execution Closed 2017-10-04 2017-10-04

Associated revisions

Revision e36d0cb0
Added by Tuukka Lehtonen 3 months ago

Support for SCL script database storage, editing and execution

  • Ontology for defining an SCL script in the database (L0.SCLScript)
  • A text editor for L0.SCLScripts:
    • Basic syntax highlighting (same as in SCL Module editor)
    • Script validation
    • Easy script execution directly from the editor (CTRL+R)
  • View scripts in model browser under L0.Library instances
  • Script execution from Model Browser context menu

refs #7450

Change-Id: I57016492589b6a9b693d926a56a3d0fe7b317023

Revision 156e5c96
Added by Tuukka Lehtonen 3 months ago

Fixed null pointer problem from SCLSCriptEditorAdapter

refs #7450

Change-Id: Iafa03f216815c5c0f06a8ed27a081cd7db1c71fc

Revision 2bc508bb
Added by Tuukka Lehtonen 16 days ago

Fixed SCLScriptAnnotationModel script validation threading

Previously the code performed the script validation directly in the DB
listener thread, which is essentially QueryThread-0 without putting the
related ReadGraph into the current SCLContext while doing so. This
caused the validation code to crash because the validation code tries to
start a new database transaction from within the transaction thread
calling the listener.

The solution schedules the validation to a BUILD priority Job thread.

refs #7450

Change-Id: I01c030be032890638919c3800e04e14670f8726c

Revision 7a71c186
Added by Tuukka Lehtonen 5 days ago

Added function createSCLScript to Simantics/SCL API

refs #7450

Change-Id: Ie1ed6a809bd897e055789c66d8c62bb44edfeac0

History

#1 Updated by Tuukka Lehtonen 3 months ago

  • Description updated (diff)

#2 Updated by Tuukka Lehtonen 3 months ago

  • Description updated (diff)

#5 Updated by Tuukka Lehtonen 16 days ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100
  • Release notes set to Implemented support for creating SCL script entities in the database along with a validating workbench editor for scripts. Scripts can be executed from the Model Browser context menu or from the script editor directly through the context menu or by pressing @CTRL+R@.

Also available in: Atom PDF