SDO Service Data Objects transaction behavior in BPEL question
I was led to believe (this is taught in the SOA BCA class) that if we create, modify, or delete an SDO then the changes are committed at the end of the scope activity in the BPEL process and rolled back if there is an uncaught fault in the scope.
I have faound that this is not what I am seeing. When modifying using an assign then the update is performed at the end of the assign, create and remove is also immediate. I have seen that if an assign has two copies and the first one succeeds and the second fails then both are rolled back.
What is the correct behavior or is there a setting that controls the transaction behavior?
Thanks ptlx
I was led to believe (this is taught in the SOA BCA class) that if we create, modify, or delete an SDO then the changes are committed at the end of the scope activity in the BPEL process and rolled back if there is an uncaught fault in the scope.
I have faound that this is not what I am seeing. When modifying using an assign then the update is performed at the end of the assign, create and remove is also immediate. I have seen that if an assign has two copies and the first one succeeds and the second fails then both are rolled back.
What is the correct behavior or is there a setting that controls the transaction behavior?
Thanks ptlx
Similar Messages
-
What about SDO - service data objects?
Does Oracle have an implementation of Service Data Objects?
http://www.osoa.org/display/Main/Service+Data+Objects+Home
I cant find any reference about this only about SCA.this post is from 2007 maybe soa suite 11g weblogic based can be SDO right?
-
I have BPEL. i want to use ADF BC adapter. so creating SDO.
I created a new ADF BC project
Want to use ADF BC - SDO so go thru Generate ADF BC from Tables" wizard. when I go to "Create Service Interface" wizard, it keeps complaining about one of the Date filed i have in table and just not complete the SDO creation atall
"Java type oracle.jbo.domain.Date" referenced by FlightDate is currently not supported" this is what it keeps showing in the wizard popup.
what is this error and why it keeps be away from creating SDO ? how to get rid
thx
ddWe are closely watching (indeed, Sun participates in) JSR-235 on it's expert group. It is possible that SDO is something which would be relevant to this market. Simplified component-based access to services is something Creator currently does, although it is limited in the initial release to DB access and simple web services. Moving forward, we have plans to broaden service access, and if SDO is the right match in terms of both technology and our developers, we certainly will consider it's use (assuming the JSR is final, of course :-)
-
Difference between Service data objects and process data object
Hi
Can anybody tell me what is the difference between SDO (Service Data Objects) & PDO (Process Data Objects).I am using 2 port PCI-CAN series 2 card.
If anybody knows the answer then please reply.
Thanking YouHi,
See the online help file from our NI CANopen Library for LabVIEW for some basic informations about SDOs and PDOs.
More information should be available from the web.
DirkW
Attachments:
lvcanopenvhelp.zip 154 KB -
How to Include Warnings/Error messages in Return Service Data Object
Hello All,
I am using Jdeveloper 11.1.1.3.0, ADF BC. and want to publish Service-Enabled application modules, specifically I want to publish a custome method in the application module as a web service.
While going through Enable support for Service Interface wizard as explained in developer guide, in step 7 I read this
>
7. To expose service information messages such as warnings and exceptions for a custom method or warnings for process operation methods, select Include Warnings in Return Service Data Object. For example, you might want display an informational message when a method returns the total employee compensation and the total is outside of the desired range.
If Include Warnings is not selected, no informational messages will be returned with the service response. This option is only enabled when the method does not return a view row or a list
of view rows. When the method returns view rows, the underlying view object determines whether the method supports warnings, as described Section 11.2.4, "How to Service-Enable Individual View Objects." The informational messages (and warnings) are reported as part of the return object. JDeveloper generates appropriate wrappers as the return objects, and the wrappers contain the actual method return and the informational messages.
>
I am interested in this part: For example, you might want display an informational message when a method returns the total employee compensation and the total is outside of the desired range.
To do this, I write a method in the application module
public Number getEmpSal(Number empId){
EmployeesViewImpl employeesView1 = this.getEmployeesView1();
//this is the bind variable setter
employeesView1.setEmpId(empId);
employeesView1.executeQuery();
EmployeesViewRowImpl first = (EmployeesViewRowImpl)employeesView1.first();
return first!=null ? first.getSalary() : null;
}and I selected the Include Warnings in Return Service Data Object check box. but how and where can I expose the error or warning message?
Note:
I tried to throw an exception in the method
public Number getEmpSal(Number empId){
EmployeesViewImpl employeesView1 = this.getEmployeesView1();
//this is the bind variable setter
employeesView1.setEmpId(empId);
employeesView1.executeQuery();
EmployeesViewRowImpl first = (EmployeesViewRowImpl)employeesView1.first();
if(first!=null && (first.getSalary()!=null || first.getSalary().compareTo(1000)==1))
throw new JboException("out of range salary");
return first!=null ? first.getSalary() : null;
}and when I test the web service for some employee I get this response:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>out of range salary</faultstring>
<detail><tns:ServiceErrorMessage xmlns:tns="http://xmlns.oracle.com/adf/svc/errors/" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"><tns:code/><tns:message>out of range salary</tns:message><tns:severity>SEVERITY_ERROR</tns:severity><tns:exceptionClassName>oracle.jbo.JboException</tns:exceptionClassName></tns:ServiceErrorMessage>
</detail>
</env:Fault>
</env:Body>
</env:Envelope>but is this the right approach or there is another place to show error/warning messages?
Edited by: Mohammad Jabr on Apr 16, 2012 1:17 PMThis is fine if you raise exception from your code. It will be raised as a server fault only.
-
View Objects Fetch depth with View Links while creating Service Data Object
Hi ,
I am trying to create SDO's for my Business components.
Here are my Entities & relations :
Entity Objects : 1) EmployeeEo 2) DepartmentEO 3) PropertyEO
And corresponding View Objects 1) EmployeeVO 2) DepartmentVO 3) PropertyVO.
Associations : Employee -> Dept (m:1) , Employee -> Property (1:M) , And corresponding View Links as well.
When i expose the VO's in AM like :
DepartmentVO, with EmployeeVO from dept_emp_view link => This fetches all the data from Dept-> Employees -> Property
However i don't want the tree fetch to be like that , i want to have my fetch restricted to only one level ie Dept-> Employees
and a different fetch for Employees -> Property .
Please suggest.
Thanks !!Was able to do it by extending VO
-
BAM 11g Moving External Object Data to Internal Data Object
Hi
I'm working with external data objects in our dashboards, this objects are updated every 30 minutes.
It's posible to update Internal Data objects at same time using triggers in BAM schema for use Active Data?
I need to autorefresh the Dashboard every 15 minutes.
Thanks for your comments
Ricardo
Edited by: rzegarrape on Jun 26, 2010 10:06 AMHi
What is the use case. Are you trying to automate a refresh of the report view based on an External data object? Or is there another use case - i am confused about 'moving external dataobject to internal data object' comment.
Some basic questions:
Version of BAM in use
Version of IE in use
Do you see updates in the browser for the internal DOs. For example, run call center sample with the scripts in [soa_home]/bam/samples/bam/callcenter/bin and verify that you can see the updates on the call center dashboard in Active Viewer.
Can you describe the setup a little - where is the data you want to view & refresh in the dashboard?
Regards
Payal -
Parse Date object for AM/PM
how do we parse whether it is AM /PM from Date() object?
You asked this question yesterday already with the same degree of vagueness.
Please return to your thread from yesterday and continue posting vague dribblings as they occur to you there http://forum.java.sun.com/thread.jspa?threadID=5198538 -
BPEL process as web service data control
Hi,
I am trying to invoke a synchronous BPEL process from a jspx page. I have configured my BPEL process as web service data control object and
dropped it on my jspx as a button. But after dropping it as a button i observe that it is expecting three parameters.
I have attached the .xsd file used in the BPEL process and the screen shot of the parameter window of JDEV.
Here if you can see, i have a heirarchy of data. I have customerType which has orderType , which further has lineType.
Can somebody help me , how do i provide data to this process i.e in the parameter fields., so that it is in accordance with my .xsd of the BPEL process.
-thanks,
lavanya.
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.globalcompany.com/ns/sales"
xmlns:po="http://www.globalcompany.com/ns/sales"
elementFormDefault="qualified">
<element name="Orders" type="po:OrderType"/>
<element name="OrchestrationCustomers" type="po:OrchestrationCustomersType"/>
<complexType name="CustomerType">
<sequence>
<element name="CustomerName" type="string"/>
<element name="Location" type="string"/>
</sequence>
</complexType>
<complexType name="LineItemType">
<sequence>
<element name="ProductName" type="string"/>
<element name="itemType" type="string"/>
<element name="price" type="decimal"/>
<element name="Quantity" type="decimal"/>
</sequence>
</complexType>
<complexType name="OrderType">
<sequence>
<element name="Customer" type="po:CustomerType" minOccurs="0" maxOccurs="unbounded"/>
<element name="LineItem" type="po:LineItemType" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="OrchestrationCustomersType">
<sequence>
<element name="CustomerNumber" type="int"/>
<element name="CustomerName" type="string"/>
<element name="OrderHeader" type="po:OrderHeaderType" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="OrderHeaderType">
<sequence>
<element name="CustomerNumber" type="int"/>
<element name="HeaderId" type="int"/>
<element name="OrderNumber" type="string"/>
<element name="OrderStatus" type="string"/>
<element name="OrchestrationLineItem" type="po:OrchestrationLineItemType" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="OrchestrationLineItemType">
<sequence>
<element name="HeaderId" type="int"/>
<element name="LineNumber" type="int"/>
<element name="LineId" type="int"/>
<element name="ItemName" type="string"/>
<element name="price" type="decimal"/>
<element name="Quantity" type="decimal"/>
<element name="LineStatus" type="string"/>
</sequence>
</complexType>
</schema>Every BPEL process is an another web service. Go and grep WSDL of the BPEL process and call it.
-
Jdev 11g AD / View Objects - update and populate web service data contro
Hi Experts....
Looking for the best approach here.
I am hoping that someone can provide me some thoughts / guidance around the best way to achieve populating a webservice data control from a view object.
Basically I have created an application pulling data from source tables using ADF BC VO's. I am going to put a command button 'Update Record', that will open up a dialog with a web service data control.
I am hoping to be able to populate the data control fields, with values from the selected record VO.
I am tipping at this stage, I will need to do this programatically?
Is this the recommended approach?
Any examples of code?
Thanks in advance to anyone that can help!
SimoShould be similar to this:
http://blogs.oracle.com/shay/2011/03/passing_parameters_between_web.html
But the first page would get the data from the VO instead of Webservice.
Since you are using PL/SQL API in the database to do the update, it might be more efficient to just have an AM service method that uses the existing JDBC connection/transaction and calls this PL/SQL stored procedures and passes info from the VO.
See: http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcadvgen.htm#BABEIFAI
Or taking it even further:
http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcadveo.htm#sm0328 -
Services for object in transaction EHSAMBTAET (Health Center Services)
Hi all.
In transaction PA30 there is a functionality called "services for object". I would like to have this functionality in the transaction EHSAMBTAET (Health Center Services) as well. At the moment when you choose it in the menu it just says: "No services available". Can anybody give me a hint on how to do this?
Many thanks
LiselotteAs far as I know, that "Services for object" is the Global Object Services (GOS), and requires a Business Object (BOR).
The Health Center Service doesnt currently provide such a BOR object.
see for more info: http://help.sap.com/saphelp_erp2005/helpdata/en/be/3fe63659241157e10000009b38f889/frameset.htm
Message was edited by: Frank Besler -
"Services for Object" in my own transaction
Hi everybody,
In MM02 you see the button for the toolbar "Services for Object" in the titlebar.
I want to add that same functionality in my own transaction. Does anybody know how to do this?
Thanks,
Tim van Steenbergen.Sure, you can do that. Something like this. You will have to use a valid object and key. The example uses a maintenance notification.
report zrich_0001 .
parameters: p_check type c.
at selection-screen output.
call function 'SWU_OBJECT_PUBLISH'
exporting
objtype = 'BUS2038'
objkey = '000010004288'
* CREATOR = ' '
* METHOD = ' '
* TABLES
* CONTAINER =
exceptions
objtype_not_found = 1
others = 2.
start-of-selection.
Regards,
Rich Heilman -
Viewing data kept in "services for object" for several objects in alv grid?
Dear Experts,
Is it possible to view the data kept in "services for object" (The Button at topleft side of title bar of Master data header screen of objects like Functional Location/Equipment/Notification/Order) for several objects in one list like ALV?
Please guide how to do it.
Thanks and Regards,
R N Sabat.Hi,
The data stored in service object can be viewed latter on in change/display mode
Kapil -
Service For Objects functionality (SDV transaction)
Hello experts,
Some users are getting an authorization error while trying to display an image from t-code FBL1N (services for objects). After identifying the reason of this issue with NSU53, the simple fix is to provide access to the user to transaction SDV. Actually, we are proposing to the security team to provide the access in a Generic role, so all user can get the access.
Their concern is that if for any reason, any of the users runs the t-code directly (SDV), and not through the Services for Objects funtionality, they might be able to access other documents that they should not be allowed. To be honest, I haven't seen this as an issue before in my 13 years working with SAP.
The question for you guys is: what is the best approach to grant access to users from different modules to Services for Objects functionality without violating security policies?
Thanks,
Alfredoown
-
Add new function to Services for Object in transaction XD03
Hi expert,
Do you know how to add a new function to the Services for Object appeared at the beginning of the title bar on transaction XD03? I would like to add it to the Create list. Please help, thanks!
ChuongHi,
Check this Post, May help you
XD01 ENHANCEMENT
Regards,
Satish
Maybe you are looking for
-
GP, callable object Web Dynpro Application (bespoke) not appearing in list
Hey y'all We're developing our first GP, and we would like to call an existing bespoke Web Dynpro. When creating the callable object, we're selecting type Web Dynpro Application, but our Web Dynpro screen is not appearing in the drop down list on the
-
Hello All, Is there any dynamic lookup in OWB, if so, please let me know how to implement the same OWB. awaiting for your reply......
-
Decimal places in alternative unit of measure
Dear Gurus, we have a material having two units of measure. Kg and meter. we have to define base unit as meter and alternative as kg. 1 m = 5.236 kg. But when i define this in alrenative UOM system gives error "Decimal places are not permitted" I kno
-
How to display -ve sign before amount in ALV grid
Hi, I want to display -ve numbers in an ALV grid. But the sign always appear at the end of the number. Is there any option with which I can display -ve sign before the number. Regards, Deepti
-
Including hyperlink in the applet
how do can i include a hyperlink in the applet