Events: System Events

System events are events that are emitted by the system itself. There is no other way to get this information than through these events.

Entity Types

Entity TypeComponentPropertyData TypeSocket Type
System EventeventeventAnyOutput
labeledlabelStringNone

Types of Events

LabelDescriptionPayload
/org/inexor/events/type/component/createdTriggered if a component has been createdName of the created component
/org/inexor/events/type/component/deletedTriggered if a component has been deletedName of the deleted component
/org/inexor/events/type/entity/createdTriggered if an entity type has been createdName of the created entity type
/org/inexor/events/type/entity/deletedTriggered if an entity type has been deletedName of the deleted entity type
/org/inexor/events/type/relation/createdTriggered if a relation type has been createdName of the created relation type
/org/inexor/events/type/relation/deletedTriggered if a relation type has been deletedName of the deleted relation type
/org/inexor/event/type/changedTriggered if the type system has changed
/org/inexor/events/instance/entity/createdTriggered if an entity instance has been createdUUID of the created entity instance
/org/inexor/events/instance/entity/deletedTriggered if an entity instance has been deletedUUID of the deleted entity instance
/org/inexor/events/instance/relation/createdTriggered if a relation instance has been createdEdge key of the created relation instance
/org/inexor/events/instance/relation/deletedTriggered if a relation instance has been deletedEdge key of the deleted relation instance
/org/inexor/events/flow/createdTriggered if a flow has been createdUUID of the created flow
/org/inexor/events/flow/deletedTriggered if a flow has been deletedUUID of the deleted flow

Label

Subscribing to these events is easily possible with a label.

GraphQL Subscription

It is possible to subscribe to these events via GraphQL subscription.

Transform and Zip Multiple Events

Instead of subscribing multiple events directly you can zip multiple events and subscribe to the result.

Get new components

subscription getSystemEventComponentCreated {
  entity(label: "/org/inexor/event/type/component/created", propertyName: "event") {
    name
    value
    type {
      dataType
      socketType
    }
  }
}

Get which components have been deleted

subscription getSystemEventComponentDeleted {
  entity(label: "/org/inexor/event/type/component/deleted", propertyName: "event") {
    name
    value
    type {
      dataType
      socketType
    }
  }
}

Get new flows

subscription getSystemEventFlowCreated {
  entity(label: "/org/inexor/event/instance/flow/created", propertyName: "event") {
    name
    value
    type {
      dataType
      socketType
    }
  }
}

Get which flows have been deleted

subscription getSystemEventCFlowDeleted {
  entity(label: "/org/inexor/event/instance/flow/deleted", propertyName: "event") {
    name
    value
    type {
      dataType
      socketType
    }
  }
}