ON-DEMAND Process - DB Object

Hello All,
I'm not familiar with the object storage model of APEX objects and was wondering how On-DEMAND processes are stored? Can you access them via sqlplus (toad,pl/sql dev, sql dev)?
The reason I ask, is once the app is published, is there a way to chage the pl/sql procedure attached to an on-demand process, or must you republish the entire application?
Thanks in advance.
Jan

Just as any other setting or statement you make in APEX it's stored in a database table somewhere. So you might be able to access it, but not as you expect it.
A good way of working is - to overcome - your problem, code your processes so that they contain only one line: a call to a db package/procedure/function. That way you can
1. Compile and test the implemented logic separately.
2. Change the logic without changing or redeploying the apex side of the app.

Similar Messages

  • SharePoint Foundation Sandboxed Code Service - Unable to activate worker process proxy object within the worker process

    Issue:
    On a vanilla installation, the sandboxed code service (e.g. SPUCHostService.exe) is started; however, SPUCWorkerProcessProxy.exe and subsequently SPUCWorkerProcess.exe fails to start.
    Resolution/Workarounds attempted:
    Attempted 2 different Load balancing settings – local and remote (i.e. affinity)
    Ensured local computer policy on server for ‘RPC Endpoint Mapper Client Authentication’ and ‘Restrictions for Unauthenticated RPC clients’ is disabled.
    Ensured following key in registry is set properly - HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\RPC
    Attempted to bypass SharePoint’s check for certificate revocations at crl.microsoft.com
    Ensured the service account is added to the respective groups (e.g. Performance Log Users, Performance Monitor Users, IIS_IUSRS, WSS_ADMIN_WPG, WSS_WPG)
    Increased limit of ‘AbnormalProcessTerminationCount’ of SPUserCodeService via Powershell
    We have tried all possible workarounds from the following MSDN reference:
    http://blogs.msdn.com/b/sharepointdev/archive/2011/02/08/error-the-sandboxed-code-execution-request-was-refused-because-the-sandboxed-code-host-service-was-too-busy-to-handle-the-request.aspx
    ULS:
    02/21/2014 05:24:50.64  SPUCHostService.exe (0x0230)  0x0F74  SharePoint Foundation Sandboxed Code Service              fe8a               
    Medium               -  - Unable to activate worker process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000  
    02/21/2014 05:24:50.64  SPUCHostService.exe (0x0230)  0x0F74  SharePoint Foundation Sandboxed Code Service              fe8c               
    Medium               -  - Error activating the worker process manager instance within the worker process. - Inner Exception: System.InvalidOperationException: Unable to activate worker
    process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000     at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.CreateWorkerProcessProxies()    
    02/21/2014 05:24:50.64  SPUCHostService.exe (0x0230)  0x0F74  SharePoint Foundation Sandboxed Code Service              ei0t               
    Medium               - Process creation/initialization threw an exception. Stopping this process. "ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000"
    02/21/2014 05:24:50.65  SPUCHostService.exe (0x0230)  0x0F74  SharePoint Foundation Sandboxed Code Service             
    fe87                Medium               -  - Error activating the worker process manager instance within
    the worker process. - Starting worker process threw - Inner Exception: System.InvalidOperationException: Unable to activate worker process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000     at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.CreateWorkerProcessProxies()   
    Any other insights on how I can troubleshoot the issue described?
    Thanks in advance!

    Hi ,
    For resolving your issue , you can do as the followings:
    1. Logged into the Web Server with the Timer Service Account.
    2. Ran the powershell command to check the SID of the account running the spucworkerprocessproxy.exe:  
    $(Get-SPManagedAccount -Identity "THE SERVICE ACCOUNT").Sid.Value
    3. Checked the registry :
    HKEY_USERS\[SID OF THE SERVICE ACCOUNT]\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing\State
    4. Changed the value 0x00023c00 to 0x00023e00
    In addition, here are some similar posts for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/aae497df-5f0d-4f86-a724-c7b805ccd07f/sharepoint-sandboxed-code-service-troubles?forum=sharepointgeneralprevious
    http://blogs.technet.com/b/operationsguy/archive/2011/01/17/sharepoint-2010-sandboxed-code-solutions-and-web-proxy.aspx
    http://social.msdn.microsoft.com/Forums/en-US/c21e2c3a-a259-4d5f-8071-eff52b7bddc3/issue-sandbox-solution-too-busy-to-handle-the-request?forum=sharepointgeneralprevious
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Error while using ajax addParam function in on demand process

    Hi ,
    I am calling an on demand process from a javascript that inserts value from a modal from into a table.
    function f_insert_transaction()
    var ajaxRequest = new htmldb_Get(null, $v('pFlowId'), 'APPLICATION_PROCESS=insert_manual_transaction',73);
              ajaxRequest.addParam('x01', $v('P73_ARRANGEMENT_ID'));
              ajaxRequest.addParam('x02', $v('P73_TRANSACTION_DIALOGID'));
              ajaxRequest.addParam('x03', $v('P73_CUSTOMER_NAME'));
              ajaxRequest.addParam('x04', $v('P73_CUSTOMER_NUMBER'));
    ajaxRequest.addParam('x05', $v('P73_SALES_ORDER'));
    ajaxRequest.addParam('x06', $v('P73_SO_LINE'));
    ajaxRequest.addParam('x07', $v('P73_INVOICE'));
    ajaxRequest.addParam('x08', $v('P73_INVOICE_LINE'));
    ajaxRequest.addParam('x09', $v('P73_ITEM'));
    ajaxRequest.addParam('x10', $v('P73_ITEM_DESC'));
    var ajaxResult = ajaxRequest.get();
    alert(ajaxResult);
    ajaxRequest = null;
    }The insert works fine as long as item names range from x01 - x10.
    When I add the below
    ajaxRequest.addParam('x11', $v('P73_QUANTITY')); The insert stops working, and the alert displays the following error message :
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>404 Not Found</TITLE>
    </HEAD><BODY>
    <H1>Not Found</H1>
    The requested URL /pls/dev1/wwv_flow.show was not found on this server.<P>
    <HR>
    <ADDRESS>Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at </ADDRESS>
    </BODY></HTML>
    Appreciate any help in debugging this
    Thanks,
    Dippy
    Edited by: Dippy on Aug 2, 2010 10:14 AM

    Hello:
    You could concatenate the page-item values into a single string where the values are separated from each other by a suitable delimiter ( a colon for example) and set, x01, to this concatenated value. You could then decompose this concatenated string in the ODP used in the AJAX call to obtain the individual values.
    varad

  • 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 You

    Hi,
    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

  • BPM Process Data Object vs Managed Bean

    I need to store an ID which is the primary key of a record in a database in my BPM process so that I can use that to set the bind variable on my view object query. Is it better to store this ID in a process data object or in a managed bean and why is one better than the other?

    I suggest to do the other way.
    Store the BPM Process Instance Id in the Database when you create data in the table.
    Pass this Instance Id to the VO query parameters.
    You can create a page binding of this instance Id from the Data Controls
    I am assuming there is a 1-1 relation between your BPM Process and Database Row.

  • Oracle BPM and JMS Queue: How to associate data from Map Messages to Process Data Objects?

    Good Day!
    I'm currently working on a project wherein it tries to get data from a JMSqueue Map Message being populated by CEP.
    After CEP pushes some data in the JMSqueue. I have BPM configured with a JMS adapter to look up whether there are any messages to be processed upon.
    Inside BPM, I want to know how can I correlate the data from the Map Message to my Process Data Object.
    For example, If I have a Map Object wherein it has 3 attributes:
    FirstName:String
    LastName:String
    Age:int
    What is the expression I need to use inside Oracle BPM Data Association screen in order to map the data from the Map Messages into my process data objects?
    Thanks!
    Regards,
    Jeff

    Any ideas? Thanks!

  • BPM Process Data Object of type Business Objects

    I am using JDeveloper11.1.1.5 and using BPM Project. I have created a business object of type Quote and I want create a Process data object of type Quote. But I don't find 'Browse more types' button on Create data object wizard. I am stuck at this place. Is there any work around or do I need to revert to older version of Jdeveloper.
    Regards
    Sunil Mandrawadkar

    Have you tried with following forum.I think you can find answer quickly from that.
    Business Process Management Suite

  • Synchronizing on Process Instance Object

    Hi,
    We have a process web service, which is used to create, notify and update BPM process instances.
    This process web service is accessed from Java code.
    The java code uses a re-try mechanism to talk to the process web service.
    We want this to be changed using wait-notify. But we have only the string value for Process Instance ID.
    Can anybody help me on how could we get the BPM process instance object with the Process Instance ID?
    I hope for this case we should synchronize on the BPM process Instance Object.
    Please find below the current code snippet with re-try which needs to be changed as wait-notify.
    for(int i = retryCount; i >= 0; i--) {
    try {
    sResult = wsClient.notifyUpdate(oEvent, oTG, sInstId);
    break;
    catch(Exception e) {
    if(i == 0) {
    throw e;
    logger.error(getClass().getName() + " - Failed to call wsClient.notifyUpdate()");
    try {
    logger.info(getClass().getName() + " - Retrying bpmUpdateProcessInstance ... " + (retryCount - i + 1) + " times in "
    + (System.currentTimeMillis() - startTimeMillis) + " millis.");
    Thread.sleep(retryInterval);      
    catch(InterruptedException ignore) {
         //silent catch is fine here
    }// end for loop

    Hi,
    Please correct me if I miss-understood your question.
    You want to know the process instance Id of a particular BPM process ?
    You want to do it through java code or in BPM process layer ?
    Which version of OBPM/ALBPM you are using ?
    Bibhu

  • Calling an On Demand Process in PL/SQL Region without using AJAX

    Hi!
    I am trying to find a way to call an On demand Process in a PL/SQL Reports Region. The reason is that i need Reportings for about 20 Pages that look like the same but have different parameters. I already have some Processes that return SQL Statements and it works fine. But these Reportings are more complex and it's not possible to return it wirh a SQL Statement.
    I have seen some solutions in this forum that used AJAX to call such a process. The problem is, that I'm not allowed to use AJAX because activeX is diabled. I tried it and it works but i need another way to solve this process call.
    Thanks in advance
    Philipp

    At the moment I cannot say if your link can help. Right now the call of the On demand Process looks like this:
    Inside annonymous PL/SQL Region:
    <script type="text/javascript">
    get = new htmldb_Get(null,'||:APP_ID||'.,'APPLICATION_PROCESS=F_REPORT_NAME',0);
    gReturn = get.get();
    document.write(gReturn);
    </script>

  • Possible to download file using ajax on demand process?

    In the past I've used procedures with the wpg_docload.download_file function to download files by granting public to the procedure and executing the download from a report link (such as http://localhost:8080/apex/schema_name.download_blob?file_in=xxx)
    I'd like to move to the download to a link that's called from an ajax called on demand process. Is this possible? I have got the report link calling a javascript function passing the rowid in and running the same download_blob procedure via the on demand process but, whilst the code runs OK it does not return the prompt box for the user to open/save the file. I guess this might be because it's not returning it to the javascript in the proper way but I'm v flaky wrt to ajax.
    var ajaxRequest = new htmldb_Get( null , &APP_ID. , 'APPLICATION_PROCESS=download_blob' , 0);
    var ajaxResult = ajaxRequest.get();
    Thanks
    Simon

    To be honest, it's not a big deal, I wanted to do it this way as we have data stored as BFILES and some of the downloads are so big they take a while to load into a temp_blob and thus I wanted to call it from java script so I could call a loading "div" 1st, so the user does not see the screen hanging. However I've changed the code to load the BFILE into an actual blob 1st (through an ajax process) and then return a link to the screen pointing to an app process which opens the blob.

  • On Demand Process - Special Characters

    I have an on demand process (ODP) that I use to populate items in a page with. I followed the examples from Denis Kubrik and others on the OTN. The problem I have run into is data with ampersands. I know that there a special characters that need to be escaped in XML documents. I have used the replace function in the SQL Query to change '&' into '&amp;'. However, the process still seems to die. I am using the testing capability documented here.
    When I run the ODP that does not return the ampersand all is well, I see the XML document. When I retrieve a row with the ampersand I see:
    "Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    The operation completed successfully. Error processing resource 'http://test:7734/pls/apex/f?p=128:0:8491..."
    When I run the SQL code from SQL developer using output I see a valid XML document.
    Does anyone have any insight to this?
    Thanks!

    DECLARE
    v_first_name VARCHAR2 (50);
    v_last_name VARCHAR2 (50);
    v_title VARCHAR2 (50);
    v_phone VARCHAR2 (25);
    v_email VARCHAR2 (50);
    v_dept VARCHAR2 (200);
    BEGIN
    FOR c IN (select first_name, last_name, nyc_title, desk_phone_number, email_address, kronos_badge_number, employee_id, replace(department_name,'&','&amp;') department_name
    from anc_employees_v
    where employee_id = TO_NUMBER (v('EMPLOYEE_ID')))
    LOOP
    v_first_name := c.first_name;
    v_last_name := c.last_name;
    v_title := c.nyc_title;
    v_phone := c.desk_phone_number;
    v_email := c.email_address;
    v_dept := c.department_name;
    END LOOP;
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P16_FIRST_NAME">' || UPPER(v_first_name) || '</item>');
    HTP.prn ('<item id="P16_LAST_NAME">' || UPPER(v_last_name) || '</item>');
    HTP.prn ('<item id="P16_TITLE">' || v_title || '</item>');
    HTP.prn ('<item id="P16_PHONE">' || v_phone || '</item>');
    HTP.prn ('<item id="P16_EMAIL">' || UPPER(v_email) || '</item>');
    HTP.prn ('<item id="P16_DEPARTMENT_ID">' || UPPER(v_dept) || '</item>');
    HTP.prn ('</body>');
    EXCEPTION
    WHEN OTHERS THEN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>GET_EMPLOYEE_DATA</desc>');
    HTP.prn ('<item id="P16_ERROR">' || SQLERRM || '</item>');
    HTP.prn ('</body>');
    END;

  • Querying instances in 11g and filtering by process data object

    Hi all,
    I have tried to query instance following this link: http://soadev.blogspot.com/2011/07/querying-oracle-bpm-process-instances.html. It works fine, but I need to filter the instances by a process data object with a String type. Is it possible to do this?

    Thanks Mihai
    Does it mean that if the admin user does not purge instances specifically, the uses will continue to find them by querying for completed instances in their worklist (when they have already taken action for their human task, and when the related BPEL instance is finished)?
    Thanks
    Satinder

  • Calling ON DEMAND process for outside APEX

    Hi All,
    I would like to call an ON DEMAND process from outside APEX (using HttpClient java class). I think i have to use wwv_flow.accept but i'm bit lost on how to specify that i'm calling a process on demand.
    Has someone already tried this ? samples or advices would be more then welcome ... The goal behind the scene , would be to have an Apex page acting like a servlet (HTTPClient send a xml request and receive an XML response from the apex page).
    Thks.
    Thierry

    Thierry,
    You need to set up the HTTP request as you would if invoking your application+process from a URL, e.g.,
    ..f?p=100:0:9876543210123456789:APPLICATION_PROCESS=<name of process>
    ..in which request header the authentication cookie is provided, and in which request the correct session ID is provided. You could alternatively do a POST to wwv_flow.show, bypassing the f procedure, but I don't know if that will save you any steps.
    Scott

  • AJAX & On Demand Process Error

    Hi All,
    I have a SQL report that display a group of employees with a check box column,when a button pressed i need to
    copy a value of an item to the text box corresponding to the selected employees without refreshing the page.to do this, i used AJAX and On Demand Process and it was the firist time to deal with on demand processes. . But when I clicked the button nothing happened and no java script error is raised.
    the report SQL query:
    select apex_item.checkbox(2,ID,'UNCHECKED') " ",ID, NAME, APEX_ITEM.TEXT(3,ID) "Value"
    from Emp
    where FK_USER_ID=(SELECT "FK_Emp_ID"
    FROM "Users"
    where "User_Name"=V('APP_user'))
    order by 1
    the java script function invoked by the button:
    var arr=new Array();
    var ajaxRequest=new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=copy_process',0);
    arr=document.getElementsByName('f02');
    *for(i=0;i<arr.length;i++){*
    *ajaxRequest.addParam('f12',arr.value);*
    var ajaxResult=ajaxRequest.get();
    ajaxRequest=null;
    and the Process:
    FOR i in 1..APEX_APPLICATION.G_F12.COUNT LOOP
    FOR j in 1..APEX_APPLICATION.G_F03.COUNT LOOP
    if(APEX_APPLICATION.G_F03(j)=APEX_APPLICATION.G_F12(i)) then
    APEX_APPLICATION.G_F03(i):=:VALUE;
    end if;
    end loop;
    end Loop;
    Can any one help me??

    Hi,
    When you post code wrap it to {noformat}
    {noformat} tags so it is easier to read.
    I'm 100% sure you get some JavaScript error. How you have check that there was no errors ?
    Take Firefox and Firebug extension. Run page and check Firebug console.
    Also you do not pass f03 to On Demand process so below part of process do not never loop
    FOR j in 1..APEX_APPLICATION.G_F03.COUNT LOOP
    if(APEX_APPLICATION.G_F03(j)=APEX_APPLICATION.G_F12(i)) then
    APEX_APPLICATION.G_F03(i):=:VALUE;
    end if;
    end loop;Also your report select look strange. Is your table and column names really case sensitive ?
    And do not use v function in report query. Use bind variables like :APP_USERRegards,
    Jari

  • Problem with simple on demand process

    hi
    my on demand process
    declare
    art char := 'GT';
    begin date := '01.01.2006';
    end date := '31.01.2006';
    v_count number;
    begin
    select wvfk.fu_working_days(ART,begin,end)
    into v_count
    from dual;
    end;
    and that's the call
    function test()
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=WORKING_DAYS',0);
    gReturn = get.get();
    alert(gReturn);
    but the alert return nothing
    what is wrong

    So what is your on demand process supposed to return? You are returning a value from
    dual into a variable and the process is returning no value. How about having
    HTP.prn (v_count);
    in your on demand process. Debug it using SQL Workshop and see what you get.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for

  • Can't find file in new folder?

    I'm writing a script that exports some data from Excel then opens the file in TextWrangler to do a find & replace. The first part of the script checks to see if there's a Folder called "Output" on the desktop, if not create the folder. If I run the s

  • Installation fails W.Server 2008, Sql 2008 R2

    Hi, I need help ASAP please !! Im trying to install  BPC 75 SP03 MS version, in Windows Server 2008, SQL 2008 R2 but I cant manage to get the installation done, an error is shown up and I cant go further even though I applied 2 different workarounds.

  • When I try to delete a song from my iTunes library, I get an error message

    It reads: 'The iTunes library file cannot be saved. You do not have enough access privileges for this operation'. What does that mean, and how do I fix it?

  • E-Business to Apex Authentication Problem - Redirection Loop?

    Hi Folks, I have a couple of EBS (11i) environments which successfully launch Apex Functions using the whitepaper delivered from Cabot Consulting (Extending Oracle Applications). I have created a new responsibility, menu and function on our live envi

  • Can not find symbol error

    I have imported javax.swing.*; and I have a listener for my JList box but when I say impliments ListSelectionListener the compiler says can not find symbol. Can anyone help me on this?