You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2020/08/03 19:35:09 UTC

[incubator-streampipes] branch STREAMPIPES-145 updated: Fix add timestamp rule

This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a commit to branch STREAMPIPES-145
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/STREAMPIPES-145 by this push:
     new d5cdb8f  Fix add timestamp rule
d5cdb8f is described below

commit d5cdb8f81ad5139a044ae3e0efd89009830204d4
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Mon Aug 3 21:34:50 2020 +0200

    Fix add timestamp rule
---
 .../connect/schema-editor/event-schema/event-schema.component.ts | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/ui/src/app/connect/schema-editor/event-schema/event-schema.component.ts b/ui/src/app/connect/schema-editor/event-schema/event-schema.component.ts
index 0b0a16f..28105c4 100644
--- a/ui/src/app/connect/schema-editor/event-schema/event-schema.component.ts
+++ b/ui/src/app/connect/schema-editor/event-schema/event-schema.component.ts
@@ -121,7 +121,8 @@ export class EventSchemaComponent implements OnChanges {
 
   public addNestedProperty(eventProperty?: EventPropertyNested): void {
     const uuid: string = UUID.UUID();
-    let nested: EventPropertyNested = new EventPropertyNested();
+    const nested: EventPropertyNested = new EventPropertyNested();
+    nested['@class'] = 'org.apache.streampipes.model.schema.EventPropertyNested';
     nested.elementId = uuid;
     nested.eventProperties = [];
     if (!eventProperty) {
@@ -149,7 +150,8 @@ export class EventSchemaComponent implements OnChanges {
 
   public addStaticValueProperty(): void {
     const eventProperty = new EventPropertyPrimitive();
-    eventProperty.elementId = 'staticValue/' + UUID.UUID(), undefined;
+    eventProperty['@class'] = 'org.apache.streampipes.model.schema.EventPropertyPrimitive';
+    eventProperty.elementId = 'staticValue/' + UUID.UUID();
 
     eventProperty.runtimeName = 'key_0';
     eventProperty.runtimeType = this.dataTypesService.getStringTypeUrl();
@@ -160,7 +162,8 @@ export class EventSchemaComponent implements OnChanges {
 
   public addTimestampProperty(): void {
     const eventProperty = new EventPropertyPrimitive();
-    eventProperty.elementId = 'timestamp/' + UUID.UUID();
+    eventProperty['@class'] = 'org.apache.streampipes.model.schema.EventPropertyPrimitive';
+    eventProperty.elementId = 'http://eventProperty.de/timestamp/' + UUID.UUID();
 
     eventProperty.runtimeName = 'timestamp';
     eventProperty.label = 'Timestamp';