ADF & BPEL Question

Is it possible to do this?
I wrote a web app with ADF BC in JDEV 10.1.3.2. In one project I have a .java application that uses the BCs to query data and then send an email based on results. I need to schedule this program to run once a day.
I was directed to use BPEL for this 'scheduling' aspect. I have downloaded the SOA Suite and used the BPEL plug in within JDEV to create a process with a while and wait but cannot get my embedded java step to compile. Is it possible to tie these together in this way? Is this even the right approach? I can run the java program in JDEV just fine by clicking Run, but can't get the BPEL process step to use or call that java file.
Thanks!
Ginni

I have created a Java class and created a JAR file for it. Then added the JAR file as a Library to my BPEL project.
edit the xml file to include the import of your class
Then in the bpel:exec block just call the method of your class. Be careful with the amount of time it takes to execute the Java code as this is directly linked to the Sync timeout on the BPEL configuration. If it takes longer than the syc wait time then its most likely the Java code will continue to execute but the BPEL process will timeout.
bpelx:exec import="acca.oracle.bpel.common.contentservices.*"/>
<bpelx:exec import="oracle.xml.parser.v2.XMLElement"/>
<bpelx:exec name="GetUsers" language="java"
version="1.5">
<![CDATA[try{       
ContentServicesUtil csUtil = new ContentServicesUtil();              
//call your method on your class                
String returnMessageReader = csUtil.populateFolderUsersWithRoleXML(userList, csFolderId, "PPReader");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • JDeveloper 11g - ADF BC Question (link b/w ViewObjects and EntityObjects)

    I am very inclined to having more knoweledge about ADF BC and how View Objects link and interact with Entity Objects.
    My question is this:
    What happens when I insert a row into the view object, then I requery the VO without saving or anything?
    When I re-query and insert another row, I believe the EntityObject is retaining the first row that I entered. I tried clearing the EntityCache but it complained that it cannot clear modified rows.
    Is there any other way to remove the first row I inserted ?
    Mark

    Hi,
    on the Row itself, type rowHandle.refresh(Row. ...) to see the refresh options that would also remove newly added rows. Note that different refresh options can be or'ed together
    Frank

  • Siebel On Demand Outbound Webservice integration using bpel question

    Hello everyone,
    I have a question I am hoping the forum can help me out with
    I am trying to do an integration using bpel with Siebel on demand as the begining point. The bussiness case is that I want qualified leads to be extracted out of the Siebel On Demand crm to be integrated into a back end system. This is put into a queue in the integration events. I have read the forum on all the session id and intermediate java code that provides the session id. I noticed that Siebel on demand is not a webservice requestor and only a webservice provider even for outbound messages. Since bpel always needs an input of some sort how would I kick off bpel to keep checking the queue not to mention getting the session id ect?
    Any help would be great :)
    Jaden

    Hi ,
    An integration even is something that is configured using a workflow. Like say when a Lead field is modified of r a particular Lead this even fires and will go and reside in Integration Even Queue.
    A separate bpel process is then required to read the Integration Queue (wsdl's available) and then process this even for the lead.
    Regarding extraction of Leads from SOD it need to have any Inegration events. Even without this we can do it. Just make a webcall using the Lead wsdl and then process th erecords usinga while Loop stucture. You can use a DB adapter to write to the target Database tables.
    Nyjil

  • ADF+ BPEL integration 10.1.3.3

    Hi ,
    We are trying to integrate the bpel with ADF(10.1.3.3). We want our integration should be flexible enough to handle bpel usuage based on whether customer has bpel installation or not. We check the system parameter whether bpel usauge is yes then use workflow defined bpel otherwise use normal workflow defined in pl/sql.
    Any idea what is the best way to integrate bpel with adf in above mentioned sample case?.If customer is not using the bpel we dont want to include the bpel api in ear files.Please advice.
    Thanks in advance

    Use JMS or AQ, JMS would provide more flexibility around 3rd party apps that are not running Oracle.
    This way you don't need to use a BPEL API.
    Is this what you are looking for?
    cheers
    James

  • ADF BPEL Deployment setup

    I need to design a BPEL human taskflow which would be triggered from an ADF page. I suppose the BPEL taskflow (SOA server) & the ADF page (Application server) in real-time could be deployed in two separate servers (probably these servers could be running in separate physical machines also). In this deployment scenario, is it possible for the BPEL taskflow to reuse any of the ADF components (like Entity Object or View Object or Application Module) directly ?
    Please correct me if such a deployment scenario is not possible in the first place.

    create new Application server and Integration server .
    Deploy the process into this new server then ur problem may sloved...

  • JDEV 10.1.3.1 "ADF security" questions

    Hi,
    We have a couple of questions about ADF security. Hope someone knows something about it. Any help is deeply appreciated. Jdeveloper version we use is 10.1.3.1.
    1. Using the ADF security to develop the application, can we deploy it to the IAS and switch to LDAP (OID) or we are obligated to use system-jazn-data.xml on IAS as well? If we have to use system-jazn-data.xml on IAS, do we need to copy the exact system-jazn-data.xml file to IAS embeddedoc4j/config directory? Any other configurations we need to do?
    2. I read some documents that say it is prefered to use LDAP(OID) and
    that's what we really want on the IAS. So if the answer for question 1 is we
    have to use system-jazn-data.xml, does oracle have any plan for the future to
    change it? I guess my question is will that be possible for us to develope the
    app using system-jazn-data.xml on the developer's station (for testing
    purpose) and later on we can convert it LDAP (OID) when we deploy it on IAS.
    Thanks,
    Annie
    Message was edited by:
    user447669

    Hi,
    1)
    can we deploy it to the IAS and switch to LDAP (OID)
    yes.
    If we have to use system-jazn-data.xml on IAS, do we need to copy the exact system-jazn-data.xml file to IAS embeddedoc4j/config directory?
    No. Only make suere the users and user goup exist and copy the JAAS Permissions added by ADF security
    2) There exist a migration utility to upload ADF Security permissions from syste-jazn-data.xml to OID. It is explained in teh OC4J security guide (chapter 7) whih comes with the Oracle Application Serber 10.1.3.1
    Frank

  • ADF license question

    As I understand it customers who licensed JDeveloper prior to the June-2005 license change can still deploy thier ADF-based apps based on the old license rights.
    My question is, does this apply to upgrades? For example, of we upgrade our app and rebuild it on the the latest greatest version "10.X.X" release of JDeveloper, do we still retain the old deployment rights?

    If you are also licensing support for JDeveloper. (Support license entitles you to upgrades).

  • 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

  • ADF Toystore question:  no blank row in viewobject on "Add" JSP form

    A new thread based on Suggestions for Automatic Commit/Rollback
    In the ADF Toystore application, I did not notice the blank row behavior in the user registration section like we encountered in the other thread posting (Suggestions for Automatic Commit/Rollback To test this, I created another instance of the Accounts viewobject (called it AllAccounts) inside the ToyStoreService app module and then created a JSP to list the contents of the AllAccounts viewobject. Then, I went to the registration page (which creates a blank row in the view object with a status of STATUS_INITIALIZED) and then without submitting the form, I clicked on the link that I created to view the contents of the AllAccounts view object and noticed that a blank row did not appear. What is causing a blank row to appear in our discussions in the other thread (Suggestions for Automatic Commit/Rollback but not in the ADF Toystore application? I guess somehow this row with a status of STATUS_INITIALIZED is being "removed" but I cannot find the code that does this.
    Steve -- any ideas?

    I was trying to figure out what would be the best practice to implement 'partial rollback'. Could not really find the example in Toy Store demo. For example if we create new account, the model will get dirty. And let's say user does NOT commit the record but rather uses link and navigates to some other pages. After some work user may commit the transaction which in turn will commit blank entry in account table. Well for the sake of example let's assume that this is possible scenario.
    So what I am up to is how to implement 'cancel' operation when user changes his/her mind and does something else rather then commit/save_changes in new/edit screens? What would be the best practice?
    What I have done so far is rather too bulky. I have implemented event handler for all my links and cancel button in data page:
       * "Cancel" Event Handler.
       * @param ctx The DataAction context
      public void onCancel(DataActionContext ctx) {
        HttpServletRequest request = ctx.getHttpServletRequest();
        BindingContext bcc = HttpBindingContext.getContext(request);
        DCBindingContainer dbc = DCUtil.findBindingContainer(bcc, "modifyAddSchedulingUIModel");   
        DCIteratorBinding studentCat = dbc.getIteratorBinding("AddModifyScheduleView1",null , "AddModifyScheduleView1Iterator");
        Row currentRow = studentCat.getNavigatableRowIterator().getCurrentRow();   
        currentRow.refresh(Row.REFRESH_REMOVE_NEW_ROWS | Row.REFRESH_WITH_DB_FORGET_CHANGES);
        dbc.getApplicationModule().getTransaction().commit();
        String target = "individual";
        ctx.setActionForward(target);
      Any other idea?

  • BPEL Question : assign one xsd:unbounded to other xsd:unbounded

    Hi, i have a problem executing a bpel which maybe im procesing bad.
    I am invoking some web services:
    response of webservice #1 returns a list of elements. (xsd:)
    request of webservice #2 receives a list with some elements from the response above (ws #1).
    [JPG helps to understand that process.|http://img230.imageshack.us/img230/6471/img1pa0.jpg]
    is there somenthing im missing when I try to assign one xsd:unbounded to other xsd:unbounded?
    runtime appserver stacktrace in the bpel process.
    BPCOR-6129:Line Number is 77
    BPCOR-6130:Activity Name is Assign_DatosGeneradorReporte
           at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELInterpreter.createVirtualFaultUnit(BPELInterpreter.java:250)
           at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELInterpreter.execute(BPELInterpreter.java:202)
           ... 7 more
    Caused by: com.sun.xml.transform.sware.TooManyElementsException: Too many elements: {null}cedula
           at com.sun.xml.transform.sware.impl.DOMSorter.addToSortedList(DOMSorter.java:509)
           at com.sun.xml.transform.sware.impl.DOMSorter.sort(DOMSorter.java:296)
           at com.sun.xml.transform.sware.impl.DOMSorter.sort(DOMSorter.java:413)
            ....Thanks!

    I have figured out that with xpath and copy-of operation I can copy all nodes that come in place of xsd:any from one schema to other .But beofre copying I want to change the attribute values of the node that come in place of xsd:any based on the mapping stored in the DVM.Request some one to please help .

  • JDev 11g ADF Tree question on programmatically expand and select node

    I have two questions:
    1. I'm trying to automatically expand the first level tree nodes upon display of the tree. I tried to initialize a RowKeySetImpl object, and added ArrayList of first level nodes, and used setDisclosedRowKeys method. The tree nodes are not rendered properly. If I take the following code out, then the tree content is rendered properly. Here is my code. I have three nodes that I want to expand.
    ArrayList node1 = new ArrayList();
    node1.add(new Integer(0));
    ArrayList node2 = new ArrayList();
    node2.add(new Integer(1));
    ArrayList node3 = new ArrayList();
    node3.add(new Integer(2));
    RowKeySetImpl expand = new RowKeySetImpl();
    expand.add(node1);
    expand.add(node2);
    expand.add(node3);
    this.mainTree.setDisclosedRowKeys(expand);
    2. I have a Panel Splitter, on the first facet, it contains a tree, on the second facet it will be either 'task list', or 'edit task'. When user selects a task in the 'task list', I would like to display 'edit task', while highlight the selected 'task' node on the tree.
    In respond to the ActionListener of the command link (each command link corresponds to task):
    1. How do I determine the properly node in the tree?
    2. I constructed a RowKeySetImpl object and called setSelectedRowKeys. But I get messagebox saying "To display the webpage again, Internet Explorer needs to resend the information you've previously submitted." If I clicked Retry button, the message box just gets displayed again. If I cancel, the node I hardcoded does get selected properly.
    Please help me!
    Thanks,

    I believe this has already been fixed in our main code branch. I will enter a boxer bug and make sure that the fix gets backported to boxer so that it is available in the next boxer patch. If I remember correctly, the issue had to do with trees with a large display area (with default fetchSize of 25). The issue is that the tree has to make multiple round trips to the server in order fill the visible area (view port) on the page.
    Do either of the following workarounds work:
    1) Set a fetchSize attribute on the af:tree tag larger than 25 (<af:tree fetchSize="75">). You may want to increase the rangeSize in your pageDef file as well so that the model rangeSize matches the view fetchSize.
    2) Shrink the size of the tree on the page so that it does not have to make multiple round trips to the server to fill it's view port.

  • ADF -11g : Question on how to create a pivot table

    Hi,
    I am trying to create a dynamic pivot table (the number of column and row layers change for each request) and I cannot use a data base structure to back it up.
    I thought of doing it through a managed bean but in order to do it I need to know how to create the PivotTableModel.
    The pivot table model requires a data source object and I do not know how to create it to support multiple row and column layers.
    Is there a default data source object that I can extend, or better yet is there a written example on how to create a pivot table model using a managed bean.
    Thanks,
    Or
    Edited by: user638363 on Dec 18, 2008 7:02 AM

    Hi,
    beyond the documentation, the pivot table is described in
    http://technology.amis.nl/blog/2593/adf-faces-11g-reloading-the-matrix-using-the-pivot-table-component
    http://technology.amis.nl/blog/3786/creating-a-salary-heat-map-with-the-adf-11g-faces-pivottable-component
    http://technology.amis.nl/blog/3673/adf-11g-richfaces-a-closer-look-at-the-pivot-table-data-visualization-component
    I am not aware of any sample that directly meets your requirement
    Frank

  • ADF Query questions

    hi, Expert
    I am using ADF BC and Jdev11g,
    In my application, I have a query page, the Search panel is based on "ExecuteWithParams" and there are two buttons "Search" and "Reset", then the query results set will be display in the af:table. I set the "filterable" for each column in the table to be "true", my user fed back to me there are some confusion on query, the values entered in seach panel and filter can not be sync. Do I need to set "PartialTrigger" & "RefreshCondition" for each filterable column? Thanks!
    Rgds!

    Hi,
    not sure what "there are some confusion on query, the values entered in seach panel and filter can not be sync." means. If it means that e.g. searching on deptId does not show the value of deptId in the departmentId filter field, then this is expected as the filter and the executeWithParams don't use the same view criteria.
    Frank

  • Jdev Plugin for BPEL question

    Hi,
    I am trying to do the tutorial that came with the download soa_windows_x86_101310_disk1.zip off of OTN called "Send Email with Attachments"... I am using JDev version 10.1.3.2 on XP. I installed the SOA suite into c:\Oracle.
    When I create a new BPEL process project and view the WSDL, I do not see <element name="somename"> but rather I see <message name="somename"> and the tutorial refers to this element tag and requires updating it. Has the tool been upgraded and the tutorials were not? What is the correct procedure here?
    Thanks!
    Ginni

    Hi,
    It could be refering to the xsd file.
    Thanks
    Message was edited by:
    soaUser

  • ADF: a question about Dashboard...

    Hello everyone!
    Suppose I have a dashboard with 2 columns and totally 4 portlets. The first row has portlets 1 and 2 , and the second one portlets 3 and 4.
    My question here is the following: If I hide portlet 3, is it possible portlet 4 to expand so that it occupies the space of portlet 3 and 4?
    Thanks a lot!

    Hi,
    if you talk about af:panelDashBoard the the answer is no. If your question is WebCenter / Portal related (as af:panelDashBoard can only host panel boxes) then you should ask again on teh Web Center forum
    Frank

Maybe you are looking for

  • ODI11g -  problem using Date transformation in a file to table ineterface

    I have a file to table interface which has few optional date fields on source data store.My requirement is to pass NULL if the date field is empty in the csv file (source). I achieved it in 10g ODI by using decode(col_name,'',NULL,to_date(col1,''mm/d

  • OBIEE 11g - Line-Bar Graph problem

    Hi, I am trying to build a Line-Bar graph where the line represents target. My data is as follows: Dim1 Dim2 Fact Target A Z 10 2 A Y 5 2 B X 6 3 B W 7 3 Please note that, the target is same across same Dim1. Like A has same target, B has same target

  • I am having trouble with my online email account when I use firefox,because of the time out.

    I go to my email account on the server's webpage. Do not use weblive or outlook. When I am typing a long email, it will not save or send because it expires according to a message that comes up from firefox. It is lost.

  • Problem in j2ee.bat

    When i tried to run j2ee1.3 server from the command prompt i received the following error . 'C:\Program' is not recognized as an internal or external command, operable program or batch file. i found that the following part of the j2ee.bat is throwing

  • Sun java web server for Zlinux (Linux for System Z)?

    Hi thank you for reading my post Is there any version of Sun java web server available for Z linux? Or its better to say whether linux edition of sun java web server run under Zlinux (linux for System Z) thanks