Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

Re: URLs in BLS

$
0
0

Hi Shashank,

  You would need two transactions for this. 1. TransactionUnderTest 2.ObserverTransaction, This is because the monitoring can only be done when the transaction is executed through "Runner" servlet. Hence, a web/URL call becomes mandatory.

 

The transactionUnderTest is the one you would be monitoring. While, the ObserverTransaction would run your transaction and get the statistics.

 

 

1. In the ObserverTransaction,   Use the HTTPPost action block to call a transactionUnderTest  with logging switched on.

    http://<server>:<port>/XMII/Runner?Transaction=<Project>/<Path>/<transactionUnderTest>&LogStatisticsToDB=true

&content-type=text/xml

 

2. From the XML output of the action block, pick the transaction ID. This could be done by picking the transaction id from the XML response.

The HTTPPost has an output param, ReturnAsXML. Create a transaction property of type XML, call it "InXML" and map it to it.

 

Capture.JPG

 

The transaction property "InXML" will have the returned XML now. Next, assign trasaction Id . Create a transaction property of type string. Call it "Id". Map the XML attribute TransactionID to "Id". Example,

Transaction.InXML{/Rowsets/@TransactionID} .

Capture.JPG

This step (step 2) has to be done in an assignment action block.

 

3. Pass this transaction Id in this URL, http://<server>:<port>/XMII/Illuminator?service=BLSManager&Mode=Stats&ID="&Transaction.Id&"&content-type=text/xml . This url can be an input to an HTTPPost action block.

 

4. The output of this block would give you the statistics of the transaction,

 

Additional Info:

 

The first HTTPPost action block will return an XML like,

 

<?xml version="1.0" encoding="UTF-8" ?> <Rowsets DateCreated="2013-07-04T10:02:23" EndDate="2013-07-04T10:02:23" StartDate="2013-07-04T10:02:23" Version="15.0.0 Build(258)" TransactionID="311"><Messages>  <Message>TRANSACTION EXECUTED OK</Message>   </Messages>  </Rowsets>

 

When you create a transaction property of type XML to map the first output, use the above XML as default value.

 

Your observer transaction now, would look like

 

Capture.JPG

 

Regards

Tufale Ashai

 

Message was edited by: Tufale Ashai


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>