How to use Java Action in fault policy
Hi ,
I want to execute custom java Action as fault handler in fault-policy implemntation. I have done but it is not working. I am putting code for fault-policies.xml and also java Action class.
<?xml version="1.0" encoding="UTF-8"?>
<faultPolicies xmlns="http://schemas.oracle.com/bpel/faultpolicy"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<faultPolicy version="0.0.1" id="FusionMidFaults"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.oracle.com/bpel/faultpolicy"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Conditions>
<faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
name="bpelx:remoteFault">
<condition>
<test>$fault.code="MYCODE"</test>
<action ref="ora-java"/>
</condition>
</faultName>
* <faultName>
<condition>
<action ref="ora-java"/>
</condition>
</faultName>
</Conditions>
<Action id="ora-java">
<JavaAction ClassName="JavaPolicy.TestJavaAction"
defaultAction="ora-human-intervention" >
<ReturnValue value="ABORT" ref="ora-terminate"/>
<ReturnValue value="MANUAL" ref="ora-human-intervention"/>
</JavaAction> *
</Action>
<Actions>
<Action id="ora-terminate">
<abort/>
</Action>
<Action id="ora-human-intervention">
<humanIntervention/>
</Action>
</Actions>
</faultPolicy>
</faultPolicies>
2. Java class in JavaPolicy package
package JavaPolicy;
import com.collaxa.cube.engine.fp.BPELFaultRecoveryContextImpl;
import oracle.integration.platform.faultpolicy.IFaultRecoveryContext;
import oracle.integration.platform.faultpolicy.IFaultRecoveryJavaClass;
public class TestJavaAction implements IFaultRecoveryJavaClass {
public void handleRetrySuccess(IFaultRecoveryContext ctx) {
System.out.println("This is for retry success");
handleFault(ctx);
public String handleFault(IFaultRecoveryContext ctx) {
System.out.println("-----Inside handleFault-----\n" +
ctx.toString());
BPELFaultRecoveryContextImpl bpelCtx =
(BPELFaultRecoveryContextImpl)ctx;
bpelCtx.addAuditTrailEntry("hi there");
System.out.println("Policy Id" + ctx.getPolicyId());
return "MANUAL";
I have kept the java file in 'AExpPrj\src\JavaPolicy' where AExpPrj is my project Name.
Where I am doing mistake, I could not find. Is there any link including complete example of Java Action in fault policies.
Thanks & Regards
Yogendra Rishishwar
9867927087
A bean is obtain by <jsp:useBean> tag nd once bean is obtained we can get its property by using getProperty tag.
Similar Messages
-
How to use same actions for differ pop-up
Hi gurus,
I am using 2 popup in a view.same popup's having same buttons 'Yes', 'No'.when i use 1st one i have to create an action for that Yes button where i put my code for that particular Action.
But when i used 2nd one the action define for that is not acceptable with differ name.it takes only standard one.
Now my Query is : How to use same actions for differ pop-up buttons with in a similar view?Where i put my code.
Plz sugges me.
<b>Points will be sured.</b>
Sanket sethiHi,
Take one integer value attribute in the context of view
when you r performing action on POP1 set it's value to 1
when you r performing action on POP2 set it's value to 2
create one method which receives integer argument, say diaplay(int a)
In the action call display(wdContext.currentContextElement().get<intvariable>()) by passing the value in the context attribute
in display() method, Check the value of integer variable..
if it is 1 then perform action related to POP1
if it is 2 then perform action related to POP2
Regards
LakshmiNarayana -
How to use same actions for differ pop-up buttons
Hi gurus,
I am using 2 popup in a view.same popup's having same buttons 'Yes', 'No'.when i use 1st one i have to create an action for that Yes button where i put my code for that particular Action.
But when i used 2nd one the action define for that is not acceptable with differ name.it takes only standard one.
Now my Query is : How to use same actions for differ pop-up buttons with in a similar view?Where i put my code.
Plz sugges me.
<b>Points will be sured.</b>
Sanket sethiHi ,
u can use the method SUBSCRIBE_TO_BUTTON_EVENT of the IF_WD_WINDOW interface ... to handle the event fired by the popup .....used this method after creating the popup window ...
regards
Yash -
How to use java source in Oracle when select by sqlplus.
How to use java source in Oracle when select by sqlplus.
I can create java source in Oracle
import java.util.*;
import java.sql.*;
import java.util.Date;
public class TimeDate
public static void main(String[] args)
public String setDate(int i){
GregorianCalendar calendar = new GregorianCalendar();
calendar.setTime(new Date((long)i*1000));
System.out.println("Dateline: "
+ calendar.get(Calendar.HOUR_OF_DAY) + ":"
+ calendar.get(Calendar.MINUTE) + ":"
+ calendar.get(Calendar.SECOND) + "-"
+ calendar.get(Calendar.YEAR) + "/"
+ (calendar.get(Calendar.MONTH) + 1) + "/"
+ calendar.get(Calendar.DATE));
String n = calendar.get(Calendar.YEAR) + "/" + (calendar.get(Calendar.MONTH) + 1) + "/" + calendar.get(Calendar.DATE);
System.out.print(n);
return n;
I have table name TEST
ID DATE_IN
1 942685200
2 952448400
When I write jsp I use method setDate in class TimeDate
The result is
ID DATE_IN
1 1999/11/16
2 2003/7/25
Thanks you very much.It is unclear where you are having a problem. Is your issue at runtime (when the form runs in the browser) or when working in the Builder on the form?
Also be aware that you will need to sign your jar and include some new manifest entries. Refer to the Java 7u51 documentation and blogs that discuss the changes.
https://blogs.oracle.com/java-platform-group/entry/new_security_requirements_for_rias
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html -
Hi Experts,
please help me ,
How TO Use Java Mapping In XI?
Thanks
MaheshHi,
Just refer the following links for java mapping:-
1./people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs
2./people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
Regards,
Ashwin M
Reward if helpful -
JNI - how to use java access function in TypeLibrary( .tlb file) HELP ME PL
Hey All
I got one project which can be done by calling up functions in xxxx.tlb
(window type library) file, that is no problem.
How to use java to access those functions???
I know there are some classes which can be used to access function in
DLL file e.g. JAWIN.
Is the .tlb file related to one DLL file??? if so, how to locate the
DLL file through .tlb file???
Thanks a lot.
SteveUse JNI to create a link between Java class and a DLL, then you can load that DLL (or TLB) from that class.
Read the JNI Tutorials. -
How to use java integrate with ondemand
Hi All,
As i'm new to integration, can anyone help me to use java integrate with ondemand that inserts some records in ondemand and deletes some records from ondemand in secheduled interval basis.?
Thanks in advance..!
regards
sowmGreetings,
hi forum...
how to use Java WebStart with EJB ? examples ?Well, for starters these are complementing, not 'cooperating', technologies. I presume, since EJB's do not - directly, at least - communicate with a web browser, that you intend for "Java WebStart" to somehow invoke an EJB?? Java WebStart is a technology for running client-side (Java) applications from the web browser - perceptively, the application resides on the server, but technically it, like an applet, is downloaded to the client and run there. Unlike an applet, however, it is not constrained by "sandbox" restrictions and does not have to be re-downloaded each time it is invoked - though the process allows for automagically updating the client-side with new versions of the application. ;) So, with this in mind, to "use Java WebStart with EJB" means little more than deploying an EJB client application with Java WebStart as the distribution channel.
thanks
minduRegards,
Tony "Vee Schade" Cook -
How to use Java Beans In JSTL?
Hi
I want to know how to use Java bean in JSTL
please explain this with giving any one example.
Thanks-
SwapneelA bean is obtain by <jsp:useBean> tag nd once bean is obtained we can get its property by using getProperty tag.
-
How to use java script when popups are blocked in browser
How to use java script when popups are blocked in browser
Not. When people install a popup blocker they don't WANT popups, so stop trying to force them down their throats.
-
How to use java api for function activity in embed oracle workflow?
because i can't install standalone oracle workflow successfully.
pls tell me how to use java api for function activity in embed oracle workflow?
are there some patch or pulg-in package?
ths a lot...........The Java Function Activity Agent is not certified for Oracle Workflow embedded in Oracle Applications. Installing standalone workflow should be a lot easier than what you have found, although it looks like you did hit a Pentium 4 issue with the Oracle Universal Installer. I suggest you contact Oracle Support or Oracle Consulting for assistance.
because i can't install standalone oracle workflow successfully.
pls tell me how to use java api for function activity in embed oracle workflow?
are there some patch or pulg-in package?
ths a lot........... -
How to use Java code inside WebDynpro-ABAP
Hi,
How to use Java code inside WebDynpro-ABAP.
Could any one provide sample code.
Cheers,
SamHi Sam,
We can't Bring Java Inside the ABAP. Both are running in different Environments.
and also ABAP Codes are runs on BASIS.
-Basis is a middleware between ABAP codes and Ur OS.
-Contains set of programs to load,RUN,intepret the ABAP program..
So Both are Different.
Regards,
Ramganesan K. -
hi
i want to ask how to use java in form 9i, can any one plz. give me an example
thanks & best regards!
SoftDesireFrom an earlier posting:
"Have a look in the online help for "Java Importer", PJC and "Java Bean".
There are also some paper on otn.oracle.com/products/forms
Click to view the papers and you will see a couple which should how to integrate Forms and Java.
Hope this helps.
Grant Ronald
Forms Product Management"
HOpe this helps.
Grant -
How to use Java WebStart with EJB ?
hi forum...
how to use Java WebStart with EJB ? examples ?
thanks
minduGreetings,
hi forum...
how to use Java WebStart with EJB ? examples ?Well, for starters these are complementing, not 'cooperating', technologies. I presume, since EJB's do not - directly, at least - communicate with a web browser, that you intend for "Java WebStart" to somehow invoke an EJB?? Java WebStart is a technology for running client-side (Java) applications from the web browser - perceptively, the application resides on the server, but technically it, like an applet, is downloaded to the client and run there. Unlike an applet, however, it is not constrained by "sandbox" restrictions and does not have to be re-downloaded each time it is invoked - though the process allows for automagically updating the client-side with new versions of the application. ;) So, with this in mind, to "use Java WebStart with EJB" means little more than deploying an EJB client application with Java WebStart as the distribution channel.
thanks
minduRegards,
Tony "Vee Schade" Cook -
How to use Java as a Front-end app
how java application can be used as the Front-end interfaces to Forte based
applications???
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Rajiv,
If you have Forte's WebEnterprise product, and Forte version 3.0.G.x or
later, you have the ability to export an IIOP interface for any Forte
service object. In fact, you can go one step further and generate a Java
interface that "hides" the IIOP issues from the developer. The way you do
this is to do the following:
1) From the partitioning workshop, double click on the service object you
wish to expose as an IIOP interface. This will bring up the Service Object
Properties dialog.
2) Off the Export tab, set the External Type drop down to IIOP. If IIOP is
not an available option in the drop down list then you do not have
WebEnterprise install.
3) From here you need to set up the necessary IIOP configuration parameters
(see the documentation for details on the specifics of what the parameters
control).
4) If you want to have Forte generate a JavaBean interface and the necessary
Java classes to be called by your application then make sure you select the
Java parameter at the bottom of the Configuration dialog. If IDL is
selected then Forte will generate a generic IDL interface.
5) When you make your distribution Forte will generate the Java classes for
you.
This mechanism works very well for accessing a Forte service object from a
Java application.
Good Luck!
Jeff Wille
-----Original Message-----
From: Rajiv Srivastava <[email protected]>
To: [email protected] <[email protected]>
Date: Wednesday, December 09, 1998 2:03 PM
Subject: how to use Java as a Front-end app
how java application can be used as the Front-end interfaces to Forte based
applications???
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
How to use the action OnExpandAll on UI element Tree
Hi, experts .
I am in WDA developing project and developing the screen which has Tree .
I want to expand all nodes when users click the button on the head of Tree .
I copied the application `WDT_TREE` and created Tree of my application successfully .
And I created the action OnExpandAll on my Tree and tried to create the function to expand all nodes .
But I do not know how to use the action OnExpandAll .
I can see the button to start action OnExpandAll on the head of Tree .
I am trying to write logic in the action . But it does not work successfully .
(In my tree , when I click the button for OnExpandAll , all nodes are outputted on root node .
Because my logic is wrong ... )
Please give me any hints .
MasaoHi
As your case it is a recursive node.
then you have to create method and call it recursively for the expanall functionality.
do it like this.
create an attribute the node FOLDER
name = 'ISEXPANDED'
type = WDY_BOOLEAN.
Now bind the property expanded of treenode FOLDER UI to this attribute.
now go to the methods tab and create one method say name ZEXPANDALL.
in thsi method make one importing parameter of type ( type ref to ) if_wd_context_node. and name NODE.
then write the following code in this method.
method ZEXPANDALL .
DATA ELT TYPE WDR_CONTEXT_ELEMENT_SET.
DATA EL TYPE REF TO IF_WD_CONTEXT_ELEMENT.
data nd type ref to if_wd_context_node.
data nds type WDR_CONTEXT_CHILD_MAP.
data chld type wdr_context_child.
data nf type ref to if_wd_context_node_info.
data name type string.
ELT = node->GET_ELEMENTS( ).
LOOP AT ELT INTO EL.
EL->SET_ATTRIBUTE(
NAME = 'ISEXPANDED'
VALUE = ABAP_TRUE
data parent_key type string.
EL->get_attribute( exporting name = 'TEXT' importing value
= parent_key ).
* create the child nodes
create_node(
exporting
cur_element = EL
parent_key = parent_key ).
nds = el->get_child_nodes( ).
loop at nds into chld.
nd ?= chld-node.
nf = nd->get_node_info( ).
name = nf->get_name( ).
if name eq 'FOLDER'.
zexpandall( "recursive call
nd
endif.
endloop.
ENDLOOP.
endmethod.
NOw go to your eventhandler created for action expandall.
there write the following code.
method ONACTIONEXPANDALL .
DATA lo_nd TYPE REF TO if_wd_context_node.
lo_nd = wd_context->get_child_node( 'FOLDER' ).
ZEXPANDALL( lo_nd ).
endmethod.
thats it.
Thanks
sarbjeet singh
Maybe you are looking for
-
I moved to Mac Last February and I got the subscription to .Mac which assigned me a new apple account (@apple.com ). All my purchases with my previous (@msn.com) account I was able to transfer from my IPhone to my new IMac but the problem is that whe
-
I have lost my little googl bar in the top right hand,how do i get it back
how do i get the little google bar back without the big google search bar coming back in the middle on startup.
-
ArrayCollection vs. Array in HTTPService sending
Hi, I want to send the content of an ArrayCollection as one of the parameters in an HTTPService. However, Flex concatenates the collection's values into one long string and sends it as the value of a single parameter. Doing this with arrays work just
-
I have created a xslt list view webpart but I does not have UI as SharePoint 2013 list view UI. how I can have it. Ahsan Ranjha
-
Internet Not in IP Mobile Router
IOS to 15.4(3)M1 on IOS to 15.4(3)M1 with 4GEHWIC card. The interface Loopback255 is not in SHOW IP MOBILE ROUTER. Looking for advice or ideas? oco-na1306rw1#s run | sec ip mobile router ip mobile router-service roam ip mobile router-service collo