Instantiating a eInsight business process through web application
Hi all,
Has anybody ever tried instantiating a eInsight business process involving user activities by clicking a link on a web application? All the tutorials I have seen so far are all based on input files. Could anybody please refer me to some sample where a eInsight process is started by clicking a link or rather interactively.
Thanks & Regards,
Sujoy
An eInsight Business Process is instantated when a message for its initial Receive Activity becomes available for delivery. If you contrive to deliver a message to eInsight's BP from a Web Applicatin you will achieve the result you seek. The receive activity can be associated with a File eWay, a JMS Client end-point or any numer of other end points/adapters/connectors capable of receiving a message. You could, for example, use the JMS API Kit in a JSP in your web application to send a message to a JMS Receive activity that starts the BP. That presupposes that your web application is external to the Java CAPS solution. You could also build your web application using the eVision product, which is specifically designed to allow you to build Java CAPS-based web applications/composite applications. Have a look at eVision to see if you can use that to achieve what you need to achieve.
Similar Messages
-
Separating heavy duty business process from web application
I'm working with a web application that just runs in a Servlet container, Jetty actually. I'm wondering what the best way to separate resource intensive processes, such as a search indexing process, from the main web application. These resource intensive processes might run at scheduled times, or they might be triggered by the events in the web application. I assume the second thing might incur much more complications on the solutions. I have a lot of questions about this, but for now, I'd just like to have some folks point out the common solutions. Changing to a EE application server is NOT an option.
chadmichael wrote:
Couple of questions:
1) What's the benefit of going to another app if you're still on the same server? I'm not being coy, I'm just trying to get a feel for the pros and cons. You could always run something on a timer from within the web application. Is there a performance benefit from being in another JVM? Then run it on the same server. No need to run it on another server if a separate JVM will do it for you.
2) How would you communicate with the main app if you needed to receive events or something? RMI?You stated it was on a timer. There is no need to be on the same server to run things from a timer. If it needs to be event driven a simple way would be to set up a separate instance of Tomcat (or Jetty) on the same or different server. Refactor out what ever the offending code is into separate servlet and have your main app just send the events off to the other instance.
There are a lot of ways to go about this. They depend on what your needs are. -
JCAPS 5.1.1 Java Collaborations in eInsight Business Process
We currently use JCAPS version 5.1.1. We use Java Collaborations (jcd) services embedded on eInsight Business process(bp) to complete a business process.
Question:
Java Exception from a collaboration (jcd) is received by business process (bp) only if I have an output specified for that collaboration. Please let me know if this is a bug or a feature.Consider that we have a JCD with input and output defined. When we drag this JCD service to eInsight business process canvas, bp creates 3 business attributes (ie 1-input, 2-output and 3-JavaException). We can use a named exception handler and use 3-JavaException attribute to handle exceptions from JCD Service.
Consider that we have a JCD with input (Like a One-Way service) defined. When we drag this JCD service to eInsight business process canvas, bp creates only 1 business attribute (ie 1- input). JCD service is capable of throwing an exception. How do we catch/handle this exception?
Thanks,
Siva -
Lookout does not recognize passwords when attempting access to client process through web
When accessing client process through a web browser Lookout prompts for username and password but doesn't accept valid username and password.
Passwords are unique to each machine not to the application. For example if I were to load your application onto my machine, my security settings would be in place. I have never had Lookout ask for a password when accessing through a web browser. Does the machine you are using have Lookout on it also? If it does, you need to use the user names and passwords for that machine. If not,try using user name "administrator and no password.
Hope this helps,
Carl -
Deploying BPEL process in web application
How can I call/invoke a BPEL process in jspx web applications?
Thanks in advance,
Ahmad EsbitaAhmed,
There many different ways to call a BPEL process from jspx based pages. Most simple of them is to create a new web service based on the BPEL wsdl and that can be used as a data control and available as drag-n-drop on the page.
If you are looking for more programmatic control, then you can generate proxy out of the wsdl and you will have java classes corresponding to the service.
--Shiv -
How to run background process with web application
Hi,
I have a web application , a servlet. I would like to have a background process that collecting data for my servlet.
How can I achieve this? can someone point me to a tutorial or example?
Also, would it be possible to share an object between the background process and myservlet?
Thanks,Thanks for the idea.
I had the background process running. :)
But I'm still do not understand this part to share an object such as Java Map (<id,myobject>), what do you mean by "task a property of my ServletContextListener" ?
BalusC wrote:
If you make the task a property of your ServletContextListener implementation and put the implementation in the application scope, then you can access it from any servlet.Do you mind explain to me a bit more I'm still fairly new with this or maybe if you know an example.
Here's my code snippet so far. How can I share myList to MyServlet?
public class MonitorTimer extends TimerTask
private Map<String, Channel> myList;
@Override
public void run()
System.out.println("Monitor Timer times up");
//Clear the map before fill with the new data
if(myList!= null)
myList.clear();
loadConfig();
private void getData()
//fill myList with data
public class MyContextListener implements ServletContextListener
@Override
public void contextDestroyed(ServletContextEvent arg0)
// TODO Auto-generated method stub
@Override
public void contextInitialized(ServletContextEvent arg0)
System.out.println("Context Initialized");
Timer timer = new Timer();
//Run MonitorTimer every 2 minutes
timer.scheduleAtFixedRate(new MonitorTimer(), 10*1000,2*60*1000);
public class MyServlet extends HttpServlet implements Servlet
@Override
public void destroy()
// TODO Auto-generated method stub
super.destroy();
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
}Thank you so much for your help,
Edited by: geek.shrek on Nov 4, 2009 1:50 PM -
How to maintain Master Data through Web Application Designer layout.
Hi.
I’m Internship and I have to do something that it doesn’t work.
I explain to you.
I have to make a layout via Web Application Designer to permit users to add a line in the master data XST_RFC.
For that, I did two things:
First I followed this url : http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/607193d5-cdd5-2b10-c699-8ff04c3124f6?QuickLink=index&overridelayout=true&38392712686871
The result; I have a problem with the appendix of method execute “DATA : ZL_WORKTEXT Type ZFREETEXT”. Here, SAP doen’t permit me to put XST_RFC (my characteristic to add by the user) but just /BIC/PXST_RFC… So, I tried with that and at the moment of the test in the Wad, the application say me “no Master Data in XST_RFC”. I know that there are no MD in my char, I just want to add once…
So it doesn’t Work.
Secondly, after testing, the Function Module test works. When a put an ID in the test page of SAP Logon in parameters, the FM put this ID and create a new line with this new ID. So I had an idea, use directly this function module in a Fox Formula but, when a call my function, I have a problem with variable/parameters type.
My variable is TYPE XST_RFC , but my parameters is TYPE /BIC/PXST_RFC….
My Fox Formula
DATA NEW_RFC TYPE XST_RFC.
NEW_RFC = VARV(XVOU_RFC).
CALL FUNCTION ZBWDSST_XX_MASTERDATAMAINTAIN
EXPORTING
VAR_RFC = NEW_RFC.
My error message Types of parameter VAR_RFC () and variable NEW_RFC(C) are inconsistent
If you can help me, I work on this issue for 4 days and I waste my time.
Thanks.
BRDear All,
The text flow for 0WS_QUEST & 0WS_QSTNNR is sufficient to make available Criteria from source system questionnaire in BW.
After the text load (even it does not generate SID) we can already use Tcode SRM_VE_GROUPING & SRM_VE_WEIGHTING for customization of groupping and weighting in BW.
Regards,
Viresh -
HTTP_POST through Web Applications
Hi All,
We have a Z fucntion module that consumes the web service to get some information. This Z function module uses FM HTTP_POST with rfc_destination as 'SAPHTTP'.
When i try to execute this Z function module throught SE37 or any other wrapper function module, it works fine.
But when I try to call this function module from BSP or Webdynpro ABAP, the HTTP_POST call fails. It gives 'Communication Failed' Exception with message 'Error while opening an RFC connection'.
I tried executing HTTP_POST with rfc destination as 'SAPHTTPA'. In this case the HTTP_POST call gets executed without error or exception. I also get the proper data in response header.
But response body does not return the expected results. It containts garbage data and then parsing fails.
This problem seems to be associated with SAP GUI as web applications (BSP, Webdynpro abap) do not have it.
Thanks ........Hi All,
I am not using the function module anymore.
I tried consuming Web service by following method.
CALL METHOD cl_http_client=>create_by_url
EXPORTING
url = url
IMPORTING
client = http_client
EXCEPTIONS
OTHERS = 1.
It is working fine..
Thanks alll.......
Bhushan -
Calling session bean's business method through web dynpro component
Hi All,
Can anybody tell me how to call a session bean's methods through a web dynpro WITHOUT java-model or web service model ??
I have following scenario:-
1. Stateless Session bean having two business methods
2. Web Dynpro component
3.Now i want to call business methods without using any model. I have got following piece of code but I dont know how to go about it.
4.Where do i have to set JNDI name for session bean? which interface will be looked for?
5. Do I have to declare public part for EJB DC? If yes, how?
//This is inside web dynpro component
InitialContext context = new InitialContext();
o = context.lookup(JNDIName);
TestSessionbeanHome homeRef = (TestSessionbeanHome) PortableRemoteObject.narrow( o,
TestSessionbeanHome.class);
TestSessionbean beanRef = homeRef.create();
<returnValue> = beanRef.<ejb method name>
Please help to get a step-by-step approach to this case.
Thanks and regards,
Amey MogareHi,
If I comment out the part that is using session bean's business method, DC is building fine.
And if I uncomment, then compiler is unabl eto resolve business method(s).
And i would like to mention that my EJB + J2EE App DC is building properly, but it havent yet deployed properly as I am waiting for data-source-alias name prefix to be configured by ERP team. So will this be a reason why Web Dynpro DC is not able to resolve business methods ??
Because Web Dynpro DC is able to resolved all interfaces of Session bean and entity bean. But when it comes to business method, its not able to resolve.
Any more ideas why it is not happening?
Pls help.
Now i went through some forum posts regarding this and found that we also need to add EJB DC to Java Build Path for WebDynproDC>Properties>Java Build Path.
I did this and now it is able to resolve business methods and DTOs as well. So to summarize I did following:-
1. Added EJB DC (complete DC) as a Used DC to Web Dynpro DC with Buid-n-Deploy-n-Run time dependency
2. Added Sharing reference of J2EE application DC to Web Dynpro DC -->Properties
This reference I constructed as follows:-
<vendorname>/<name of j2ee application as appearing under display name tag in application.xml (replacing '/' with '~')>
So my Sharing Reference becomes:- <vendorname>/reqpstapscreqpstapja_reqid
3. Added EJB DC to Java Build Path in Web Dynpro DC's properties
4. Then I added following piece of code to get object of SessionBean class
InitialContext context = new InitialContext();
Object o = context.lookup("java:comp/env/ejb/SessionRequestIDBean");
SessionRequestIDHome homeRef = (SessionRequestIDHome) PortableRemoteObject.narrow(o, SessionRequestIDHome.class);
SessionRequestID beanRef = homeRef.create();
beanRef.<business method>
But After doing this I am facing another problem :-
The build fails saying it is not able find the package for DTOs. But when I see the Component Controller's code it is not showing any red or yellow marks.
Can anybody pls help me out here?
Thanks and regards,
Amey Mogare -
Unable to connect to SAP business one through web service
Hi
I'm facing some problem with my web service. I tried to connect to SAP but it gave me an "System.Exception"
Public Function ConnectedToDatabase() As Boolean
Try
Dim oCompany as SAPbobsCOM.Company
oCompany = New SAPbobsCOM.Company
Dim lRetCode, lErrCode As Long
Dim sErrMsg As String
sErrMsg = ""
Session("g_server") = System.Configuration.ConfigurationManager.AppSettings("Server")
Session("g_companyDB") = System.Configuration.ConfigurationManager.AppSettings("CompanyDB")
Session("g_DBUserName") = System.Configuration.ConfigurationManager.AppSettings("DbUsername")
Session("g_DBPassword") = System.Configuration.ConfigurationManager.AppSettings("DbPassword")
Session("g_Username") = System.Configuration.ConfigurationManager.AppSettings("Username")
Session("g_Password") = System.Configuration.ConfigurationManager.AppSettings("Password")
oCompany.Server = Session("g_server")
oCompany.CompanyDB = Session("g_companyDB")
oCompany.DbUserName = Session("g_DBUSerName")
oCompany.DbPassword = Session("g_DBPassword")
oCompany.UserName = Session("g_Username")
oCompany.Password = Session("g_Password")
oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English
lRetCode = oCompany.Connect()
When the codes runs to the line IRetCode = oCompany.Connect(), it will return an error code -8006. Those session got the correct information from the web.config. Then exception is throw in.
I try restarting my com and restarting my suite manager. Usually this will solve the problem. However, it won't for this time. I hope will receive some solutions for my problem. Thanks for your time.Hi,
Try To Set the db server type to MS SQL 2005 (value 4)
oCompany.DbServerType = BoDataServerTypes.dst_MSSQL2005
or
oCompany.DbServerType = 4
and
oCompany.UseTrusted = False
Regards,
János -
Invoke Bpel process from web application
Hi,
I am using SOA 11g, I have created a Bpel human workflow process. was able to initiate the same from the console.
My requirement is like need to invoke the same programatically.How can I do that.
Read some docs says Bpel process can be invoked from ejb's soap etc.
I am new to, bit confused what and how to implement the same.
Can any one provide me links/sample for the same.
Also need How to get the tasks ID if we want to initiate the tast thru java program
Thanks
Nagacan you please tell which jar file has com.oracle.bpel.client.Locator class in SOA 11g.
I have checked in
1. C:\Oracle\Middleware\Jdev\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar and
2. C:\Oracle\Middleware\Home\Oracle_SOA1\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar
couldn't find the java file at these locations.
thanks
Naga -
Flat File upload in IP through Web template
Hi,
I am looking for an option to upload a flat file to an input ready cube through web application designer, can any one suggest / think of any way?
Solution currently implemented:
1. Planning Function to upload the flatfile
2. Planning sequence containing the above planning function
3. Web dynpro
something like: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90cef248-29e0-2910-11bb-df8dece7e22c?QuickLink=index&overridelayout=true&26048976667552
The above works fine, a link to upload is put in the portal (to be accessed through portal id / pwd) but since its Web dynpro it asks the user and pwd for the BI system.
Requirement is:
to avoid the 2nd login to the BI system
Thanks in Advance
Shweta SalpeHi,
check you portal setting.
=> do you use single-sign-on?
=> you need full domain, like http://comany.local.org:53000
Sven -
What is a Business Process Expert? and Business Analyst?
In response to Sinem Dorter's very interesting and informative blog about Composite Analytics at Whirpool, I'd like to ask how people would really define what is going on there.
Are modelers of composite applications business analysts? Business process experts? Application specialists? All of the above? None of the above?
What unique skills are required to distinguish, say, a business analyst from a business process expert?
And can a business process expert be a team of people: maybe an enterprise analyst, a business process expert and an IT application specialist?
I'm curious to read responses.
JudyHi Judy,
I agree with you. Sinems blog from Whirlpool is really interesting and well written.
Thanks a lot that you have the courage to open the first discussion in relation to her blog.
Now to your question what's the difference between a Business Process Expert and a Business Analyst.
<u>Definition of a Business Analyst</u>
Please find below a small section of the Roles and Responsibility Matrix of SAP xApp Analytics . You will find it also in our OKP (Online Knowledge Product) of Analytics in Service Marketplace, alias rkt-analytics.
- Responsible for assessing the business requirements
- Communicate with the business users for project
requirements
- Act as the critical link between end users business
requirements and data architecture solution together
with the Application Developer
- Possess and provide deep knowledge of current business
scenarios such as: SAP BW Business Explorer Queries
and SAP CRM, SRM, MIC
- Design and develop a data access solution
- Understand SAP Analytics models and become an expert
on Analytics
- Conduct Analytics workshops
- Create and provide business requirements documentation
- Provide content know-how and knowledge transfer
documentation
<u>Definition of a Business Process Expert</u>
Business process experts have the business knowledge and IT sway to make business process innovation happen in real time by adapting, composing, and executing end-to-end business processes using composition software tools and enterprise services.
SAP enables the business process expert to drive real-time business process innovation by providing a rich combination of industry business process and services content, and composition software tools from a proven business process platform.
More you will find here: https://www.sdn.sap.com/irj/sdn/bpx?rid=/webcontent/uuid/cc0bd202-0b01-0010-9fbf-da3953eed4c2 [original link is broken]
Now I am interested to hear what others say!
Also I am sure there are much more questions/comments regarding Sinems blog.
Or do you have also experiences which you want to share with the BPX-Community?
Don't hesitate to use the forum for this!
Kind regards,
Sabine -
Handling Faults in a Business process JCAPS 513
Hi All,
We are testing the faults in a WSDL file.
Fault message has three fields viz Type/Message/Trace.
When i invoke the webservice in a JCD , all the 3 fields are getting populated with the proper error description.
But when i invoke the same service in a business process with a CatchAllExceptions handler, control goes to the exception block , But the fields are not getting populated , instead they are empty.
Could any body please let me know , if we need to consider any extra stuff when we invoke a webservice in a Business process.
By the way we are using JCPAS 5.1.3 for this.
Regards
Giri.Consider that we have a JCD with input and output defined. When we drag this JCD service to eInsight business process canvas, bp creates 3 business attributes (ie 1-input, 2-output and 3-JavaException). We can use a named exception handler and use 3-JavaException attribute to handle exceptions from JCD Service.
Consider that we have a JCD with input (Like a One-Way service) defined. When we drag this JCD service to eInsight business process canvas, bp creates only 1 business attribute (ie 1- input). JCD service is capable of throwing an exception. How do we catch/handle this exception?
Thanks,
Siva -
Business process 300900 is not yet planned in version 0/2008.
Hi Friends,
I am doing easy cost planning---> execution services for Internal activity allocation but when I am posting the document getting the below error.
How can I overcome this.Pointers will be rewarded.
Business process 300900 is not yet planned in version 0/2008.
Message no. BK505
Diagnosis
You did not carry out planning for business process 300900 in fiscal
year 2008, version 0.
Because process 300900 also has no active actual price indicator, you
cannot carry our actual allocation.
Procedure
In order to allocate to the business process in actual:
o Carry out activity planning for the process
o Alternatively, set the actual indicator for the process so that the
R/3 System carries out revaluation in actual
Carry out planning and maintenance of the price indicator in the
Activity-Based Costing component.
RegardsHi Amit,
1. Check the master data settings of process 300900 in CP02. In the "Allocation" tab. all the necessory settings are maintained such as process diriver and defalut values like cost element, actvity allocation (should be "1" i.e. manual entry in your case)
2. Maintain the planning data for this business process through CP26 for year 2008.
Regards
Maybe you are looking for
-
This is Naresh, new to SAP-MM. Iam getting an error while creating PR. The error is "Enter rate EUR/INR rate type M for 3:01:2009 in the system settings". Please anyone clarify my error.
-
I received my new iPhone 4S today due to the last one being faulty. I had 1006 pictures in my photo stream however on setting my new phone up I only have 146 :( please help?
-
Can using BouncyCastle be an alternative to installing the policy files?
Hey, sorry if this is a dumb question but I have been looking into this all day. I want to write a program that incorporates unlimited strength encryption, but installing the JCE Unlimited Strength Jurisdiction Policy Files is not an option (I can do
-
ITunes hosed my ipad during iOS upgrade
I just tried via my rather old winXP box to upgrade my ipad to the latest iOS, and it errored (first with 1602, then 1604 on subsequent attempts), requiring a restore. It turns out that if your machine has USB 1.1 ports and is not modern enough to ha
-
Upgrade cucm 7.1 to 9.1
Hi, From your experience I'll upgrade cucm 7.1 on MCS to 9.1 on ucs is there any recommended path that won't face any bugs Thanks