13:52:30.447	SERVER	admin	OK	Server was started (port: 1984).
13:52:30.530	SERVER	admin	OK	HTTP Server was started (port: 8984).
13:52:46.286	0:0:0:0:0:0:0:1:63097	admin	REQUEST	[GET] http://localhost:8984/dba/databases
13:52:46.313	0:0:0:0:0:0:0:1:63097	admin	404	RESTXQ directory not found.	31.59 ms
13:52:46.680	0:0:0:0:0:0:0:1:63097	admin	REQUEST	[GET] http://localhost:8984/favicon.ico
13:52:46.706	0:0:0:0:0:0:0:1:63097	admin	404	RESTXQ directory not found.	26.67 ms
13:53:33.113	SERVER	admin	OK	HTTP Server was stopped (port: 8984).
13:53:33.114	SERVER	admin	OK	Server was stopped (port: 1984).
13:54:18.921	SERVER	admin	OK	Server was started (port: 1984).
13:54:18.976	SERVER	admin	OK	HTTP Server was started (port: 8984).
13:54:21.885	0:0:0:0:0:0:0:1:63118	admin	REQUEST	[GET] http://localhost:8984/dba/databases
13:54:21.908	0:0:0:0:0:0:0:1:63118	admin	404	RESTXQ directory not found.	26.46 ms
13:54:23.135	0:0:0:0:0:0:0:1:63118	admin	REQUEST	[GET] http://localhost:8984/dba/databases
13:54:23.162	0:0:0:0:0:0:0:1:63118	admin	404	RESTXQ directory not found.	27.96 ms
13:54:25.285	0:0:0:0:0:0:0:1:63118	admin	REQUEST	[GET] http://localhost:8984/
13:54:25.309	0:0:0:0:0:0:0:1:63118	admin	404	RESTXQ directory not found.	24.83 ms
13:55:16.384	SERVER	admin	OK	HTTP Server was stopped (port: 8984).
13:55:16.385	SERVER	admin	OK	Server was stopped (port: 1984).
13:56:53.242	SERVER	admin	OK	Server was started (port: 1984).
13:56:53.283	SERVER	admin	OK	HTTP Server was started (port: 8984).
13:56:54.719	0:0:0:0:0:0:0:1:63169	admin	REQUEST	[GET] http://localhost:8984/dba/databases
13:56:56.077	0:0:0:0:0:0:0:1:63169	admin	302		1360.73 ms
13:56:56.077	0:0:0:0:0:0:0:1:63169	admin	200		0.39 ms
13:56:56.088	0:0:0:0:0:0:0:1:63169	admin	REQUEST	[GET] http://localhost:8984/dba/login?_page=databases
13:56:56.144	0:0:0:0:0:0:0:1:63169	admin	200		56.37 ms
13:56:58.601	0:0:0:0:0:0:0:1:63169	admin	REQUEST	[POST] http://localhost:8984/dba/login-check
13:56:58.651	0:0:0:0:0:0:0:1:63169	admin	INFO	DBA user was logged in: admin
13:56:58.652	0:0:0:0:0:0:0:1:63169	admin	302		51.04 ms
13:56:58.652	0:0:0:0:0:0:0:1:63169	admin	200		0.17 ms
13:56:58.656	0:0:0:0:0:0:0:1:63169	admin	REQUEST	[GET] http://localhost:8984/dba/databases
13:56:58.769	0:0:0:0:0:0:0:1:63169	admin	200		113.83 ms
13:57:04.919	0:0:0:0:0:0:0:1:63169	admin	REQUEST	[POST] http://localhost:8984/dba/databases
13:57:05.000	0:0:0:0:0:0:0:1:63169	admin	302		81.82 ms
13:57:05.001	0:0:0:0:0:0:0:1:63169	admin	200		0.48 ms
13:57:05.005	0:0:0:0:0:0:0:1:63169	admin	REQUEST	[GET] http://localhost:8984/dba/db-create?redirect=databases
13:57:05.041	0:0:0:0:0:0:0:1:63169	admin	200		36.61 ms
13:57:20.034	0:0:0:0:0:0:0:1:63169	admin	REQUEST	[POST] http://localhost:8984/dba/db-create
13:57:20.261	0:0:0:0:0:0:0:1:63169	admin	302		226.63 ms
13:57:20.261	0:0:0:0:0:0:0:1:63169	admin	200		0.18 ms
13:57:20.265	0:0:0:0:0:0:0:1:63169	admin	REQUEST	[GET] http://localhost:8984/dba/database?name=TTT2&info=Database%20%22TTT2%22%20%20was%20created.
13:57:20.335	0:0:0:0:0:0:0:1:63169	admin	200		70.16 ms
13:57:20.361	0:0:0:0:0:0:0:1:63169	admin	REQUEST	[GET] http://localhost:8984/dba/static/codemirror/lib/codemirror.css
13:57:20.363	0:0:0:0:0:0:0:1:63174	admin	REQUEST	[GET] http://localhost:8984/dba/static/codemirror/lib/codemirror.js
13:57:20.394	0:0:0:0:0:0:0:1:63176	admin	REQUEST	[GET] http://localhost:8984/dba/static/codemirror/mode/xml/xml.js
13:57:20.421	0:0:0:0:0:0:0:1:63169	admin	200		60.24 ms
13:57:20.453	0:0:0:0:0:0:0:1:63176	admin	200		58.46 ms
13:57:20.588	0:0:0:0:0:0:0:1:63174	admin	200		226.65 ms
13:57:24.396	0:0:0:0:0:0:0:1:63174	admin	REQUEST	[GET] http://localhost:8984/dba/settings
13:57:24.498	0:0:0:0:0:0:0:1:63174	admin	200		102.22 ms
13:57:36.181	0:0:0:0:0:0:0:1:63174	admin	REQUEST	[GET] http://localhost:8984/dba/queries
13:57:36.294	0:0:0:0:0:0:0:1:63174	admin	200		113.6 ms
13:57:36.319	0:0:0:0:0:0:0:1:63176	admin	REQUEST	[GET] http://localhost:8984/dba/static/codemirror/mode/xquery/xquery.js
13:57:36.321	0:0:0:0:0:0:0:1:63174	admin	REQUEST	[GET] http://localhost:8984/dba/static/editor.js
13:57:36.380	0:0:0:0:0:0:0:1:63174	admin	200		59.8 ms
13:57:36.381	0:0:0:0:0:0:0:1:63176	admin	200		63.71 ms
13:58:08.765	127.0.0.1:63179	admin	REQUEST	HELP	23.53 ms
13:58:08.766	127.0.0.1:63179	admin	OK		0.81 ms
13:58:11.807	127.0.0.1:63179	admin	REQUEST	LIST	0.59 ms
13:58:11.812	127.0.0.1:63179	admin	OK		5.29 ms
13:59:42.583	127.0.0.1:63188	admin	REQUEST	SET QUERYINFO	0.85 ms
13:59:42.584	127.0.0.1:63188	admin	OK	QUERYINFO: true	0.59 ms
13:59:42.585	127.0.0.1:63188	admin	REQUEST	SET SERIALIZE	0.36 ms
13:59:42.585	127.0.0.1:63188	admin	OK	SERIALIZE: false	0.27 ms
13:59:42.609	127.0.0.1:63188	admin	REQUEST	XQUERY if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	15.92 ms
13:59:42.681	127.0.0.1:63188	admin	OK	Query: if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	72.4 ms
13:59:49.284	0:0:0:0:0:0:0:1:63189	admin	REQUEST	[GET] http://localhost:8984/dba/databases
13:59:49.373	0:0:0:0:0:0:0:1:63189	admin	200		89.9 ms
13:59:51.110	0:0:0:0:0:0:0:1:63189	admin	REQUEST	[GET] http://localhost:8984/dba/database?name=TTT2
13:59:51.158	0:0:0:0:0:0:0:1:63189	admin	200		48.15 ms
13:59:53.342	0:0:0:0:0:0:0:1:63189	admin	REQUEST	[GET] http://localhost:8984/dba/databases
13:59:53.385	0:0:0:0:0:0:0:1:63189	admin	200		42.69 ms
13:59:54.838	0:0:0:0:0:0:0:1:63189	admin	REQUEST	[GET] http://localhost:8984/dba/database?name=TTT
14:00:10.306	0:0:0:0:0:0:0:1:63191	admin	REQUEST	[POST] http://localhost:8984/dba/databases
14:00:10.386	0:0:0:0:0:0:0:1:63191	admin	302		79.59 ms
14:00:10.386	0:0:0:0:0:0:0:1:63191	admin	200		0.12 ms
14:00:10.390	0:0:0:0:0:0:0:1:63191	admin	REQUEST	[GET] http://localhost:8984/dba/db-drop?name=TTT&name=TTT2&redirect=databases
14:00:10.419	0:0:0:0:0:0:0:1:63191	admin	302		29.59 ms
14:00:10.419	0:0:0:0:0:0:0:1:63191	admin	200		0.16 ms
14:00:10.422	0:0:0:0:0:0:0:1:63191	admin	REQUEST	[GET] http://localhost:8984/dba/databases?info=2%20databases%20were%20dropped.
14:00:10.456	0:0:0:0:0:0:0:1:63191	admin	200		34.1 ms
14:00:48.128	127.0.0.1:63193	admin	REQUEST	SET QUERYINFO	0.36 ms
14:00:48.133	127.0.0.1:63193	admin	OK	QUERYINFO: true	5.18 ms
14:00:48.134	127.0.0.1:63193	admin	REQUEST	SET SERIALIZE	0.22 ms
14:00:48.134	127.0.0.1:63193	admin	OK	SERIALIZE: false	0.15 ms
14:00:48.146	127.0.0.1:63193	admin	REQUEST	XQUERY if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	5.57 ms
14:00:48.159	127.0.0.1:63193	admin	ERROR	Query: if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	13.36 ms
14:01:12.146	127.0.0.1:63195	admin	REQUEST	SET QUERYINFO	0.3 ms
14:01:12.147	127.0.0.1:63195	admin	OK	QUERYINFO: true	0.19 ms
14:01:12.147	127.0.0.1:63195	admin	REQUEST	SET SERIALIZE	0.2 ms
14:01:12.147	127.0.0.1:63195	admin	OK	SERIALIZE: false	0.12 ms
14:01:12.149	127.0.0.1:63195	admin	REQUEST	XQUERY db:create(TTT)	0.23 ms
14:01:12.150	127.0.0.1:63195	admin	ERROR	Query: db:create(TTT) Optimized Query: db:create(TTT) Error: Stopped at ., 1/14: [XPDY0002] TTT: Context is undeclared.	0.67 ms
14:01:22.526	0:0:0:0:0:0:0:1:63198	admin	REQUEST	[GET] http://localhost:8984/dba/databases
14:01:22.612	0:0:0:0:0:0:0:1:63198	admin	200		85.49 ms
14:01:23.864	0:0:0:0:0:0:0:1:63198	admin	REQUEST	[POST] http://localhost:8984/dba/databases
14:01:23.886	0:0:0:0:0:0:0:1:63198	admin	302		22.53 ms
14:01:23.886	0:0:0:0:0:0:0:1:63198	admin	200		0.12 ms
14:01:23.889	0:0:0:0:0:0:0:1:63198	admin	REQUEST	[GET] http://localhost:8984/dba/db-create?redirect=databases
14:01:23.916	0:0:0:0:0:0:0:1:63198	admin	200		27.05 ms
14:01:35.470	0:0:0:0:0:0:0:1:63198	admin	REQUEST	[POST] http://localhost:8984/dba/db-create
14:01:35.544	0:0:0:0:0:0:0:1:63198	admin	302		74.21 ms
14:01:35.544	0:0:0:0:0:0:0:1:63198	admin	200		0.1 ms
14:01:35.547	0:0:0:0:0:0:0:1:63198	admin	REQUEST	[GET] http://localhost:8984/dba/database?name=TTT&info=Database%20%22TTT%22%20%20was%20created.
14:01:35.577	0:0:0:0:0:0:0:1:63198	admin	200		30.57 ms
14:01:52.924	127.0.0.1:63202	admin	REQUEST	SET QUERYINFO	0.42 ms
14:01:52.925	127.0.0.1:63202	admin	OK	QUERYINFO: true	0.23 ms
14:01:52.925	127.0.0.1:63202	admin	REQUEST	SET SERIALIZE	0.3 ms
14:01:52.925	127.0.0.1:63202	admin	OK	SERIALIZE: false	0.22 ms
14:01:52.938	127.0.0.1:63202	admin	REQUEST	XQUERY if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	5.21 ms
14:01:53.039	127.0.0.1:63202	admin	OK	Query: if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	101.26 ms
14:02:11.161	127.0.0.1:63207	admin	REQUEST	SET QUERYINFO	0.45 ms
14:02:11.161	127.0.0.1:63207	admin	OK	QUERYINFO: true	0.25 ms
14:02:11.161	127.0.0.1:63207	admin	REQUEST	SET SERIALIZE	0.25 ms
14:02:11.162	127.0.0.1:63207	admin	OK	SERIALIZE: false	0.19 ms
14:02:11.169	127.0.0.1:63207	admin	REQUEST	XQUERY if (fn:not(db:exists('TTT', 'b30dcca4-dee2-4abc-ac6f-a1e5386903d3'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"b30dcca4-dee2-4abc-ac6f-a1e5386903d3","itemType":"967662901","itemTypeName":"HUSQVARNA LC 247Li","itemCount":5,"environment":"TEST","deployed":"2019-02-06 09:20:28.918+01","configurations":[{"events":[],"status":"READY","updated":"2019-01-30 10:14:29.193+01","data":{"ipr_id":"edb39b77-7379-452b-b68b-fd01fe97d88b","version":0,"serial_number":{"type":"husqvarna-id","value":"9676629014F42019331010027"},"template_id":"6a974e10-d9c5-41f3-94c3-5a61b549dd3e","template_version":0,"created_by":"ELRAD","created":1548839669193,"updated_by":"ELRAD","updated":1548839669193,"capabilities":{},"configuration_metadata":{"version":1},"configuration":{"serial":"9676629014F42019331010027"},"identifiers":[{"name":"ipr:husqvarna-id","value":"9676629014F42019331010027"}],"tags":[{"name":"batch-id","value":"b30dcca4-dee2-4abc-ac6f-a1e5386903d3"}],"status":"NEW","qr_c...	2.15 ms
14:02:11.247	127.0.0.1:63207	admin	OK	Query: if (fn:not(db:exists('TTT', 'b30dcca4-dee2-4abc-ac6f-a1e5386903d3'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"b30dcca4-dee2-4abc-ac6f-a1e5386903d3","itemType":"967662901","itemTypeName":"HUSQVARNA LC 247Li","itemCount":5,"environment":"TEST","deployed":"2019-02-06 09:20:28.918+01","configurations":[{"events":[],"status":"READY","updated":"2019-01-30 10:14:29.193+01","data":{"ipr_id":"edb39b77-7379-452b-b68b-fd01fe97d88b","version":0,"serial_number":{"type":"husqvarna-id","value":"9676629014F42019331010027"},"template_id":"6a974e10-d9c5-41f3-94c3-5a61b549dd3e","template_version":0,"created_by":"ELRAD","created":1548839669193,"updated_by":"ELRAD","updated":1548839669193,"capabilities":{},"configuration_metadata":{"version":1},"configuration":{"serial":"9676629014F42019331010027"},"identifiers":[{"name":"ipr:husqvarna-id","value":"9676629014F42019331010027"}],"tags":[{"name":"batch-id","value":"b30dcca4-dee2-4abc-ac6f-a1e5386903d3"}],"status":"NEW","qr_c...	78.37 ms
14:02:38.003	127.0.0.1:63219	admin	REQUEST	SET QUERYINFO	0.36 ms
14:02:38.003	127.0.0.1:63219	admin	OK	QUERYINFO: true	0.2 ms
14:02:38.004	127.0.0.1:63219	admin	REQUEST	SET SERIALIZE	0.21 ms
14:02:38.004	127.0.0.1:63219	admin	OK	SERIALIZE: false	0.14 ms
14:02:38.009	127.0.0.1:63219	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	1.09 ms
14:02:38.025	127.0.0.1:63219	admin	OK	Query: let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>) Compiling: - pre-evaluate fn:collection([uri]) to document-node() sequence: collection("TTT") -> (db:open-pre("TTT", 0), ...) - remove unknown element/attribute *:delete - pre-evaluate cached path to empty sequence: $doc_1/*:batch/() -> () - pre-evaluate fn:exists(items) to xs:boolean item: exists...	17.15 ms
14:02:53.553	127.0.0.1:63221	admin	REQUEST	SET QUERYINFO	0.45 ms
14:02:53.553	127.0.0.1:63221	admin	OK	QUERYINFO: true	0.23 ms
14:02:53.554	127.0.0.1:63221	admin	REQUEST	SET SERIALIZE	0.29 ms
14:02:53.554	127.0.0.1:63221	admin	OK	SERIALIZE: false	0.17 ms
14:02:53.559	127.0.0.1:63221	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.59 ms
14:02:53.567	127.0.0.1:63221	admin	OK	Query: let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>) Compiling: - pre-evaluate fn:collection([uri]) to document-node() sequence: collection("TTT") -> (db:open-pre("TTT", 0), ...) - remove unknown element/attribute *:delete - pre-evaluate cached path to empty sequence: $doc_1/*:batch/() -> () - pre-evaluate fn:exists(items) to xs:boolean item: exists...	8.29 ms
14:02:58.958	127.0.0.1:63222	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.48 ms
14:02:58.963	127.0.0.1:63222	admin	OK	Query executed in 4.61 ms.	4.95 ms
14:03:11.175	127.0.0.1:63224	admin	REQUEST	XQUERY db:delete('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f')	0.41 ms
14:03:11.223	127.0.0.1:63224	admin	OK	Query executed in 47.4 ms.	47.79 ms
14:03:13.197	127.0.0.1:63225	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.35 ms
14:03:13.205	127.0.0.1:63225	admin	OK	Query executed in 7.55 ms.	8.05 ms
14:03:16.875	127.0.0.1:63226	admin	REQUEST	XQUERY db:delete('TTT', 'b30dcca4-dee2-4abc-ac6f-a1e5386903d3')	0.28 ms
14:03:16.903	127.0.0.1:63226	admin	OK	Query executed in 26.86 ms.	27.21 ms
14:03:18.564	127.0.0.1:63227	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.51 ms
14:03:18.567	127.0.0.1:63227	admin	OK	Query executed in 3.09 ms.	3.7 ms
14:03:23.407	127.0.0.1:63229	admin	REQUEST	SET QUERYINFO	0.38 ms
14:03:23.407	127.0.0.1:63229	admin	OK	QUERYINFO: true	0.22 ms
14:03:23.408	127.0.0.1:63229	admin	REQUEST	SET SERIALIZE	0.3 ms
14:03:23.408	127.0.0.1:63229	admin	OK	SERIALIZE: false	0.23 ms
14:03:23.416	127.0.0.1:63229	admin	REQUEST	XQUERY if (fn:not(db:exists('TTT', 'b30dcca4-dee2-4abc-ac6f-a1e5386903d3'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"b30dcca4-dee2-4abc-ac6f-a1e5386903d3","itemType":"967662901","itemTypeName":"HUSQVARNA LC 247Li","itemCount":5,"environment":"TEST","deployed":"2019-02-06 09:20:28.918+01","configurations":[{"events":[],"status":"READY","updated":"2019-01-30 10:14:29.193+01","data":{"ipr_id":"edb39b77-7379-452b-b68b-fd01fe97d88b","version":0,"serial_number":{"type":"husqvarna-id","value":"9676629014F42019331010027"},"template_id":"6a974e10-d9c5-41f3-94c3-5a61b549dd3e","template_version":0,"created_by":"ELRAD","created":1548839669193,"updated_by":"ELRAD","updated":1548839669193,"capabilities":{},"configuration_metadata":{"version":1},"configuration":{"serial":"9676629014F42019331010027"},"identifiers":[{"name":"ipr:husqvarna-id","value":"9676629014F42019331010027"}],"tags":[{"name":"batch-id","value":"b30dcca4-dee2-4abc-ac6f-a1e5386903d3"}],"status":"NEW","qr_c...	1.46 ms
14:03:23.485	127.0.0.1:63229	admin	OK	Query: if (fn:not(db:exists('TTT', 'b30dcca4-dee2-4abc-ac6f-a1e5386903d3'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"b30dcca4-dee2-4abc-ac6f-a1e5386903d3","itemType":"967662901","itemTypeName":"HUSQVARNA LC 247Li","itemCount":5,"environment":"TEST","deployed":"2019-02-06 09:20:28.918+01","configurations":[{"events":[],"status":"READY","updated":"2019-01-30 10:14:29.193+01","data":{"ipr_id":"edb39b77-7379-452b-b68b-fd01fe97d88b","version":0,"serial_number":{"type":"husqvarna-id","value":"9676629014F42019331010027"},"template_id":"6a974e10-d9c5-41f3-94c3-5a61b549dd3e","template_version":0,"created_by":"ELRAD","created":1548839669193,"updated_by":"ELRAD","updated":1548839669193,"capabilities":{},"configuration_metadata":{"version":1},"configuration":{"serial":"9676629014F42019331010027"},"identifiers":[{"name":"ipr:husqvarna-id","value":"9676629014F42019331010027"}],"tags":[{"name":"batch-id","value":"b30dcca4-dee2-4abc-ac6f-a1e5386903d3"}],"status":"NEW","qr_c...	69.7 ms
14:03:26.227	127.0.0.1:63230	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.5 ms
14:03:26.233	127.0.0.1:63230	admin	OK	Query executed in 4.93 ms.	5.33 ms
14:03:31.976	127.0.0.1:63232	admin	REQUEST	SET QUERYINFO	0.28 ms
14:03:31.976	127.0.0.1:63232	admin	OK	QUERYINFO: true	0.19 ms
14:03:31.976	127.0.0.1:63232	admin	REQUEST	SET SERIALIZE	0.21 ms
14:03:31.976	127.0.0.1:63232	admin	OK	SERIALIZE: false	0.14 ms
14:03:31.989	127.0.0.1:63232	admin	REQUEST	XQUERY if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	4.2 ms
14:03:32.066	127.0.0.1:63232	admin	OK	Query: if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	76.83 ms
14:03:35.281	127.0.0.1:63235	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.47 ms
14:03:35.286	127.0.0.1:63235	admin	OK	Query executed in 4.75 ms.	5.12 ms
14:03:39.894	127.0.0.1:63236	admin	REQUEST	XQUERY db:delete('TTT', 'b30dcca4-dee2-4abc-ac6f-a1e5386903d3')	0.41 ms
14:03:39.937	127.0.0.1:63236	admin	OK	Query executed in 41.91 ms.	42.24 ms
14:03:42.487	127.0.0.1:63237	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.54 ms
14:03:42.491	127.0.0.1:63237	admin	OK	Query executed in 3.64 ms.	3.95 ms
14:03:55.353	127.0.0.1:63241	admin	REQUEST	XQUERY db:delete('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f')	0.3 ms
14:03:55.380	127.0.0.1:63241	admin	OK	Query executed in 26.74 ms.	27.06 ms
14:03:59.459	127.0.0.1:63243	admin	REQUEST	SET QUERYINFO	0.32 ms
14:03:59.459	127.0.0.1:63243	admin	OK	QUERYINFO: true	0.2 ms
14:03:59.459	127.0.0.1:63243	admin	REQUEST	SET SERIALIZE	0.18 ms
14:03:59.459	127.0.0.1:63243	admin	OK	SERIALIZE: false	0.12 ms
14:03:59.470	127.0.0.1:63243	admin	REQUEST	XQUERY if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	4.8 ms
14:03:59.566	127.0.0.1:63243	admin	OK	Query: if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	95.59 ms
14:04:05.357	127.0.0.1:63247	admin	REQUEST	SET QUERYINFO	0.36 ms
14:04:05.357	127.0.0.1:63247	admin	OK	QUERYINFO: true	0.22 ms
14:04:05.357	127.0.0.1:63247	admin	REQUEST	SET SERIALIZE	0.19 ms
14:04:05.358	127.0.0.1:63247	admin	OK	SERIALIZE: false	0.15 ms
14:04:05.362	127.0.0.1:63247	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.36 ms
14:04:05.367	127.0.0.1:63247	admin	OK	Query: let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>) Compiling: - pre-evaluate fn:collection([uri]) to document-node() item: collection("TTT") -> db:open-pre("TTT", 0) - remove unknown element/attribute *:delete - pre-evaluate cached path to empty sequence: $doc_1/*:batch/() -> () - pre-evaluate fn:exists(items) to xs:boolean item: exists(()) -> fal...	4.77 ms
14:04:14.931	127.0.0.1:63251	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.57 ms
14:04:14.936	127.0.0.1:63251	admin	OK	Query executed in 5.01 ms.	5.44 ms
14:05:16.280	127.0.0.1:63254	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.37 ms
14:05:16.284	127.0.0.1:63254	admin	OK	Query executed in 3.62 ms.	3.98 ms
14:05:25.104	127.0.0.1:63255	admin	REQUEST	XQUERY db:delete('TTT', 'b30dcca4-dee2-4abc-ac6f-a1e5386903d3')	0.31 ms
14:05:25.107	127.0.0.1:63255	admin	OK	Query executed in 3.05 ms.	3.38 ms
14:05:26.786	127.0.0.1:63256	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.35 ms
14:05:26.791	127.0.0.1:63256	admin	OK	Query executed in 3.83 ms.	4.15 ms
14:05:37.622	127.0.0.1:63258	admin	REQUEST	XQUERY db:delete('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f')	0.27 ms
14:05:37.652	127.0.0.1:63258	admin	OK	Query executed in 29.7 ms.	30.04 ms
14:05:41.286	127.0.0.1:63259	admin	REQUEST	SET QUERYINFO	0.44 ms
14:05:41.286	127.0.0.1:63259	admin	OK	QUERYINFO: true	0.2 ms
14:05:41.287	127.0.0.1:63259	admin	REQUEST	SET SERIALIZE	0.39 ms
14:05:41.287	127.0.0.1:63259	admin	OK	SERIALIZE: false	0.18 ms
14:05:41.301	127.0.0.1:63259	admin	REQUEST	XQUERY if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	4.11 ms
14:05:41.366	127.0.0.1:63259	admin	OK	Query: if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	65.39 ms
14:05:47.194	127.0.0.1:63260	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.51 ms
14:05:47.198	127.0.0.1:63260	admin	OK	Query executed in 3.57 ms.	3.91 ms
14:05:50.772	127.0.0.1:63261	admin	REQUEST	XQUERY db:delete('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f')	0.27 ms
14:05:50.798	127.0.0.1:63261	admin	OK	Query executed in 25.73 ms.	26.03 ms
14:05:55.896	127.0.0.1:63262	admin	REQUEST	SET QUERYINFO	0.43 ms
14:05:55.897	127.0.0.1:63262	admin	OK	QUERYINFO: true	0.38 ms
14:05:55.897	127.0.0.1:63262	admin	REQUEST	SET SERIALIZE	0.3 ms
14:05:55.898	127.0.0.1:63262	admin	OK	SERIALIZE: false	0.23 ms
14:05:55.905	127.0.0.1:63262	admin	REQUEST	XQUERY if (fn:not(db:exists('TTT', 'b30dcca4-dee2-4abc-ac6f-a1e5386903d3'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"b30dcca4-dee2-4abc-ac6f-a1e5386903d3","itemType":"967662901","itemTypeName":"HUSQVARNA LC 247Li","itemCount":5,"environment":"TEST","deployed":"2019-02-06 09:20:28.918+01","configurations":[{"events":[],"status":"READY","updated":"2019-01-30 10:14:29.193+01","data":{"ipr_id":"edb39b77-7379-452b-b68b-fd01fe97d88b","version":0,"serial_number":{"type":"husqvarna-id","value":"9676629014F42019331010027"},"template_id":"6a974e10-d9c5-41f3-94c3-5a61b549dd3e","template_version":0,"created_by":"ELRAD","created":1548839669193,"updated_by":"ELRAD","updated":1548839669193,"capabilities":{},"configuration_metadata":{"version":1},"configuration":{"serial":"9676629014F42019331010027"},"identifiers":[{"name":"ipr:husqvarna-id","value":"9676629014F42019331010027"}],"tags":[{"name":"batch-id","value":"b30dcca4-dee2-4abc-ac6f-a1e5386903d3"}],"status":"NEW","qr_c...	0.84 ms
14:05:55.977	127.0.0.1:63262	admin	OK	Query: if (fn:not(db:exists('TTT', 'b30dcca4-dee2-4abc-ac6f-a1e5386903d3'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"b30dcca4-dee2-4abc-ac6f-a1e5386903d3","itemType":"967662901","itemTypeName":"HUSQVARNA LC 247Li","itemCount":5,"environment":"TEST","deployed":"2019-02-06 09:20:28.918+01","configurations":[{"events":[],"status":"READY","updated":"2019-01-30 10:14:29.193+01","data":{"ipr_id":"edb39b77-7379-452b-b68b-fd01fe97d88b","version":0,"serial_number":{"type":"husqvarna-id","value":"9676629014F42019331010027"},"template_id":"6a974e10-d9c5-41f3-94c3-5a61b549dd3e","template_version":0,"created_by":"ELRAD","created":1548839669193,"updated_by":"ELRAD","updated":1548839669193,"capabilities":{},"configuration_metadata":{"version":1},"configuration":{"serial":"9676629014F42019331010027"},"identifiers":[{"name":"ipr:husqvarna-id","value":"9676629014F42019331010027"}],"tags":[{"name":"batch-id","value":"b30dcca4-dee2-4abc-ac6f-a1e5386903d3"}],"status":"NEW","qr_c...	72.09 ms
14:05:59.477	127.0.0.1:63263	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.47 ms
14:05:59.481	127.0.0.1:63263	admin	OK	Query executed in 3.45 ms.	3.76 ms
14:06:10.463	127.0.0.1:63265	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.35 ms
14:06:10.466	127.0.0.1:63265	admin	OK	Query executed in 3.11 ms.	3.45 ms
14:06:14.905	127.0.0.1:63266	admin	REQUEST	XQUERY db:delete('TTT', 'b30dcca4-dee2-4abc-ac6f-a1e5386903d3')	0.26 ms
14:06:14.935	127.0.0.1:63266	admin	OK	Query executed in 29.62 ms.	29.95 ms
14:06:17.315	127.0.0.1:63267	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.49 ms
14:06:17.319	127.0.0.1:63267	admin	OK	Query executed in 2.77 ms.	3.06 ms
14:06:21.888	127.0.0.1:63268	admin	REQUEST	SET QUERYINFO	0.32 ms
14:06:21.888	127.0.0.1:63268	admin	OK	QUERYINFO: true	0.19 ms
14:06:21.889	127.0.0.1:63268	admin	REQUEST	SET SERIALIZE	0.39 ms
14:06:21.889	127.0.0.1:63268	admin	OK	SERIALIZE: false	0.16 ms
14:06:21.903	127.0.0.1:63268	admin	REQUEST	XQUERY if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	4.28 ms
14:06:21.973	127.0.0.1:63268	admin	OK	Query: if (fn:not(db:exists('TTT', 'ea827443-2940-4bdc-a86a-9cedd0b7096f'))) then (db:add('TTT', <batch type='object'>{json:parse(``[{"batchID":"ea827443-2940-4bdc-a86a-9cedd0b7096f","itemType":"907123928","itemTypeName":"-","itemCount":10,"environment":"TEST","deployed":"2019-02-06 09:18:27.457+01","configurations":[{"events":[],"status":"READY","updated":"2018-10-02 17:02:02.949+02","data":{"capabilities":{"connected":{"security":{"pre_shared_keys":[{"key_spec":"AES_128","name":"test","usage_type":"DEFAULT"}]}},"embedded_software":{"embedded_software_id":"d80b52bf-0a13-4557-8898-19155530d5a0"}},"components":{},"configuration":{},"configuration_metadata":{"version":1},"created":1538492522949,"created_by":"IPR_ADMIN","data_reliability":"TRUSTED","identifiers":[{"name":"ipr:husqvarna-id","value":"907123928OGJ2099013010045"}],"ipr_id":"f486b9f4-49cc-414b-a3c6-06719e479594","product_id":"47827777-d395-4e91-8ae2-a1853a4086d5","qr_code":"HTTPS://HQR.CODES?HID=907123928OGJ2099013010045&IPR=F...	70.73 ms
14:06:25.075	127.0.0.1:63270	admin	REQUEST	XQUERY let $result := ( for $doc in collection('TTT') return <_ type='object'><id>{$doc/batch/batchID/text()}</id> <type>{$doc/batch/itemType/text()}</type> <product>{$doc/batch/itemTypeName/text()}</product> <deployed>{$doc/batch/deployed/text()}</deployed> <delete type='boolean'>{fn:exists($doc/batch/delete)}</delete> <environment>{$doc/batch/environment/text()}</environment> <total type='number'>{$doc/batch/itemCount/text()}</total> <synced type='number'>{fn:count($doc/batch/configurations/_/status[text()='SYNCT']/..)}</synced> <ready type='number'>{fn:count($doc/batch/configurations/_/status[text()='READY']/..)}</ready> </_> ) return json:serialize(<json type='array'> { $result } </json>)	0.48 ms
14:06:25.080	127.0.0.1:63270	admin	OK	Query executed in 4.45 ms.	4.85 ms
14:07:45.384	SERVER	admin	OK	Server was stopped (port: 1984).
14:07:45.384	SERVER	admin	OK	HTTP Server was stopped (port: 8984).
