SHARE
TWEET

Untitled

a guest Oct 21st, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. parameters:
  2.   declaration:
  3.     - id: param1
  4.       type: int
  5.       value:
  6.         def: 1000 # in future we can add expression
  7.       caption:
  8.         id: paramCaption1
  9.         value: Amount of the transfer
  10.     - id: param2
  11.       type: enum
  12.       enumType: string
  13.       values:
  14.         - Portmone
  15.         - EasyPay
  16.       value:
  17.         def: EasyPay
  18.       caption:
  19.         id: paramCaption2
  20.         value: Payment system
  21.     - id: param3
  22.       type: date
  23.       caption:
  24.         id: paramCaption3
  25.         value: Card valid thru
  26.         hidden: true # default false
  27.     - id: param4
  28.       type: string
  29.       caption:
  30.         id: paramCaption4
  31.         value: Notify the recipient by email
  32.   layout:
  33.     # rooGroup exists but omitted for sake of simplicity
  34.     id: layoutGroup1
  35.     caption:
  36.       id: layoutGroupCaption1
  37.       value: Transfer from card to card
  38.     rows:
  39.       - row:
  40.         - parameterId: param1
  41.     group:
  42.       id: layoutGroup2
  43.       caption:
  44.         id: layoutGroupCaption2
  45.         value: Sender
  46.       rows:
  47.         - row:
  48.           - parameterId: param2
  49.           - parameterId: param3
  50.         - row:
  51.           - parameterId: param4
  52.   behavior:
  53.     on-case-level:
  54.       - selector:
  55.           id: [param1, param2] # in future we can add selector by any other criterion
  56.         visible:
  57.           value: 'true' # false, inherit
  58.         editable:
  59.           value: 'true'
  60.         required:
  61.           value: 'true'
  62.       - selector:
  63.           id: [param4]
  64.         visible:
  65.           value: 'true' # order is visible, editable, required
  66.         editable:
  67.           value: 'true'
  68.         required:
  69.           value: 'false'
  70.     on-stage-level:
  71.       - selector:
  72.           # any: true
  73.           id: [Stage1, Stage2]
  74.         elements:
  75.           - selector:
  76.               id: [param1, param2]
  77.             visible:
  78.               value: 'true'
  79.             editable:
  80.               value: 'true'
  81.             required:
  82.               value: 'true'
  83.             # param4 will not be visible
  84.       - selector:
  85.           id: [Stage3]
  86.         elements:
  87.           - selector:
  88.               id: [param1]
  89.             visible:
  90.               value: 'false' # same as omitted value
  91.           - selector:
  92.               id: [param2]
  93.             visible:
  94.               value: 'true' #
  95.     on-role-level:
  96.       - selector:
  97.           id: [role1]
  98.         elements:
  99.           - selector:
  100.               id: [param1, param2]
  101.             visible:
  102.               value: 'false'
  103.       - selector:
  104.           id: [role2]
  105.         elements:
  106.           - selector:
  107.               id: [param1, param2]
  108.             visible:
  109.               value: 'true'
  110.             editable:
  111.               value: 'true'
  112.             required:
  113.               value: 'true'
  114.     on-task-level:
  115.       - selector:
  116.           id: [task1, task2]
  117.         elements:
  118.           - selector:
  119.               id: [param1, param2]
  120.             visible:
  121.               value: 'inherit'
  122.             editable:
  123.               value: 'inherit'
  124.             required:
  125.               value: 'inherit'
  126.       - selector:
  127.           id: [task1, task2]
  128.         elements:
  129.           - selector:
  130.               id: [layoutGroup2]
  131.             hidden: 'true'
  132.           - selector:
  133.               id: [param3]
  134.             visible:
  135.               value: 'true'
  136.             editable:
  137.               value: 'true'
  138.             required:
  139.               value: 'true'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top