Wait for success of flow in PL/SQL

Hi!
I start my flows using the PL/SQL api (createProcess, startProcess). Is there any way to wait for the execution time of the flow in the procedure?
startProcess only starts a background process which executes the flow and terminates successfully after less than a second and returns the focus to my procedure.
I need to call some pl/sql procedures and functions after the (successful) execution of the workflow. Unfortunately I am not able to integrate those procedures into the flow, because workflow does not work correctly with the procedures (RPE-01008 and RPE-01009).
Regards
Michael

Hi!
The itemkey is generated by a sequence. Just have a look at the folowing procedure.
Regards
Michael
create or replace procedure start_wf
is
v_itemtype     varchar2( 100 ) := 'TOMIS';
     v_itemkey     varchar2( 100 );
     v_job_nr     number;
begin
select wf_Seq.nextval()
into v_job_nr
from dual;
     v_itemkey := lpad( to_char( v_job_nr ), 5, '0' );
     wf_engine.createprocess
          itemtype      => v_itemtype,
          itemkey      => v_itemkey,
          process      => 'MHN_TEST'
          -- user_key      in varchar2 default null,
          -- owner_role      in varchar2 default null          
     wf_engine.setItemAttrNumber
          itemtype      => v_itemtype,
          itemkey      => v_itemkey,
          aname           => 'P01_P_JOB_NR',
          avalue           => v_job_nr
     wf_engine.startprocess
          itemtype      => v_itemtype,
          itemkey          => v_itemkey
end;

Similar Messages

  • Installing SQL Server 2012 Developer Edition or wait for SP2?

    Hi everyone,
      I just received my copy of SQL Server 2012 Developer Edition I ordered.  As usual, before installing, I searched the web for any hint or other stuff on the subject.
      I first found that SP1 was already available.  Honestly I prefer installing using the last version available instead of upgrading.  I found the SP1 install package using the following web address:
    http://www.microsoft.com/fr-ca/download/details.aspx?id=35575
      Is this the right install package to use? 
      Now, still reading everything I could find on that SP1, I found stories about major issues with SP1. 
    Two examples I remember:
    http://connect.microsoft.com/SQLServer/feedback/details/770630
    http://support.microsoft.com/kb/2793634/en-us?wa=wsignin1.0
    Two others (not specifically related to SP1):
    http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/thread/a0da3372-ab3d-4af0-b4c4-0d47163e0e03/
    http://www.sqlperformance.com/2012/11/system-configuration/2012-cal-problems
      My question.  Should I wait for SP2?  If so, any target date when it should be available?
      If not, what would you recommend as the logic install sequence?  Should I look for any cumulative update(s)?  Any other "manual settings" I should consider?
      Finally, can someone guide me regarding what options I should choose while installing.  My main goal is to program/build C++, C# applications using VS2010 that will interface with SQL Server for data storage purposes (add/update/delete,
    batch update/delete) and reports.
    Hope to hear from someone.
    Stephane
    BTW:  My current setup is the following:
    Intel(R) Core(TM)2 CPU  [email protected]
    3.00 Go
    Vista Ultimate SP2 32bits
    Visual Studio 2010 Professional Edition (which will be upgraded to last SP once installed)

    Hi again,
      I proceeded with download of CU7.  On Microsoft's webpage, there are several files we can download:
    2012_SP1_DAC_CU7_2894115_11_0_3393_x86
    2012_SP1_AOrcleDes_CU7_2894115_11_0_3393_x86
    2012_SP1_AOrcleSer_CU7_2894115_11_0_3393_x86
    2012_SP1_PPExcel_CU7_2894115_11_0_3393_x86
    SQLServer2012_SP1_CU7_2894115_11_0_3393_x86
      Which one I should choose?
      Also, some people reported having problems installing this update. 
    http://blogs.msdn.com/b/sqlreleaseservices/archive/2013/11/19/cumulative-update-7-for-sql-server-2012-sp1.aspx
      Can you comment?
    Thanks again for helping,
    Stéphane

  • Hi, i have a new number and I'm trying to activate iMessage but i can't.  it is only saying waiting for activation,  i have tried a lot of times with not success.  i'm not sure if i need to replace the old one to this new one, or what do do. can you help

    Hi, i have a new number and I'm trying to activate iMessage but i can't.  it is only saying waiting for activation,  i have tried a lot of times with not success.  i'm not sure if i need to replace the old one to this new one, or what do do. can you help

    Troubleshooting iMessage activation:
    http://support.apple.com/kb/TS4268

  • Install SQL Express With MDT 2012 now or wait for SCCM and full SQL Server?

    We are planning to get SCCM 2012 R2 in several months and it will come with SQL Server 2012 when it is installed and configured at that time.
    If we would like to start experimenting with using a database in MDT 2012 now, can we go ahead and set up a database in SQL Express and start using it  for deployments now or should we wait for SQL server?  
    Can the database created in standalone MDT 2012 with SQL Express be migrated to SQL Server 2012  and SCCM 2012R2 or would we need to start over with a new database when we get SQL Server and SCCM?

    Using SQL Express should be fine.  You can export the database from there and import it into a full SQL Server install later if you want to preserve the content.
    Thanks,
    -Michael Niehaus
    Senior Product Marketing Manager, Windows Deployment
    http://blogs.technet.com/mniehaus
    [email protected]

  • High "CPU + Wait for CPU" event on pl/sql execute operation

    I am executing a pl/sql in 256 parallel sessions, on 11G r2 DB (RAC 2 nodes), on a 42core IBM P7 Machine.
    PL/sql function opens a cursor on a huge table with around 20M rows and does further processing.
    Work-load is equally divided into 256 parallel sessions. 256 parallel sessions are opened by a middle-ware application and each session processes data based on an identifier (there are 256 distinct identifier values).
    PL/sql function is comprised of some SQL operations, on which i am experiencing some cluster waits. But CPU + wait for CPU event on pl/sql execute operation is close to 80% of the total execution time.
    Top user events:
    Event Event Class % Event Avg Active Sessions
    CPU + Wait for CPU CPU 80.88 98.15
    gc current block 2-way Cluster 3.33 4.05
    gc cr block busy Cluster 2.01 2.44
    gc cr block 2-way Cluster 1.97 2.39
    db file sequential read User I/O 1.81 2.20
    Top SQL command type:
    SQL Command Type Distinct SQLIDs % Activity Avg Active Sessions
    PL/SQL EXECUTE 3 60.99 74.02
    SELECT 66 12.90 15.65
    INSERT 24 9.89 12.01
    UPDATE 9 6.00 7.28
    DELETE 2 1.33 1.61Rest of the SQL queries seem to be very optimum, but waits on pl/sql execute operation are causing very low tps.
    Can anybody give me some heads-up about where to and what to look for to resolve?
    Please let me know if any extra information is required.

    AWR report :
    Header
    DB      Name      DB Id           Instance      Inst num      Startup Time           Release RAC
    FCR           1304316316      fcrypp1      1                01-12ÔÂ-12 04:12      11.2.0.2.0 YES
    Host           Name Platform                     CPUs      Cores      Sockets Memory (GB)
    z4ci2011      AIX-Based Systems (64-bit)      168      42        320.00
                   Snap Id      Snap Time                     Sessions      Cursors/Session
    Begin Snap: 40650           01-12ÔÂ-12 06:40:03      1203           5.8
    End Snap:      40669           01-12ÔÂ-12 09:50:01      1122           5.3
    Elapsed:        189.96 (mins)    
    DB Time:        22,251.65 (mins)
    Load profile
    Per Second           Per Transaction      Per Exec      Per Call
    DB Time(s):           117.1                19.5                     0.00           3.89
    DB CPU(s):                16.1                2.7                     0.00           0.53
    Redo size:                12,759,186.3      2,126,361.0    
    Logical reads:           181,875.9           30,310.2    
    Block changes:           54,515.5           9,085.2    
    Physical reads:      1,340.3           223.4    
    Physical writes:      8,788.9           1,464.7    
    User calls:           30.1                5.0    
    Parses:                26.5                4.4    
    Hard parses:           0.4                0.1    
    W/A MB processed:      8.5                1.4    
    Logons:                0.1                0.0    
    Executes:                41,176.0           6,862.1    
    Rollbacks:                1.9                0.3    
    Transactions:           6.0      
    Time model statistics
    Statistic Name                                             Time (s)          % of DB Time
    sql execute elapsed time                              1,334,935.55     99.99
    PL/SQL execution elapsed time                         1,180,376.60     88.41
    DB CPU                                                       182,904.44          13.7
    repeated bind elapsed time                              292.83               0.02
    sequence load elapsed time                              279.75               0.02
    parse time elapsed                                        87.4               0.01
    hard parse elapsed time                                   22.52               0
    failed parse elapsed time                              5.12               0
    connection management call elapsed time               4.61               0
    PL/SQL compilation elapsed time                         1.91               0
    hard parse (sharing criteria) elapsed time          0.49               0
    hard parse (bind mismatch) elapsed time               0.39               0
    inbound PL/SQL rpc elapsed time                         0.1     0
    DB time                                                       1,335,099.30     
    background elapsed time                                   33,298.67     
    background cpu time                                        11,692.76     
    Operating System Statistics
    Statistic Value End Value
    AVG_BUSY_TIME 202,428  
    AVG_IDLE_TIME 936,397  
    AVG_IOWAIT_TIME 4,124  
    AVG_SYS_TIME 84,480  
    AVG_USER_TIME 117,573  
    BUSY_TIME 34,074,303  
    IDLE_TIME 157,378,825  
    IOWAIT_TIME 755,368  
    SYS_TIME 14,256,010  
    USER_TIME 19,818,293  
    LOAD 21 10
    OS_CPU_WAIT_TIME 23,770,800  
    VM_IN_BYTES 20,496  
    VM_OUT_BYTES 2,086,940,520  
    PHYSICAL_MEMORY_BYTES 343,597,383,680  
    NUM_CPUS 168  
    NUM_CPU_CORES 42  
    NUM_LCPUS 168  
    NUM_VCPUS 42  
    GLOBAL_RECEIVE_SIZE_MAX 41,943,040  
    GLOBAL_SEND_SIZE_MAX 41,943,040  
    TCP_RECEIVE_SIZE_DEFAULT 16,384  
    TCP_RECEIVE_SIZE_MAX 9,223,372,036,854,775,807  
    TCP_RECEIVE_SIZE_MIN 4,096  
    TCP_SEND_SIZE_DEFAULT 16,384  
    TCP_SEND_SIZE_MAX 9,223,372,036,854,775,807  
    TCP_SEND_SIZE_MIN 4,096
    SQL ordered by CPU Time
    CPU Time (s)      Executions       CPU per Exec (s) %Total      Elapsed Time (s)      %CPU      %IO      SQL Id SQL Module SQL Text
    180,330.13           127                1,419.92                98.59      1,326,401.03           13.60      1.08      04kt8u64udphu    BEGIN :1 := ap_ch_eod_shell_en...
    8,025.48           9,868,469           0.00                     4.39      10,809.88                74.24      9.21      arnkbsnzhha77 ch_txn_shell_115  SELECT * FROM CH_ACCT_MAST WHE...
    6,117.64           9,873,495           0.00                     3.34      8,557.64                71.49      7.14      8qcryvj294s79 ch_eod_shell_138  UPDATE CH_ACCT_MAST_PAR SET DA...
    4,614.71           3,185,313           0.00                     2.52      11,130.77                41.46      11.88      b75wwkxw34x2k ch_eod_shell_228  INSERT INTO CH_TMP_XF_GL_TXNS ...
    4,374.29           9,866,217           0.00                     2.39      5,876.00                74.44      37.88      g22p493ra2zr5 ch_eod_shell_248  UPDATE CH_ACCT_MAST SET BAL_LA...
    3,514.57           14,026,451           0.00                     1.92      6,274.60                56.01      29.55      7bwhphfnnuqpr ch_eod_shell_59  INSERT INTO CH_ACCT_INT_BREAKU...
    3,253.36           3,185,706           0.00                     1.78      3,875.42                83.95      9.20      9dq134q9btxq8 ch_eod_shell_74  INSERT INTO CH_ST_CAP_INPUT_TX...
    3,131.64           9,875,603           0.00                     1.71      5,338.43                58.66      15.55      6xhwk1b37rh1t ch_txn_shell_143  UPDATE CH_ACCT_ATTRIBUTES SET ...
    2,954.15           9,878,718           0.00                     1.62      5,692.88                51.89      13.22      b4at7uq2hw6r7 ch_sweepin_shell  SELECT TRIM(A.COD_PKG) FROM RP...
    2,572.01           9,867,277           0.00                     1.41      4,605.88                55.84      12.58      54ud0a8tuwwbc ch_txn_shell_17  SELECT * FROM CH_ACCT_ATTRIBUT...
    1,941.29           19,730,455           0.00                     1.06      5,580.38                34.79      7.02      dx5kng8qu560t ch_txn_shell_59  UPDATE CH_ACTIONS_DUE SET COD_...
    1,846.01           9,875,239           0.00                     1.01      4,737.66                38.96      12.55      af7f92f13rmy4 ch_txn_shell_85  INSERT INTO CH_ACTIONS_DUE (CO...

  • SQL 2012 Transactional Replication Publisher is also AG Primary, AG fine, but Replication status continuously 'waiting for next Log backup'

    Hi,
    I have a SQL 2012 instance that hosts 3 databases that are publishers in (push) transactional replication to subscribers in other domains and are also primary in an Availability Group to other instances in the same domain.  The AG is healty (synchronized),
    and replication is ok for 2 databases, but the third continuously shows the Publisher to Distributor history status as 'Replicated transactions are waiting for next Log backup or for mirroring to catch up.'
    I have weekly full, nightly differential, and hourly log.  Those are running and I've tested restoring the publisher db from them into a test instance.  The option for sync_with_backup is 0.  I generated a new snapshot, no change (haven't
    reinitialized, that will be last possible option as this is production).  When the log backups run, status will briefly change to 'Approximately (x) log records have been scanned in pass # ..., 0 of which were marked for replication' and some data
    does replicate, but then status immediately changes back to the message about waiting for log backup.   We are only replicating tables (no views, sp's, etc).  All subscribers and AG secondaries are SQL 2012.  My db is less than 200
    GB data. 
    The jobs are continuously running and data updates are occurring on the primary.  The distribution database is on the same instance as the publishers.  Anyone have any ideas what could be happening? 
    Thanks greatly!

    Update - I resolved this. 
    We had added a new asynchronous instance to the AG, but hadn't added the databases on the new node to the AG yet.  Conceptually it seems that adding the instance must have marked the logs and interferred with transactional replication on the
    primary.  Once I added the databases to the AG on the secondary, then the replication status cleared on the primary and has remained cleared.  It is odd though that it only impacted one of the databases in the AG. 
    cheers. 

  • Application waits for a sql

    Oracle DB 10.2.0.3 on IBM AIX 5.3.
    One of my application which connect to DB from multiple DB running on different app servers, the application runs a select sql with "for update" clause to ensure no other JVM thread update the same row.Due to this lots of sessions shows applcation waits on Enqueue-TX row lock contention.
    When developers are contacted about this issue they says thats the expected behavior of the application to ensure the same workitem does't picked up by the 2 different users at the same time, so if 1 session is holding that particular row the other session will wait for that session to either commit/rollback and it will wait indefinately.Also they says the waiting session doesn't consume much resources other than just 1 spin to CPU.
    ADDM shows huge row contention for that particluar table and many blocking sessions.How does it affects the overall performance of the database? I can't add NOWAIT clause in the select for update statement as it will give error to the user and also it require code changes.
    Does its a matter of concern?

    To me this looks like major design flaw in application. There could be other ways to ensure similar functionality, but again it also depend upon the nature of application, what does it do exactly.
    If one session acquires lock on particular row, it should be able to finish its work soon and release the lock, otherwise look for other techniques like flagging so that sessions will not wait but come out with definite result that they can not perform work now(just starting suggestion;could be bad also).
    For if it has been implemented then it is okay, but remember performance of any machine is determined by slowest part.

  • Error in work flow wait for change event

    Error in work flow wait for change event of business object bus1014, Actually this business object is triggering for two transaction one is me21n and another is c201 . am trying to create fork with two branches one is create and another if change occurs wait will trigger, bt when i trigger work flow controll is not after fork, it will stop in fork only. and am not getting my workflow container variable getting instantiate, am getting error in wait. please any one get out of me in this

    Hi Sangeetha
    What is LV_MATERIAL? is it a BO container element? or a class element or a just a simple variable?
    Error message is clear, you are trying to evaluate LV_MATERIAL but it does not contain a value.
    This is a custom workflow as it begins with WS9xxxxxxx... what is LV_MATERIAL used for? what are we expecting it to hold? maybe, from event to workflow binding we can pass the value to it.
    Please share the following:
    1) Definition screen shot of LV_MATERIAL
    2) Screen shot of The step where it is first used - from SWDD
    3) Screenshot of Event to Workflow Binding
    4) name of your base Business Object (seen in the triggering events tab of the WF template in PFTC)
    5) What is the corresponding variable for that BO in your workflow container
    6) Screen shot of WF definition from SWDD - please identify the step going in error in that screen shot
    Regards,
    Modak

  • '&' character erratic in SQL (sometimes waits for input, sometimes does not)

    Hi everyone,
    I have a C program using OCI which sends insert, update and delete statements to an Oracle database. Now there was a case when I tried to insert a statement say INSERT INTO EMP(EMPNO, ENAME) VALUES(7000,'Jack & Jill'). This statement was hanging when I sent it once and then I realised that & is a special character which causes the statement to wait for an input. So we had to use escape characters probably so that the statement would not hang.
    Sometime later (a day later) I deleted the record and put in the same one again and this time it worked without hanging.
    Is there some reason why this can be do. The OCI code has not changed, but I do not know if the Oracle DBAs did any changes to the server to accept & as okay. The DBAs say that they are not aware of any changes made.
    Does anyone know why this can happen? Or is there someway this '&' issue can be sorted out?
    Thanks
    Kind Regards
    Aby Philip

    Hi !!
    I really could not figure out why it had gone thru the second time..
    A way o get around it would be to modiy ur sql like :-
    insert into .... ('sini'||'&'||'somakumar');
    Has to do the work ;
    Reagrds
    Sini Somakumar

  • '&' character in SQL behaves erratic (waits for input sometimes does not)

    Hi everyone,
    I have a C program using OCI which sends insert, update and delete statements to an Oracle database. Now there was a case when I tried to insert a statement say INSERT INTO EMP(EMPNO, ENAME) VALUES(7000,'Jack & Jill'). This statement was hanging when I sent it once and then I realised that & is a special character which causes the statement to wait for an input. So we had to use escape characters probably so that the statement would not hang.
    Sometime later (a day later) I deleted the record and put in the same one again and this time it worked without hanging.
    Is there some reason why this can be do. The OCI code has not changed, but I do not know if the Oracle DBAs did any changes to the server to accept & as okay. The DBAs say that they are not aware of any changes made.
    Does anyone know why this can happen? Or is there someway this '&' issue can be sorted out?
    Thanks
    Kind Regards
    Aby Philip

    Aby,
    I have a similar problem when running scripts in SQL*PLUS. In this case I resolved problem using concat (||), like this example
    <code>
    INSERT INTO EMP(EMPNO, ENAME) VALUES(7000,'Jack '||'&'||' Jill')
    </code>
    Sergio
    Hi everyone,
    I have a C program using OCI which sends insert, update and delete statements to an Oracle database. Now there was a case when I tried to insert a statement say INSERT INTO EMP(EMPNO, ENAME) VALUES(7000,'Jack & Jill'). This statement was hanging when I sent it once and then I realised that & is a special character which causes the statement to wait for an input. So we had to use escape characters probably so that the statement would not hang.
    Sometime later (a day later) I deleted the record and put in the same one again and this time it worked without hanging.
    Is there some reason why this can be do. The OCI code has not changed, but I do not know if the Oracle DBAs did any changes to the server to accept & as okay. The DBAs say that they are not aware of any changes made.
    Does anyone know why this can happen? Or is there someway this '&' issue can be sorted out?
    Thanks
    Kind Regards
    Aby Philip

  • Hi, I finally got lucky and past the "other" memory status issues when syncing. Now I'm "waiting for changes to be applied" sync stuck all night (itunes yesomite iPhone 6 plus). is this a bug? I have not had a single successful sync with yesomite.

    hi, I finally got lucky and past the "other" memory status issues when syncing. Now I'm "waiting for changes to be applied" sync stuck all night (itunes yesomite iPhone 6 plus). is this a bug? I have not had a single successful sync with yesomite.
    please help. this issue prevents music from syncing. I have set the sync setting to convert songs to 192kbps AAC to save space, I figure that could slow the sync
    down, but it's hanging indefinitely (I've left it for 24 hours with out it completing.)
    the the only music that appears on the phone are songs purchased from the iTunes Store. 95% of my collection are rips from my CDs.
    thank you for any help!

    Yeah it's pretty sad that $1000 phone they put out you such cheap memory It causes issues, I have iPhone 6+128 GB actually this is the second brand-new one they gave me because they keep affording it trying to act like that's not the issue because they're too stupid to know how to check what memory is in each one before they give it to me when I have told them multiple times my back up runs perfectly fine on two 5s phones and a 6 64GB of course running MLC memory.
    I told them it's because just like the write ups say I have 809 apps but I have not even put all my music on the phone so I'm still running 50 to 60 gigs free and it crashes and reboots itself sometimes in multitasking and more often than it does that in between multitasking I get a black screen for 1 to 2 seconds in between apps and upon start up the Apple logo screen will flicker and do weird things, One of the genius idiots asked me if I could just delete some of my apps, really that's the answer to fix the phone the customer needs to limit the amount to apps they put on their phone, why the **** get a 128 gig if you can't put on anything you want to it guess they need to start selling them saying you can only put a limited number of apps on them, it's really is a **** joke, I have over $20,000 of Apple merchandise easily and always get the new phone every year but I'm starting to reconsider my decisions in the future because this company is starting to go downhill, The reason water not recalling the phones is because they're dealing with their top-of-the-line thousand dollar phones in this case and most people don't have over two or 300 apps so they're not having as many issues, so basically they have messed up phones they just don't know it in their hands and Apple is just too **** greedy to recall the phones, they'd rather sell customer spends that only work half ***.
    Stuff like this will be the downfall of their company, all the people that stay with them because as long as you don't jailbreak their stuff it normally just works without issue will be soon jumping ship if stuff like this keeps up, because I can guarantee they got me thinking now.
    not that I wanted to know or should I be expected to but I even offered for them to open up my brand-new phone and just replace the memory to MLC memory which is something I shouldn't have to do with a brand-new **** phone, they should just make one with the right memory and give me a new phone, actually just don't sell customers that buy the top-of-the-line phone from you trash ones in the first place that would be a great option.
    what burns me up the most is when you talk to AppleCare and Genius Bar they try to act like the issue isn't there and they're unaware of it, they say that Apple hasn't come out with any information about it, yeah that's because they don't want to recall the trash.
    Apple has became nothing better than your run-of-the-mill company, android is becoming just as good as they are sad to say this since I have been an Apple fan for so long but there is no excuse for BS like this they have been looking for options to fix my phone for a month now this is not the way you should treat loyal customers, I would've been better off keeping my 5S and in the future just switching to android.
    it's pretty sad that the company has no idea how to check which memory is in their **** phone and even after I offered to let them just replace the memory in my new phone by opening up my brand-new phone to replace it they have no idea how to do that either, yeah Genius Bar sure, I think that should change the name to idiot bar and Apple don't care instead of Apple care.

  • How to get OIM workflow waiting for a task successfully completed?

    The requirement is to get OIM provisiong workflow pending and wait for a external status ready. When the external status not ready, I return "REJECTED" which mapped to "P" in "Task->Reponse" tab. Meanwhile, in the "Task->General" tab, I set the "Retry Count" to 5 and "Retry Period in Minutes" to 1.
    I have hoped that once the task return "REJECTED", the workflow enter status "Pending". One minute later, the task re-instanced by OIM to have another check for whether the external status ready. If ready, return "COMPLETED". If not yet, return "REJECTED" and workflow re-enter pending. And on and on, until to max to 5 times attempt. But in fact, OIM workflow never attempt to re-enter the task again after the 1st time "REJECTED" returned.
    How to do with this?

    Use the code snippet below to get the task status. Based on this you can filter rejected tasks.
    userintf = (tcUserOperationsIntf) ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
    provintf = (tcProvisioningOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcProvisioningOperationsIntf");
    long userKey=100;
    tcResultSet userresultSet = userintf.getObjects(userKey);
    for(int i=0;i<userresultSet.getRowCount();i++)
         userresultSet.goToRow(i);
         long processKey = userresultSet.getLongValue("Process Instance.Key");
         tcResultSet provresultSet = provintf.getProcessDetail(processKey);
         for(int j=0; i<provresultSet.getRowCount();j++)
              provresultSet.goToRow(j);
              String taskName = provresultSet.getStringValue("Process Definition.Tasks.Task Name");
              String taskStatus = provresultSet.getStringValue("Process Instance.Task Details.Status");
    Let me know if you have any queries...

  • Please HELP to retrieve all records in PL/SQL --Still waiting for solution

    First of all, I am a PL/SQL beginner. I need help to retrieve all records in PL/SQL from a database (maybe anyone could give me an example). Here is my code, but this code is only able to retrieve one records only. I would like to create a web service by using PL/SQL to view data in a table.
    CREATE or REPLACE package body DRIVER_FETCHER as
    FUNCTION get_driver(driver_id in VARCHAR2) RETURN driver_rec IS
    driver_found tblDrivers%rowtype;
    driver_rtn driver_rec;
    BEGIN
    SELECT *
    INTO driver_found
    FROM tblDrivers;
    WHERE tblDrivers.lngDriverID=driver_id;
    driver_rtn := driver_rec
    driver_found.lngDriverID,
    driver_found.strTitle,
    driver_found.strFirstName,
    driver_found.strLastName,
    driver_found.dteDOB,
    driver_found.dteDateLicensed,
    driver_found.strLicenseReference,
    driver_found.strAddress_Street,
    driver_found.strAddress_TownVillage,
    driver_found.strAddress_Country,
    driver_found.strAddress_PostCode,
    driver_found.strContactDayPhone,
    driver_found.strContactNightPhone
    RETURN driver_rtn;
    END;
    END;
    and here is the tblDrivers table
    CREATE or REPLACE type DRIVER_REC as object
    lngDriverID varchar2(10),
    strTitle varchar2(5),
    strFirstName varchar2(20),
    strLastName varchar2(20),
    dteDOB date,
    dteDateLicensed date,
    strLicenseReference varchar2(30),
    strAddress_Street varchar2(50),
    strAddress_TownVillage varchar2(20),
    strAddress_Country varchar2(15),
    strAddress_PostCode varchar2(10),
    strContactDayPhone varchar2(20),
    strContactNightPhone varchar2(20)
    CREATE or REPLACE package DRIVER_FETCHER as
    FUNCTION get_driver(driver_id IN VARCHAR2) RETURN driver_rec;
    END;
    Thank You,
    Paul
    Message was edited by:
    user452391
    Message was edited by:
    user452391
    Message was edited by:
    user452391

    Hi,
    you will enjoy reading
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/toc.htm
    for a fundamental understanding of PL/SQL.
    You can do a "select * from t;" only in SQL, not in PL/SQL. There you have to open a cursor and fetch the results into a variable, e.g.:
    declare
    cursor c_example
    is
       select * from emp;
    begin
       for r_example in c_example loop
           dbms_output.put_line(r_example.empno);
       end loop;
    end;This is an explicit cursor, opened within an "cursor for"-loop. The results are fetched into a (implicitly declared) record "r_example". The record now holds the values of one row from the emp table. The loop ends when all record from emp where fetched.
    Regards,
    Gerd

  • Error 25090 - Sql Server Compact timed out waiting for a lock

    Hello,
    I am performing a delete statement followed by an insert statement on the same table inside a transaction using the following method.   Each time this method is called it only ever contains these two statements.   Can you help me understand
    why I am sporadically getting the 25090 - waiting for lock error?
    protected bool ExecuteSql(string connectionString, List<string> statements)
    var sqlCeConnection = new SqlCeConnection(connectionString);
    sqlCeConnection.Open();
    SqlCeTransaction transaction = sqlCeConnection.BeginTransaction();
    try
    using (sqlCeConnection)
    foreach (string statement in statements)
    using (SqlCeCommand cmd = sqlCeConnection.CreateCommand())
    cmd.Transaction = transaction;
    cmd.CommandText = statement;
    cmd.ExecuteNonQuery();
    transaction.Commit();
    catch (SqlCeException sqlCeException)
    var buffer = new StringBuilder();
    foreach (SqlCeError error in sqlCeException.Errors)
    buffer.AppendFormat("Native Error : {0}\t{1}{2}", error.NativeError, error.Message,
    Environment.NewLine);
    Log.Error(buffer.ToString());
    return false;
    catch (Exception ex)
    transaction.Rollback();
    return false;
    finally
    if (sqlCeConnection.State == ConnectionState.Open)
    sqlCeConnection.Close();
    return true;
    Many thanks,
    Carrie

    Hi,
    How's everything going? Please feel free to give me any update.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Error while invoking bean "delivery": Waiting for response has timed out.

    Hello,
    I am running a process that currently catches an exception from a partnerlink. When the exception is caught I send an email and the process exits. When I submit a request from the BPEL console, I have to wait until the JTA timeout before the page returns. However, the instance completes successfully and I receive the email before the timeout happens. This is what I see in the logs. When I look at the audit and activity flow, all of the activities were timestamped prior to the exception being thrown. Has anyone seen this behavior or know what is going on. Is there a problem sending email in a catch or catchAll block?
    <2009-04-19 22:33:41,859> <ERROR> <iCareTest.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "delivery": Waiting for response has timed out. The conversation id is cf9324c9be114336:513ede58:120c17e1922:-7fc0. Please check the process instance for detail.
    com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is cf9324c9be114336:513ede58:120c17e1922:-7fc0. Please check the process instance for detail.
    Thanks in advance
    Jim

    There is no issue the reason why it times out is because you don't have a reply back to the client in your catch all.
    If you look at your process you will see that the defaul reply is in the main scope. When the catch all is invoked this reply is by passed, therefore no reply is sent.
    PLease a reply in your catch all back to the client and it will work.
    cheers
    James

Maybe you are looking for

  • J2EE Cluster Error while deploying ISA b2c.ear file.

    Hi All, I am trying to deploy b2c.ear file through SDM deploytool. My build tool is working fine. In SAP MMC all node is green. All J2EE service is running. But when I try to deploy file through SDM i am getting below error. Deployment started Sun Ma

  • Downloading files from a servlet...

    Everything is working except... The first problem we have run into during testing is that when two users click on the same file for downloading, the servlet locks up for one request while handling the second request. When the first request is finishe

  • Difference about the SQL Statement

    Hi, I have a doubt, It in one of my application i wrote a select query like this sql> select * from quartz; but my DBA told me not to use the *(star), instead he told me to use the column names. when i asked him, he said there will be performance iss

  • Broadcast Images Missing in EP

    I am trying to broadcast (distribute) a BW web report into EP (we are using EP6, BW3.5 both on sp15) I have run into a number of problems: 1. Distributing as an Independent HTML file (.mht), some of the images are not displayed. Eg I have a report wh

  • 3G not working on Nokia lumia 610

    so 3g is very slow on my nokia lumia 610. I get 0.3 MBps download and 0.4 upload. And no, it is not ISP's problem, because it works good on my android phones.