Changes between Version 222 and Version 223 of WikiStart


Ignore:
Timestamp:
08/14/19 08:53:35 (5 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v222 v223  
    8888If you write a java-based party, these objects may already have been converted to Java objects. Please check [source:issuevalue/src/main/java/geniusweb/issuevalue] for conversion details.
    8989
     90There is not yet a domain editor available so you have to create domains by manually editing a file with JSON code.
     91
     92A domain looks like this
     93{{{
     94{"name":"jobs",
     95 "issuesValues":{
     96  "lease car":{"values":["yes","no"]},
     97  "permanent contract":{"values":["yes","no"]},
     98  "career development opportunities":{"values":["low","medium","high"]},
     99  "fte":{"values":["0.6","0.8","1.0"]},
     100  "salary":{"values":["2000","2500","3000","3500","4000"]},
     101  "work from home":{"values":["0","1","2"]}
     102 }
     103}
     104}}}
     105
     106* The name is just a string. It must match the filename and directory name when placed on the profiles server. So your directory must be domainsrepo/jobs and the filename must be jobs.json.
     107* The issueValues contains a dictionary with issues. Each issue is indicated by a name (a string), followed by a column (:) and then a dictionary. The dictionary can contain either a discrete valueset or a number valueset
     108  * a discrete valueset looks like "values", a column and then a list of discrete values (all strings)
     109  * a number valueset contains a range of numbers and looks like {{{ {"range":["12.2","12.6","0.3"]} }}} so "range:" followed by a list of 3 values. The first value is the minimum value in the range, the second the maximum value in the range, and the third the step value. This example range thus contains 12.2 and 12.5 (the next one would be 12.8 but that is already outside the range).
    90110
    91111== profile
     
    339359
    340360== Create a domain
    341 There is not yet a domain editor available so you have to create domains by manually editing a file with JSON code.
    342 
    343 A domain looks like this
    344 {{{
    345 {"name":"jobs",
    346  "issuesValues":{
    347   "lease car":{"values":["yes","no"]},
    348   "permanent contract":{"values":["yes","no"]},
    349   "career development opportunities":{"values":["low","medium","high"]},
    350   "fte":{"values":["0.6","0.8","1.0"]},
    351   "salary":{"values":["2000","2500","3000","3500","4000"]},
    352   "work from home":{"values":["0","1","2"]}
    353  }
    354 }
    355 }}}
    356 
    357 * The name is just a string. It must match the filename and directory name when placed on the profiles server. So your directory must be domainsrepo/jobs and the filename must be jobs.json.
    358 * The issueValues contains a dictionary with issues. Each issue is indicated by a name (a string), followed by a column (:) and then a dictionary. The dictionary can contain either a discrete valueset or a number valueset
    359   * a discrete valueset looks like "values", a column and then a list of discrete values (all strings)
    360   * a number valueset contains a range of numbers and looks like {{{ {"range":["12.2","12.6","0.3"]} }}} so "range:" followed by a list of 3 values. The first value is the minimum value in the range, the second the maximum value in the range, and the third the step value. This example range thus contains 12.2 and 12.5 (the next one would be 12.8 but that is already outside the range).
    361361
    362362== Create a profile