Verified Commit 4bcc7998 authored by João Capucho's avatar João Capucho
Browse files

Add secret characteristics to TEXT LCM blocks

parent 6ce15506
Loading
Loading
Loading
Loading
Loading
+324 −322
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ export class ServiceRuleDesignComponent implements OnInit {
  charsListText: ServiceSpecCharacteristic[];
  charsListLongText: ServiceSpecCharacteristic[];
  charsListTimestamp: ServiceSpecCharacteristic[];
  charsListSecret: ServiceSpecCharacteristic[];
  serviceSpecRel: ServiceSpecRelationship[];
  resourceserviceSpecRef: ResourceSpecificationRef[];

@@ -227,6 +228,7 @@ export class ServiceRuleDesignComponent implements OnInit {
          this.charsListText= this.spec.serviceSpecCharacteristic.filter(specCharacteristic => specCharacteristic.valueType == 'TEXT');
          this.charsListLongText= this.spec.serviceSpecCharacteristic.filter(specCharacteristic => specCharacteristic.valueType == 'LONGTEXT');
          this.charsListTimestamp= this.spec.serviceSpecCharacteristic.filter(specCharacteristic => specCharacteristic.valueType == 'TIMESTAMP');
          this.charsListSecret = this.spec.serviceSpecCharacteristic.filter(specCharacteristic => specCharacteristic.valueType == 'SECRET');

          this.serviceSpecRel= this.spec.serviceSpecRelationship;
          this.workspace.serviceSpecRel = this.serviceSpecRel;
@@ -238,6 +240,7 @@ export class ServiceRuleDesignComponent implements OnInit {

          this.workspace.charsListText = this.charsListText;
          this.workspace.charsListText = this.workspace.charsListText.concat( this.charsListLongText );
          this.workspace.charsListText = this.workspace.charsListText.concat( this.charsListSecret );

          this.workspace.charsListNumber = this.charsListSmallint;
          this.workspace.charsListNumber = this.workspace.charsListNumber.concat( this.charsListEnum );
@@ -1438,7 +1441,6 @@ export class ServiceRuleDesignComponent implements OnInit {
    return  [code, Blockly.Java.ORDER_ATOMIC];
  };


  Blockly.Java['createServiceOrderJson'] = function(block: any) {
    // Variable getter.
        console.log('createServiceOrderJson')