Resubmit failed instances using Conversation Id

Hi,
I'm trying to write a jsp page where I enter the conversation Id and when click Submit button, it resubmits the bpel instance again. Not sure if it could be this simple. I placed the jsp file in the path where all the jsp pages for the Console are located.
Can you please guide me or look at the code below and let me know what am I missing. It doesn't do anything when I click Submit.
Thanks
-Prapoorna
<%@page import="com.oracle.bpel.client.*" %>
<%@page import="com.collaxa.common.collections.*" %>
<%@page import="java.util.*" %>
<%@page import="com.oracle.bpel.client.Locator" %>
<%@page import="com.oracle.bpel.client.NormalizedMessage" %>
<%@page import="com.collaxa.cube.fe.util.ServletUtils" %>
<%@page import="com.oracle.bpel.client.util.WhereCondition" %>
<%@page import="com.oracle.bpel.client.dispatch.IDeliveryService" %>
<%@include file="initI18n.jspf" %>
<html>
<head>
<title>BPEL Repush Tool</title>
</head>
<body>
<%
String id = request.getParameter("ID");
if (id == null)
%>
<!-- Construct HTML form here -->     
     <h3 align="center">BPEL Resubmit</h3>
     <form>
     <table align="center">          
     <tr>
               <td>Enter Message ID </td>
               <td><input type="text" name="ID" size="50" value=""></td>
     </tr>
               <tr><td> </td><td> </td>
     </tr>
     <tr>
               <td></td>
               <td align="center"> <input type="submit" name="repush" value="Repush Message"></td>
     </tr>
     </table>     
     </form>
<%
else
String convId = request.getParameter("ID");
// Get locator object from the session
Locator l = ServletUtils.getLocatorWithoutUrlRewrite(request, response);
// Get a reference to the domain
IBPELDomainHandle ch = l.lookupDomain();
WhereCondition wc = new WhereCondition(" conv_id=? ");
wc.setString(1,convId);
IInvokeMetaData[] invMetadataArr = l.listInvokeMessages(wc);
IInvokeMetaData invMetadata = invMetadataArr[0];
String messageGuid = invMetadata.getMessageGUID();
ch.recoverInvokeMessages(new String[]{messageGuid});
%>
<body>
</html>

Good point. We'll try to change it to the actual object.

Similar Messages

  • How to resubmit failed activity in a BPEL process using Java in 11g

    Hi All,
    In 11g, is there any API using which we can resubmit failed activity in BPEL using Java.
    Thanks,
    Vidya

    Hello
    To assign a header
    1. Create a variable of the correct type
    2. Click on the invoke/pick/reply or the receive
    3. Click on the header tab
    4. Select the header
    Validate the header after the receive
    5. Select the header the varaible and use a validate action.
    Best Regards Tristan Hayman

  • Cannot connect to a named instance using SSMS from a remote machine

    Hi all,
       SQL Server.....: 2012 EE
       OS...................:  Windows Server 2008 R2
       I have a desktop machine, that i am using to administrer SQL Server (via SSMS) and to develop my SSIS solutions, but i can't connect to a named instance of my SQL Server. When i try to connect using SSMS to my named instance (myhost\DWSERVER)
    i get a huge error message:
    A network-related or instance-specific error occurred while establisinh a connection to SQL Server. The server was not found or was not accessible. Verify that the instance is correct and that SQL Server is configured to allow remote connections.
    (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) (Microsoft SQL Server, Error: 10060)
    Locally, i am able to access that named instance using SSMS, just when i try to access from another machine, the above error pops-up to me.
    I am using the SQL Server Authentication mode to connect to the named instance.
    What am i doing wrong?
    Thanks in advance.
    Fabrício Pedroso Jorge Database Administrator - Belém, Pará, Brazil

    Hi,
       thanks for your attention.
       That's correct, i can connect to my default instance both locally and remotelly. The default instance in on port 1433. I cannot find the port used by the named instance (DWSERVER).
       Actually, i found this on the errorlog from the named instance:
       2015-03-22 10:10:45.80 spid13s     Server is listening on [ 'any' <ipv6> 49411].
       2015-03-22 10:10:45.80 spid20s     Server is listening on [ 'any' <ipv6> 5023].
       2015-03-22 10:10:45.81 spid20s     Server is listening on [ 'any' <ipv4> 5023].
       2015-03-22 10:10:45.81 spid20s     The Database Mirroring endpoint is now listening for connections.
       2015-03-22 10:10:46.12 spid13s     Server is listening on [ 'any' <ipv4> 49411].
       2015-03-22 10:10:46.25 spid13s     Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\DWSERVER ].
       2015-03-22 10:10:46.26 spid13s     Server local connection provider is ready to accept connection on [ \\.\pipe\MSSQL$DWSERVER\sql\query ].
       2015-03-22 10:10:46.26 Server      Server is listening on [ ::1 <ipv6> 49412].
       2015-03-22 10:10:46.26 Server      Server is listening on [ 127.0.0.1 <ipv4> 49412].
       I can ping normally to the remote server.
    Fabrício Pedroso Jorge Database Administrator - Belém, Pará, Brazil

  • How to abort instance using a specific role

    I create a process using BPM studio 10g. I create a role named GDadmin and a participant named GDadmin. No activity or interactive activity is in the GD admin role.
    In the BPM standalone 10g, I create a participant and role both named GDadmin. This user can abort the instance. However, if I login as GDadmin, the workitem table is empty.
    I want to the GDadmin can view all current instances. This user can also abort the selected instances.
    Which activity can be used to let the GDadmin view all current instances and activity as well as abort them?
    Thanks a lot.

    You could accomplish the abort of instances using PAPI, but the problem is most actvities are not abortable (nor should they be) and the PAPI call will throw exceptions when you try aborting it.
    I use the logic shown below to both grab and abort instances in a single step.
    The process has a Grab activity that this invokes automatically called "GrabAutomatic". This is the Grab that has "From all / To all" and its "Abortable" properties enabled. The GDAdmin role in your process would need a Global Interactive that has the logic shown below. You'd need to add a new participant ("AUTOCLIENT" in the logic below) that has the role assigned where the automatic Grab is located. Before running this logic, the Global Interactive that the GDadmin would invoke would present the user with a list of instances that the GDadmin would select. Based on the work item instances selected, this logic would grab and abort them in a single step.
    <pre class="jive-pre"><p />bp as BusinessProcess
    do
    logMessage "PapiHelper: actionGrabAndAbort: Entry: instance: " + instanceToActOn.instanceIn
    using severity = DEBUG
    instF as InstanceFilter = InstanceFilter()
    instances as Fuego.Papi.Instance[]
    instanceDescription as String
    connectTo bp
    using url = Fuego.Server.directoryURL,
    user = "AUTOCLIENT",
    password = "P",
    process = "/" + processName
    create(instF, processService : bp.processService)
         instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL,
              statusScope : StatusScope.ONLY_INPROCESS)
    addAttributeTo instF
    using variable = VarDefinition.INSTANCE_NUMBER,
    comparator = Comparison.IS,
    value = instanceToActOn.instanceIn
    instances = getInstancesByFilter(bp, filter : instF)
    for each inst in instances do
    logMessage "PapiHelper: actionGrabAndAbort: Found it: " + inst.id
    using severity = DEBUG
    do
    // change this to be the name of your Grab Activity
    grab inst using grabActivity = "GrabAutomatic"
    logMessage "PapiHelper: actionGrabAndAbort: Grabbed Instance Status: " + inst.grabbed
    using severity = DEBUG
    do
    runTask inst
    using activity = "GrabAutomatic"
    logMessage "PapiHelper: actionGrabAndAbort: Ran Grab " + inst.grabbed
    using severity = DEBUG
    on e as Exception
    logMessage "PapiHelper: actionGrabAndAbort: tried to run grab and failed because no task to run in Grab"
    using severity = DEBUG
    end
    abort inst
    logMessage "PapiHelper: actionGrabAndAbort: Routed back"
    using severity = DEBUG
    on e1 as Exception
    logMessage "PapiHelper: actionGrabAndAbort: Exception when running or routing: " + e1.cause
    using severity = DEBUG
    errors = errors + "Instance could not be grabbed and reassigned\n\n"
    logMessage "PapiHelper: actionGrabAndRoute: Errors: " + errors
    using severity = DEBUG
    end
    end
    on exit
    disconnectFrom bp
    end </pre>
    Dan

  • Abort an instance using ProcessService (Fuego.Papi.ProcessService)

    Hi Folks,
    I want to abort a process instance using ProcessService (Fuego.Papi.ProcessService)
    This is how i am trying to do the same:
    +if (ivBPMObject1.bpmObject1Option != "TRUE") {+
    ProcessService.connectTo(url : Fuego.Server.directoryURL, user : "pavan",
    password : "");
    +// ivInstance2Id is the InstanceId of the other split branch which is alive and which needs to be suspended+
    lvInstance = ProcessService.getInstance(instance : ivInstance2Id.id);
    +// abort+
    lvInstance.abort();
    ProcessService.disconnectFrom();
    +}+
    I get the following exception in the line lvInstance.abort() :.
    The batch operation could not be executed for all selected instances.
    Internal Exceptions:
    +>> /MainProcess#Default-1.0/1/2:+
    Instance '/MainProcess#Default-1.0/1/0' could not be locked because participant 'Server' is currently locking it
    I am running this from the Embedded Workspace of Oracle BPM Studio and I dont see any participant 'Server' in the directory.
    How can i suspend/abort this instance?
    Is there a way that my user/participant 'pavan' can be given rights/privelege to take 'Server's instances?
    I tried using 'Server' as user but i dont know the credentials for 'Server' - so that attempt too failed :(.
    can anyone please help me out?
    Regards,
    user8702013

    Thank you Ariel,
    Yes, I have two 'approvals' happening in parallel - in two branches of a split. when one approval comes 'unapproved', there is no point continuing with the other - i have to abort it.
    But if i set the setting to 'generate independent copies', how will i get the 'instanceId' of the second branch when only the first branch has reached the 'join'? (i had thus made the 'shared' to be true).
    My requirement is that i have two branches in a split. these two split branches call two different approval subprocess which go into user interaction tasks. but when one one approval is rejected (and reaches the join), i want to abort the other instance (atleast of the called subprocess) so that the redundant approval user task of the second branch can be avoided.
    I have been struggling with this for the past couple of days :(
    I am trying to see if i can get the 'instances' of the subprocess in question and find the instance to be killed (aborted) by checking the parents (the parent should be my process). i am getting problems there too. am stranded...
    Regards,
    user8702013

  • Monitoring failed instances

    Dears,
    Do we have a possibility to monitor  the scheduled webi reports?
    - Could we inform a dedicated user with an email, if an instance failed
    - Could we see in the CMC a list of all failed instance e.g. in the CMC
    As our customer has scheduled dozens of reports, its not applicable every report manual. The Instance manager only shows the scheduled jobs but not the Status. Thanks for your feedback.
    SAP BI Platform 4.1 SP2

    Hi Felix,
    The instance manager in the CMC is better than you think.
    You can search for Failed instances - and if there is one you can click on failed and get the reason for the failure
    Another option that you have is to automate the email writing and use an scheduling event. Please see the next three screenshots to setup an event and also the last screenshot where to define it in the publication.
    and finally the setting in the properties
    Best regards
    Manfred

  • Script to resubmit failed report jobs

    Hi,
    Anyone know, how to rerun ( resubmit) failed jobs in report queue. There is an option, where we can rerun the failed report using IAS admin console. But I have bulk of falied reports to rerun. Can anyone help me. Any script , command or method ??
    Thank you.

    Hi Kenny,
    I posted the following file to the NI outgoinng ftp site-- you'll have to grab it in the next few days before it gets automatically wiped off. 
    ftp.ni.com/outgoing/CompanyName.zip
    Look for the "Using ResultsList Menus.doc" file in the main "CompanyName" folder, it will have installation instructions and step by step how-to-use information.  Also feel free to email me with questions at [email protected]
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Cannot stop SAP instance using stopsap command

    Hi All,
    I am trying to stop a SAP instance using the stopsap command as such:
    stopsap name=PRD nr=01 SAPDIAHOST=SAPPRD
    The instace failed to stop with the following error in the stopsap.log file
    CreateNamedPipe for
    SAPPRD\pipe\SAPPRD_01 Failed, Extended Error #2
    CreateNamedPipe for
    SAPPRD\pipe\SAPPRD_01 Failed, Extended Error #2
    D:\usr\sap\PRD\SYS\exe\run\sapntwaitforhalt.exe=>sapparam(1c): No Profile used.
    running D:\usr\sap\PRD\SYS\exe\run\sapsrvkill.exe SAPPRD_PRD_01
    running D:\usr\sap\PRD\SYS\exe\run\sapntwaitforhalt.exe name=PRD nr=01 SAPDIAHOST=SAPPRD 3600
    Can anyone help?
    Regards,
    Lim

    Hello,
    Please try uninstalling and reinstalling the service
    as explained in the following  Note(Point 3):
       142100 - NT: Problems with new SAP service as of Rel. 4.5B
    CreateNamedPipe for
    sapbon1s57\pipe\SAPT02_00 Failed,
    Point 3 of this
    You should uninstall the service by selecting:
         'Uninstall Service + Unregister COM Interface'
    Then reinstall the service by:
         'Install Service + Register COM Interface + Start Service'
    Make sure that you have called SAPSTARTSRV.EXE from a command prompt
    from within the usr\sap\<SID>\kernel directory ! The startup user
    should be <domain>\SAPService<SID>.
    Also check you have up to date version of
    sapntwaitforhalt.exe
    regards,
    John Feely

  • Need help connecting to an aws instance using a key from my macbook

    i need to connect to an amazon instance using terminal and a keypair from a macbook pro. please help since its possible to connect to the aws instance easily  using putty on windows 7 OS but failing to connect on my new macbook pro. step by step really appreciated.

    You may need to open TCP and UDP port 3283 and TCP and UDP port 5900 in the routers on your end and your company's end. For encrypted file transfer (ARD 3.0), also open TCP port 22. You may also need to open TCP (and perhaps UDP) 5988 and 5989, though it's not clear under what circumstances this will be necessary.
    If your systems at work get their IP addresses via NAT, you'll also have to forward those ports to your MBP's internal IP address.

  • Audit Report: Failed Instances

    Hi! Is there a column/field in Activity Universe that can be used to filter failed instances as seen in the Instance Manager
    or what this script can output via Query Builder?
    select SI_NAME, SI_OWNER, SI_AUTHOR, SI_STATUSINFO from CI_INFOOBJECTS
    where SI_SCHEDULEINFO.SI_OUTCOME>=2
    Thanks

    Hi Mike,
    I have a similar report scheduled to me every morning. Something similar might work for you.
    I use the following result Objects (for a Webi report):
    Action Name from Actions
    Server Kind from Server Information
    Object Name from Actions/ Action Details/
    Action Time from Actions/Action Time
    Action Duration from Actions
    Action Type from Actions
    Action Type Details from Actions/Action Type
    User Name from Actions
    Action ID from Actions
    The Query filters are:
    Action Name ID In List : 327681;327682
    You would also need to restrict Action Time. I use objects in the universe to run the report for data within 24 hrs of 6AM each weekday.
    I use the following report filters:
    Action Type In List : Object Folder Path
    This gives the folder in with the report resides.
    Other things to note:
    Object Name is equivalent to the report name.
    User Name is the user that ran the report.
    Action Name is the scheduling status (Scheduling Failed/ Scheduling Succeeded)
    Action Duration is number of seconds the report took to run.
    Let me know if you need any more information.
    Best,
    Srinivas

  • Failed. Format conversion is not supported

    Hello again, this error happened when I was playing around with Creative Audio Converter
    Failed. Format conversion is not supported
    This error happened when I was converting a song from WMA Pro, 128 Kbps, 44khz, 2 Channel 24-Bit to WMA Pro, 128 Kbps, 44khz, 5.1 Channel 24-Bit
    Why is this error happening? And if the conversion is not supported, then why did Creative bother to put this format on their sound cards? Or is this another of Microsoft's problem?
    Thank You.

    Thank you very much for answering my query about that, at this moment i am very interested on 5.1 channel conversion. I have written to other ppl on other forums about 5.1 channel conversion. One person told me that there are a lot of ways to do it, depending on what kind of 5.1 upmixing do you want to perform. What kinds of upmixing do you use for 5.1 channel conversion? What do you recomend?
    Thank You very much

  • CUPC Error - Failed to start conversation Start conversation capability is not available

    We are running CUCM 7.1.5.32900-2 and Presence 8.5.2.10000-49.
    When some of the users highlight numbers and call them using click to call (The click to call that comes as a part of CUPC), they are getting the following error box...
    Error
    Failed to start conversation
    Start conversation capability is not available
    Our users typically have 7941 phones that are associated with their user. They are not using softphone.
    Has anyone else come across this error, and what was the culprit?
    Thanks,
    David

    Hi David,
    http://www.cisco.com/en/US/docs/voice_ip_comm/cups/8_0/english/install_upgrade/deployment/guide/deploy.html
    Cannot Place or Receive Calls After a Secure Profile is Enabled
    Problem   After a secure profile is enabled for a user, the user cannot place or receive calls. The user might see the following error message multiple times:
    Failed to start conversation
    The user can use the instant messaging features.
    This problem occurs if a secure profile is enabled for the user in Cisco Unified Communications Manager while either of the following is true:
    •The user is signed in to Cisco Unified Personal Communicator.
    •The cucsf.exe process is running on the computer of the user, that is, Cisco Unified Personal Communicator is running, but the user has not signed in.
    Ask the user to sign out of Cisco Unified Personal Communicator, then sign in again.
    Hope it helps,
    Anand

  • Unable to connect to Auxiliary instance using connect string

    Hi All
    I am trying to setup Data guard on 11G Release 2 OS : OEL 5.4. I have to connect to the auxiliary instance using rman. But i am getting following error.
    >
    [oracle@vm4dg ~]$ rman
    Recovery Manager: Release 11.2.0.1.0 - Production on Mon Apr 29 19:25:13 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    RMAN> connect auxiliary sys/orcl123@melbourne
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-04006: error from auxiliary database: ORA-01031: insufficient privileges
    >
    I have tried the solutions like all service name in listener.ora to be in upper/lower case.
    Thanks
    Ankur

    Here's what you asked for
    On primary
    >
    [oracle@oel54gen ~]$ rman target sys/orcl123@London auxiliary sys/orcl123@melbourne
    Recovery Manager: Release 11.2.0.1.0 - Production on Mon Apr 29 19:50:09 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    connected to target database: LONDON (DBID=3149285088)
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04006: error from auxiliary database: ORA-01031: insufficient privileges
    >
    for sqlplus on primary
    >
    [oracle@oel54gen ~]$ sqlplus "sys/orcl123@melbourne as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 29 19:52:13 2013
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges
    Enter user-name:
    >
    for sqlplus on Standby
    >
    [oracle@vm4dg dbs]$ sqlplus "sys/orcl123@london as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 29 19:53:42 2013
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    SQL>
    >
    One more thing is that i have two oracle homes on each machine. And listener are running from grid home
    Thanks
    Ankur

  • Issue while opening BI4 webi report instance using CMC on IE8 browser

    Hi,
    Having issue while opening BI4 webi report instance using CMC on IE8 browser.
    Steps to reproduce the error:
    1. Login to CMC
    2.  View Webi History.
    3.  Open successful instance  (For the 1st or 2nd time reports are opening up, from the 3rd time it just freeze the session)
    4. After it get freeze we need to close the IE using Task Manager.
    Can any one please suggest a resolution for this issue.
    Thanks,
    Ganesh.M

    Hello Gokul,
    first thing is to check is if your chrome version is supported by your current BO version as specified in the PAM (is it?). If the chrome version is supported, and you still have an issue, then you can check with a sap support engineer.
    best regards,
    Victor

  • Multiple ASM instances using single cluster install - Is it possible??

    Hi,
    I have 2 node RAC cluster installed on Linux. All the storage is on EMC. I need to setup another environment using HP storage on the same hosts. Is it possible to created second ASM instance using the same cluster install?? I wanted to have clear separation b/w EMC and HP environments and that's wondering if it's feasible to do that.
    Haven't tried it yet to see if it complains.
    Thx
    Anitha

    Anitha,
    The data migration won't happen (at least not aggressively) until you do step 2 in your list where you remove the EMC disks. That removal operation will take a long time as Oracle will have to move the data before it can complete the operation. If you want to be sure, I'd recommend creating a new disk group with one of your new disks, put a small tablespace in it, create some data in it, then add a disk to that new group and remove the original disk. Then you'll have some confidence in the procedure and verify that it works without risking your production data. After you test, you can drop the disk group and use the disks for their intended purposes.
    To answer your question, yes, that's the process exactly as I suggested it above. Should work fine--but will probably take a while to do the remove, so be prepared to leave that running for quite a while (i.e. don't expect to close the terminal and go home right after running the remove).
    Dan

Maybe you are looking for