| 1 | [ |
| 2 | "autonomous agent", |
| 3 | { |
| 4 | "init": "{ |
| 5 | $nom_AA = 'Inicialitzacio'; |
| 6 | |
| 7 | |
| 8 | $_Portal_original = trigger.address; |
| 9 | |
| 10 | $_Portal_actual = var[ 'portal_actual' ] otherwise $_Portal_original; |
| 11 | |
| 12 | if ( $_Portal_actual != trigger.address ) |
| 13 | { |
| 14 | $versions_Portal = var[ $_Portal_actual ][ 'versions' ]; |
| 15 | $_Portal = substring( $versions_Portal.Portal, 0, 32 ); |
| 16 | if ( $_Portal != trigger.address ) |
| 17 | { bounce ( 'Portal no reconegut' ); } |
| 18 | } else { |
| 19 | $_Portal = $_Portal_actual; |
| 20 | } |
| 21 | |
| 22 | $args = trigger.data; |
| 23 | $versions = {}; |
| 24 | $definidors = {}; |
| 25 | }", |
| 26 | "messages": [ |
| 27 | { |
| 28 | "app": "state", |
| 29 | "state": "{ |
| 30 | $__resp = $r => { |
| 31 | $definidors[ $r ] = |
| 32 | $args[ $r ] otherwise $definidors[ $r ] otherwise '...'; |
| 33 | response[ $r ] = $definidors[ $r ]; |
| 34 | }; |
| 35 | |
| 36 | $refs_definidors = [ |
| 37 | '_Accions', '_Getons', '_Validacions', '_Validadores', |
| 38 | '_FRO', '_Estels', 'Interval', 'Lapse', |
| 39 | 'Import_Activacio', 'Import_Subscripcio', 'Import_Renovacio', |
| 40 | 'Taxa_Conversio', 'Factor_Conversio', 'Generacio_Minima', |
| 41 | 'Nombre_Delegades', 'Nombre_Aprovacions', 'Cicles_Diposit', |
| 42 | 'Diposit_Minim', '_AUT_0', '_AUT_A', '_AUT_B', '_AUT_C' |
| 43 | ]; |
| 44 | |
| 45 | $m = map( $refs_definidors, 22, $__resp ); |
| 46 | |
| 47 | $versions.Portal = this_address; |
| 48 | $versions.Getons = $definidors._Getons; |
| 49 | $versions.Accions = $definidors._Accions; |
| 50 | $versions.Validacions = $definidors._Validacions; |
| 51 | $versions.Validadores = $definidors._Validadores; |
| 52 | |
| 53 | var[ 'definidors' ] = $definidors; |
| 54 | var[ 'versions' ] = $versions; |
| 55 | |
| 56 | |
| 57 | if ( $_Portal != $_Portal_actual ) { |
| 58 | var[ 'anterior_portal' ] = var[ 'portal_actual' ]; |
| 59 | var[ 'portal_actual' ] = $_Portal; |
| 60 | response[ 'Nou portal actual' ] = $_Portal; |
| 61 | } |
| 62 | }" |
| 63 | } |
| 64 | ] |
| 65 | } |
| 66 | ] |