Unit ID
wSCP5QWAHcs/taP0ssN7W6M9qlfde8zKI+xlSvjhLho=
Received
26.11.2020 09:14:33
Confirmation delay (full node)
5 minutes 9 seconds
Confirmation delay (light node)
8 minutes 38 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $nom_AA = 'Consultes'; $versio = '0.1'; $args = trigger.data; $operatius = $args._Operatius; }", "messages": [ { "app": "state", "state": "{ if ( $args.ref == 'Portal' ) { $_AA = $args._Portal; response[ '_Acces' ] = var[ $_AA ][ '_Acces' ]; response[ '_Operatius' ] = var[ $_AA ][ '_Operatius' ]; response[ '_Getons' ] = var[ $_AA ][ '_Getons' ]; response[ '_FRO' ] = var[ $_AA ][ '_FRO' ]; response[ '_FOP' ] = var[ $_AA ][ '_FOP' ]; response[ '_FDIP' ] = var[ $_AA ][ '_FDIP' ]; response[ 'id_Estels' ] = var[ $_AA ][ 'id_Estels' ]; response[ 'Interval_Cicles' ] = var[ $_AA ][ 'Interval_Cicles' ]; response[ 'lapse_confirmacio' ] = var[ $_AA ][ 'lapse_confirmacio' ]; } if ( $args.ref == 'Operatius' ) { response[ '_Transfer' ] = var[ $operatius ][ '_Transfer' ]; response[ '_Capacitacio' ] = var[ $operatius ][ '_Capacitacio' ]; response[ '_Avis' ] = var[ $operatius ][ '_Avis' ]; } if ( $args.ref == 'Cicle_actual' ) { $_AA = var[ $operatius ][ '_Transfer' ]; $cicle_actual = var[ $_AA ][ 'cicle_actual']; $data_cicle_actual = var[ $_AA ][ 'data_cicle_actual']; $data_cicle_anterior = var[ $_AA ][ 'data_cicle_anterior']; $interval = var[ $_AA ][ 'interval'];response[ 'Cicle Actual' ] = $cicle_actual; response[ 'Data Cicle Actual' ] = timestamp_to_string( $data_cicle_actual, 'datetime' ); response[ 'Data Cicle Anterior' ] = timestamp_to_string( $data_cicle_anterior, 'datetime' ); response[ 'Data Cicle Actual milisegons' ] = $data_cicle_actual; response[ 'Data Cicle Anterior milisegons' ] = $data_cicle_anterior; response[ 'Interval' ] = $interval; } if ( $args.ref == 'Dades_Node' ) { $_AA = var[ $operatius ][ '_Transfer' ]; $activacio = var[ $_AA ][ 'activacio_' || $args.adr || '_en_' || $args.geto ]; $subscripcio = var[ $_AA ][ 'subscripcio_' || $args.adr || '_en_' || $args.geto ]; $cicle_renovacio = var[ $_AA ][ 'renovacio_' || $args.adr__ || '_' || $args.geto ]; $cicle_renovacio = var[ $_AA ][ 'cicle_' || $args.adr ]; $total_Derivacions = var[ $_AA ][ 'total_Derivacions_de_' || $args.adr || '_en_' || $args.geto ]; $_Avis = var[ $operatius ][ '_Avis' ]; $avis = var[ $_Avis ][ 'Avis_' || $args.adr || '_' || $args.geto ]; response[ 'Nom Activació' ] = $activacio.nom; response[ 'Escala Activació' ] = $activacio.escala; response[ 'Nom Subscripció' ] = $subscripcio.nom; response[ '% Derivació a FOP' ] = $subscripcio.aFOP; response[ 'Cicle Subscripció' ] = $subscripcio.cicle; response[ 'Cicle Renovació' ] = $cicle_renovacio; response[ 'Total Derivacions a FOP' ] = $total_Derivacions; if ( !! $avis.operatiu ) { response[ 'Avís' ] = $avis.text; } } if ( $args.ref == 'Totals' ) { $_AA = var[ $operatius ][ '_Transfer' ]; $total_activacions = var[ $_AA ][ 'total_Activacions' || '_en_' || $args.geto ]; $total_subscripcions = var[ $_AA ][ 'total_Subscripcions' || '_en_' || $args.geto ]; $total_renovacions = var[ $_AA ][ 'total_Renovacions' || '_en_' || $args.geto ]; $total_compensacions = var[ $_AA ][ 'total_Compensacions' || '_en_' || $args.geto ] ; $total_derivacions = var[ $_AA ][ 'total_Derivacions' || '_en_' || $args.geto ]; $total_diposits = var[ $_AA ][ 'total_Diposits' || '_en_' || $args.geto ]; $total_liquidacions = var[ $_AA ][ 'total_Liquidacions' || '_en_' || $args.geto ]; response[ 'Total Activacions' ] = $total_activacions; response[ 'Total Subscripcions' ] = $total_subscripcions; response[ 'Total Renovacions' ] = $total_renovacions; response[ 'Total Compensacions' ] = $total_compensacions; response[ 'Total Derivacions' ] = $total_derivacions; response[ 'Total Diposits' ] = $total_diposits; response[ 'Total Liquidacions' ] = $total_liquidacions; } if ( $args.ref == '_Avis' ) { $_AA = var[ $operatius ][ '_Avis' ]; $avis = var[ $_AA ][ 'Avis_' || $args.adr || '_' || $args.geto ]; response[ 'Actuant' ] = $avis.actuant; response[ 'Text' ] = $avis.text; response[ 'Rebot' ] = $avis.rebot; response[ 'Operatiu' ] = $avis.operatiu; if ( !! $avis.data ) { response[ 'Data' ] = timestamp_to_string( $avis.data, 'datetime' ); } } if ( $args.ref == 'Capacitacio' ) { $_AA = var[ $operatius ][ '_Capacitacio' ]; $ref = $args.tipus || '_' || $args.adr || '_' || $args.geto; $capacitacio = var[ $_AA ][ $ref ]; response[ 'Ref Capacitacio' ] = $ref; response[ 'Ordinal' ] = $capacitacio.ordinal; response[ 'Data' ] = timestamp_to_string( $capacitacio.data, 'datetime' ); response[ 'Estat' ] = $capacitacio.estat; response[ 'Capacitadora' ] = $capacitacio.capacitadora; } }" } ] } ]
Technical information
Fees:
5,699 bytes
(452 headers, 5247 payload)
Level:1776921
Witnessed level:1776913
Main chain index:1769138
Latest included mc index:1769137
Status:stable/confirmed/final