AnsweredAssumed Answered

How to add content to Field extension (Class Field) stencilset

Question asked by midiman on Oct 4, 2017
Latest reply on Oct 12, 2017 by midiman

Hello,

Trying to work out how to add key/value pair properties to the stencilset.json for 'Class Fields'.

Basically, so that when a user drags a ServiceTask into the canvas, the Class Fields form is prepopulated with some values from the stencilset json

[This is the form with 'Name' 'Implementation' on the left; with String value, String and Expression textfields on the right]

 

I've tried just about every combintation of json I can think of, and I can't get it to pre-populate the form.

 

This is the area of the stencilset.json I'm tryng to prepopulate:

{
    "name" : "search_servicetaskfieldspackage",
    "properties" : [ {
      "id" : "servicetaskfields",
      "type" : "Complex",
      "title" : "Class  fields",
      "value" : "",  
      "complexItems" : [ {  
        "id" : "servicetask_field_name",  
        "name" : "Name",  
        "type" : "String",  
        "value" : "can I get some values into this",  
        "width" : 200,  
        "optional" : false  
      }, {  
        "id" : "servicetask_field_value",  
        "name" : "String value",  
        "type" : "String",  
        "value" : "",  
        "width" : 200,  
        "optional" : false  
      }, {  
        "id" : "servicetask_field_expression",  
        "name" : "Expression",  
        "type" : "String",  
        "value" : "",  
        "width" : 200,  
        "optional" : false  
      } ],
      "description" : "Search parameters",
      "popular" : true
    } ]
  }

Maybe I need to add some special key names?

 

Any help on how to do this would much appreciated!

Many thanks

Outcomes