Produces an HTML version, ready-to-display, of the most recent transactions of a Flex document.
URL
(GET) /api/apps/wbflex/transactions/{id}/log/html
PARAMETERS
URL parameters are:
id | The Flex document identifier. Either a document ID (such as 1000) or a job ID (such as c300). | int/string, Mandatory |
skip | Optional, default is 0. Permits to paginate transactions. A value of 20 means that we show the 20th, 21th etc. transaction | int?, Optional |
take | Optional, default is 20. Retrieve this number of transaction. The maximum allowed value is 100. | int?, Optional |
bodyOnly | Optional, default is false.
| bool?, Optional |
RESULTS
HTML content.
Set bodyOnly to false for a complete HTML document:
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Transactions - sample.wbflex</title><style type="text/css"> .flex-body { font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 12px; margin-bottom: 40px; } .flex-header { border: 1px solid #bbbbbb; background-color: #fdfdfd; margin:0; padding:0; } .flex-table { border-collapse: collapse; width: 100%; margin-bottom: 6px; } .flex-table td { padding: 6px 6px 6px 6px; } .flex-table-column-1 { width: 350px; } .flex-table-column-2 { width: 250px; } .flex-table-column-3 { } .flex-tr-align-top td { vertical-align: top; } .flex-transac { border: 1px solid #bbbbbb; background-color: #fdfdfd; margin:0; padding:0; margin-top: 40px; } .flex-transac-success { background-color: inherited; } .flex-transac-failure { background-color: orange; } .flex-transac-title { font-weight: bold; font-size: 14px; } .flex-section tr { } .flex-section td { border-bottom: 1px solid #d0d0d0; font-weight: bold; font-size: 14px; padding-top: 16px; } .flex-margin-top { margin-top: 6px; } .flex-margin-top-twice { margin-top: 20px; } .flex-comments { font-size: 11px; font-weight: normal; color: #444444; } .flex-text-green { color: green } .flex-text-red { color: red } .flex-text-small { font-size: 11px; } .flex-text-strong { font-weight: bold; } </style> </head><body class="flex-body"><div class="flex-header"><table class="flex-table"><colgroup><col class="flex-table-column-1"></col><col class="flex-table-column-2"></col><col class="flex-table-column-3"></col></colgroup><tr><td>Flex Document:</td><td>JAWS-417.wbflex</td><td class="flex-comments">ID=10683</td></tr><tr><td>Project:</td><td>JAWS-417 ......
Opening this in a browser, gives:
Set bodyOnlyto true for body only:
<div class="flex-header"><table class="flex-table"><colgroup><col class="flex-table-column-1"></col><col class="flex-table-column-2"></col><col class="flex-table-column-3"></col></colgroup><tr><td>Flex Document:</td><td>JAWS-417.wbflex</td><td class="flex-comments">ID=10683</td></tr><tr><td>Project:</td><td>JAWS-417</td><td class="flex-comments">ID=3623</td></tr><tr><td>Source language:</td><td>English (United Kingdom) (en-GB)</td><td></td></tr><tr><td>Target language(s):</td><td>French (France) (fr-FR)</td><td></td></tr><tr><td>Filter name:</td><td>SRX</td><td class="flex-comments">Filter properties are assigned when creating Flex document.</td></tr></table></div><div class="flex-margin-top"><p>Most recent 6 out of 6 events:</p></div><div class="flex-transac"><table class="flex-table" style="100%"><colgroup><col class="flex-table-column-1"></col><col class="flex-table-column-2"></col><col class="flex-table-column-3"></col></colgroup><tr class="flex-transac-success"><td class="flex-transac-title" colspan="3">#1: 10/06/2020 17:36 - EVENT<div class="flex-comments" style="float:right">Transaction: 405e37d6-90f4-4667-b675-eefc8de03cc3</div></td></tr><tr class="flex-tr-align-top"><td>Status:</td><td class="colspan" colspan="2"> ......
EXAMPLES
-