Heisenware Docs
Go to websiteGet a demo
  • 👋Welcome
  • Getting started
  • Release Notes
    • v84 - Get in the flow
    • v83 - Beauty treatment
    • v82 — Fully distributed
    • v81 — Removing old cruft
    • v80 — Chicks on fire
    • v79 — Nothing is forever
    • v78 — Keep moving
    • v77 — More intelligence
    • v76 — Well cooked
  • Build & Deploy Apps
    • Overview
    • Flow Builder
      • Nodes (Functions)
        • Inputs
        • Trigger
        • Output
      • Flows
      • Function Extensions
        • Modifier
        • Filter
        • Error handler
        • Memorizer
      • Objects & Instances
      • Utilities
        • Basic Functions
        • PDF functions
        • Circular buffer
        • Timer
        • Counter
    • Integrations
      • Protocol Connectors
        • GraphQL
        • HTTP/REST
        • MQTT
        • OPC UA
          • Heidenhain PLCs with OPC UA
        • RS-232/485
        • Siemens S7
      • Data Connectors
        • File
        • Relational Database
        • Time Series Database (WIP)
      • API Connectors
        • OGC SensorThings API
        • Operating System
        • Zebra RFID IoT Connector
      • Agent / (Edge Connector)
      • Calling Custom Code
    • UI Builder
      • Input Widgets
        • Form
        • File Upload
        • Photo
        • Signature
        • Barcode / QR-Code (WIP)
        • Document Scan (WIP)
      • Display Widgets
        • Chart
        • Chat
        • Circular Gauge
        • Data Grid
        • Linear Gauge
        • Map
        • Media View
        • Progress Bar
        • Sparkline
        • Status Lamp
        • Toast
        • Value Box
        • Kanban Board
        • Data Tiles
        • Pie Chart
        • Sankey
      • Buttons
      • Text Box
      • Images
      • Icons
    • Communication Interfaces
      • Email Notifications
      • OPC UA Server
    • Data & File Storage
      • Internal InfluxDB
      • Internal PostgreSQL
      • File Server
    • App Appearance
      • Pages
      • In-App Navigation
      • Screens & Devices
      • Theming
    • Simulation & Testing
      • Simulating Events
      • Simulating Data
    • PDF Templates
    • RAG-based Chatbot
    • Deployment
  • Manage Apps
    • Overview
    • Manage Apps
      • General Settings
      • Users and Access
      • Distribution & Versioning
    • Manage Integrations
    • Manage Account
      • Account Structure
      • Members
      • Workspaces
  • TUTORIALS
    • Build Your First Heisenware App
  • Connect Heidenhain CNC with OPC UA Support
  • Related links
    • Website
    • Privacy policy
    • Imprint
Powered by GitBook
On this page
  • Instance management
  • Create an instance
  • Delete an instance
  • Instance functions
  • Reacting to a manually triggered event
  • Reacting to an automatically triggered event
  • Reacting with a callback to output of same function
  1. Build & Deploy Apps
  2. Simulation & Testing

Simulating Events

Last updated 7 months ago

This module is designed to simulate various events to test and validate workflows. By generating events, you can ensure that your workflow handles different scenarios and edge cases effectively, providing a robust and reliable system. It is also helpful as a placeholder in your workflow, if you haven't completed your app yet.

The different available functions offer ways to respond to specific events. To learn more about event handlers, see .

To access the events simulator, unfold Simulation > Events in the functionality panel.

Instance management

Create an instance

Simply drag the create function onto the board, insert a unique name for your instance and trigger the function.

Delete an instance

Simply drag the delete function onto the board and insert the name of the instance you want to delete.

Instance functions

Reacting to a manually triggered event

The onManualTrigger function catches a manual trigger of the triggerManually function in the same instance and outputs the payload, which is a UNIX timestamp in this case. To try this, simply drag both functions onto the logic board and trigger the triggerManually function to generate the necessary event.

Reacting to an automatically triggered event

The onAutoTrigger reacts to the automatic trigger set up by startAutoTrigger and displays the UNIX timestamp payload. You can set an interval after which the event should repeat in milliseconds in the interval input box. You might need to trigger onAutoTrigger once for it to start reacting to the automatically generated events after triggering startAutoTrigger.

You can stop the automatic trigger with the stopAutoTrigger function.

Reacting with a callback to output of same function

The triggerCallback function reacts to an event triggered by itself. After triggering the function, there will be a delay, as set by the timeout input box in milliseconds. It will NOT react to the output of the callback to avoid an infinite loop.

Callbacks
Creating an events simulator instance
Deleting an events simulator instance
After triggering the second function, the first outputs the timestamp
Reacting to periodically generated events
Stopping the generation of events
Callback output as reaction to function generated event