« Back to CVP - All Versions

how to identify the calling application in case of App Transfers

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi
 
If Application A (Calling application) is calling Application B (Called application), the session data can be passed from A to B.  and the session can be accessed in Application B by prefexing the Calling application name before the Session Variable.
 
e.g., if a session variable called "SESS_LANGUAGE" in Application A can be accessed with the name of "A_SESS_LANGUAGE" from Application B.
 
This is fine in case of a single application is calling a single application.  But there is a requirement like more than 1 application (say here in our case 23 applications) may call each other applications.
 
So, my question is how to identify the Calling application name from the Called Application.
 
See the below example: Let's assume there 3 applications named A, B & C.
 
C can be called from both A or B.  Then unless we know the Calling application name, we cannot access the respective session  data of the Calling application.
 
This requirement is for a giant customer in India and Cisco also involves in this project, we need a perfect solution ASAP.
 
Please let us know whether any method available to see what is the Calling application name ?  OR, is there anyway that the entire Session data (All the session variables) of the Calling application can be accessed from the Called application.

There's a java method getSrcAppName (see below) and there's also a variable you can access in the decision editor in Studio under the Call Data tab (Source App Name) that is blank if it's a new call, otherwise has the app name.
 
 
<pre>public http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html getSrcAppName()</pre>
<dl><dd>This method returns the name of the application that performed an application transfer to
reach the current application. If the physical call began with this application, the method
returns a <code>null</code>.
 
</dd><dd>
</dd><dd><dl><dt>Returns:</dt><dd>The name of the application that performed an application transfer to this
application, or <code>null</code> if the caller called directly into this
application.</dd></dl>
</dd></dl>

RE: how to identify the calling application in case of App Transfers
java method variable assignment continuity apps
Answer
10/28/09 7:47 PM as a reply to Janine Graves.
There's a java method getSrcAppName (see below) and there's also a variable you can access in the decision editor in Studio under the Call Data tab (Source App Name) that is blank if it's a new call, otherwise has the app name.
 
 
<pre>public <a>http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html</a>] getSrcAppName()</pre>


 
Can this Java method be used directly within a Variable Reference? We have sevral interconnected apps that would benefit from this. It would provide data continuity for a full call-session rather than only for a application session.
 
Example :
{GetSrcAppName().Data.Session.Status}

Edwin,
 

{GetSrcAppName().Data.Session.Status}

 
Use "{CallData.SOURCE}" when in Studio element, else use GetSrcAppName() in java code.
 
Hth,
Ranjana.

Thanks Ranjana, It good to know  that we can utlize the application session information called from one application to another application.