on 11-03-2008 9:57 AM
Hi all,
does anybody know a way to access the BLS transaction name dynamically in the link editor? When I do Error Logging I want to pass the name of the BLS transaction.
thanks,
Matthias
No built-in technique that I'm aware of, but a custom action could use the getName() method on the Transaction object to obtain it.
String sName = "";
public String getTransactionName() {
return sName;
}
void Invoke(Transaction transaction, ILog log) {
sName = transaction.getName();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Matthias,
The simplest method is to create a local property (Local.TransactionName) and store the name there. I add this property to every transaction I build for logging and error handling purposes. It can also be helpful in troubleshooting linked transactions. Not real sophisticated, but easy to implement and simple to maintain.
Regards,
Mike
Sorry all, I was mistaken about the purpose of this post...
Still referring to MII 12.1 and newer:
You can use the transactionid link editor expression function to get the GUID of the currently running transaction. This GUID can be cross-referenced with the Transaction Manager page to display specific execution detail and the transaction path/name.
Regards,
Sam
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.