Page History
Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Syntax |
| ||||||
---|---|---|---|---|---|---|---|
Semantics | Sets the current transaction ID to the specified String value.
| ||||||
Examples |
|
Multiexcerpt include | ||||||
---|---|---|---|---|---|---|
|
Multiexcerpt | ||
---|---|---|
| ||
In the Analyzer, the transaction log of an xUML service will be sorted by transaction ID. |
How to Limit the Size of a Transaction ID
Given a transaction ID aTransactionID, for example taken from the process ID of a persistent state instance
Code Block |
---|
local aTransactionID = self.getProcessID(); |
You can make sure that the transaction ID is a proper at-most-40-byte-sequence by doing the following preprocessing:
Cut the transaction ID after 40 bytes and take care that multibyte characters are not split in between. This is done by calculating the amount of superfluous bytes in a 40 character sequence.
Code Block local superBytes = aTransactionID.substring(0, 40).transcodeToBlob('utf-8').blobLength() - 40;
Next, reduce the transaction ID by the calculated amount of characters.
Code Block setTransactionID(aTransactionID.substring(0, 40 - superBytes));