Skip to main content
Jump to: navigation, search

Difference between revisions of "Stardust/Knowledge Base/Integration/UI/UIMashup"

Line 33: Line 33:
 
==== Code changes at External Web Application End<br>  ====
 
==== Code changes at External Web Application End<br>  ====
  
It would require to write some code to retrieve the parameters (sent from Stardust) inside the External Web Application. Also Web Application would require some code to send back some data to Stardust from Web Application.<br>HelloServlet is a servlet inside HelloWorld Application. The request is made to this servlet from Stardust when Call WebApplication activity is performed.<br><br>  
+
It would require to write some code to retrieve the parameters (sent from Stardust) inside the External Web Application. Also Web Application would require some code to send back some data to Stardust from Web Application.<br>HelloServlet is a servlet inside HelloWorld Application. The request is made to this servlet from Stardust when Call WebApplication activity is performed.<br>
 +
 
 +
Please refer to sample code inside the servlet. It has proper comments with the code which will helps in understanding how data can be retrieved inside Web Application. Similarly it explains as how data can be sent back to Stardust from this Web Application.<br>The code snippet to retrieve the data inside Web Application:<br><br>  
  
 
<br>
 
<br>

Revision as of 05:45, 9 November 2011

Purpose

The standard UI technologies available in the modeling environment are:

  • JSF
  • JSP
  • JFC

Any existing web-based UI components potentially residing in different web application can be displayed and used as inside the Stardust Process Portal when successful integrations with other web-based UI technologies exist, e.g Struts, Grails..etc

Calling an External Web Application

Following are the steps to be performed:

  • Create an Application Activity
  • Map this activity with external web application.
  1. Mention the URL of the Web Application.
  2. Mention the Input & Output parameters.
  • Do In/Out data mapping for the activity. Stardust to Web Application, along with the process model, Download Here

a). Enter Name Activity

This is a manual activity. The user is asked to enter User Name which Stardust will store in a primitive data type (here username). Also user is asked to enter Name, Age & Salary which will be stored in a structured data type (here PersonRequestData) in Stardust.   

b). Call WebApplication Activity

 Call Web Application is an application activity. username & PersonRequestData are the inputs for this activity.
This model uses a sample External Web Application (here HelloWorld Application). This application will be called when Call Web Application activity is performed.
The model has responsedata & PersonReponseData which are the response from External Web Application and it will be displayed in the Stardust screen. responsedata is a primitive data type while PersonReponseData is a structured data type of type Person(which has Name, Age & Salary).
The modeler would require to enter the URL & Input/Output parameter for HelloWorld Application. Please refer to the attached model to see how these configurations are done. These screen shots show the details:
Also the modeler would require to provide all the In/Out mapping for activity Call Web Application. Please see the attached screen shot for one of the sample mapping. Please refer to the model to see the mapping for all the parameters.    

c). Display Response Activity
     This activity is used to display the response received from the HelloWorld Application

Code changes at External Web Application End

It would require to write some code to retrieve the parameters (sent from Stardust) inside the External Web Application. Also Web Application would require some code to send back some data to Stardust from Web Application.
HelloServlet is a servlet inside HelloWorld Application. The request is made to this servlet from Stardust when Call WebApplication activity is performed.

Please refer to sample code inside the servlet. It has proper comments with the code which will helps in understanding how data can be retrieved inside Web Application. Similarly it explains as how data can be sent back to Stardust from this Web Application.
The code snippet to retrieve the data inside Web Application:


Back to the top