Need to Perform Check again and again in Oracle Workflow

Hi All,
I have one requirement in Oracle Workflow where if there is any hold applied on any Invoice and if the hold is released then workflow should get cancel immediately.
I have one workflow activity which can check the current status on workflow by querying AP_HOLDS_ALL table.
How I can perform the same check again and again to check the current status so that I can immediately cancel the workflow?? Please suggest if anybody has any idea like do-while Loop etc to achieve the requirement.
Thanks.
Viswas

WF Definition loops are expensive for the background process and take good amount of data in wf_item_activity_statuses and wf_item_activity_statuses_h. I would recommend defining a business event to be raised from the form/module where the base table is updated. Then you create a subscription to that event and the function associated to that subscription can abort the workflow process.
So there would not be a need to constantly check for a condition.
Regards,
Alejandro

Similar Messages

  • Need to perform both Queue and stack operations in Visual C# code

    Need to perform both Queue and stack operations, is any Data Structure available for this. or how can i custom create the structure for this?

    Hi,
    In this structure contains base logics of Queue and Stack. Well stack plays major role here with operations of PUSH, POP with additional operation of Queue i.e., ENQUEUE and DEQUEUE.  Here the stack has enqueue and dequeue 
    https://code.msdn.microsoft.com/The-Stacked-Queues-An-11f3703a
    Regards,
    Selva Ganapathy K

  • Performance Check - ABAP and Database color bars

    Hello everyone,
    When i go for the performance check of my object, i see Database in red bar and ABAP in green bar.
    The smaller the difference between these two bars, the better.
    But what does the color mean ? ( Somethimes the smaller bar is Red )
    Thanks

    Here is the explanation (depends % of total) in [sap library - SE30|http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617d2ae68c11d2b2ab080009b43351/frameset.htm]
    >
    shalaxy s wrote:
    > The smaller the difference between these two bars, the better.
    NO, it depends completely of what does your program!

  • Need steps to configure BAM and DATAMART for Oracle BPM Enterprise

    Hi,
    Need steps to configure BAM and DATAMART for both Oracle BPM 10.3 Enterprise Standalone and Oracle BPM 10.3 Enterprise Weblogic.
    Configurations like BAM Updater Service, Process Data Mart Updater Service, Start Up / Shut Down of the service etc.
    I am referring : http://www.oracle.com/technology/products/bpm/bpm10gr3technicalarticles/BPMConfiguringAndTroubleshootingBAMAndDataMart.pdf

    Hi,
    To add system to solman:
    Go to SMSY and define:
    1) Server --> host name, IP etc
    2) DB --> DB details
    3) System --> R3, Netweaever etc, assign proper components, products
    4) define and assign logical components for the system defined in step 3
    5) generate RFC destionation to the satellite system
    6) Provided you have the necessary trusted authorization and if the RFCs are generated successfully then your task is done. Else you'll have to troubleshoot.
    Once this is done, you need to goto SOLUTION_MANAGER and define
    1) new solution
    2) make necessary inclusion in Solution Landscape Maintenance
    3) include logical component
    This completes the system setup for you.
    For CCMS agent configuration, refer:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e2/eff640fa4b8631e10000000a1550b0/content.htm
    For system monitoring using solman, refer:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/0b/160419162a476380b5608e7f27a742/frameset.htm
    Hope this helps.
    Rajeev

  • How to design Forms and Reports using Oracle workflow 2.6

    Is it possible to design Forms & Reports for Data Entry and
    reporting purposes using oracle workflow standalone version?
    if so how?.
    Please helpme!! is veri urgent.

    Con este apellido seguro que entiendes el Espaqol.
    Mi empresa esta iniciando un proyecto con la tecnologia que
    estas buscando, es decir, Utilizar Forms y Reports para manejar
    las APIS de WorkFlow Server, hemos encontardo muchos problemas,
    el principal es que la API de WorkFlow es demasiado pequeqa para
    manipular todos los procesos de WorkFlow por este motivo nos
    hemos visto obligados a acceder a tablas y vistas del modelo de
    datos de WorkFlow.
    Saludos.

  • I am using a DAQ board to get the singnal now i need to perform frequency analysis and this system doesn't employ any filters etc it's just a signal

    Iam using AT-MIO-16E-2 board to retrieve the signal now i need to perfrom a frequency analysis and this process doesn't employ any filters etc.

    There are a lot of shipping examples that you can look at. They're under Analyzing and Processing Signals>Signal Processing. There are software filters and window functions that you can use but if you are having aliasing problems, then the only thing you can do is add hardware filtering.

  • Check user and organization in a workflow

    Hi all,
    With a workflow i need to check the existance of a user and a organization. I can do it in the forms but i can't find a method to call in a workflow.
    I found a method called getObjectIfExists but i can't call it in a workflow.
    Thank you!

    You can use
    <invoke name='testObject' class='com.waveset.ui.FormUtil'>
    <invoke name='getLighthouseContext'>
    <ref>WF_CONTEXT</ref>
    </invoke>
    <s>ObjectGroup</s>
    <ref>orgname</ref>
    </invoke>
    <invoke name='testObject' class='com.waveset.ui.FormUtil'>
    <invoke name='getLighthouseContext'>
    <ref>WF_CONTEXT</ref>
    </invoke>
    <s>User</s>
    <ref>username</ref>
    </invoke>

  • Reason to explain these performances of odbc and occi...

    I wrote some simple test programs to compare the performances of odbc and occi accessing Oracle.
    These programs were wrote in C++. The occi and odbc were given under almost the same circumstance.
    The result is: when executing query(simple select) the odbc is fast than occi. When executing insert sentences, the occi is much more fast than odbc does.
    My computer environment: Oracle 10g, Oracle instant cilent, VS 8.0.
    Do they all access oracle through OCI interface? How to explain the result?
    Someone give me some hints , please.

    Hi,
    With the limited info available, I can't offer any specific suggestions that will help here.
    Usually sqlnet tracing is a good thing to check to see if maybe it's round trips causing the discrepency, packet/buffer sizes, query differnces, etc.
    Server side sql tracing is often useful as well to check bind types, query execution, etc.
    Yes, both Oracle's ODBC driver and OCCI are written in OCI, but they have completely different implmentations: array fetching, statement caching, buffer sizes, etc. Simply because they're both written in OCI doesnt mean they share an implmentation.
    Hope it helps,
    Greg

  • How to read the data from XML file and insert into oracle DB

    Hi All,
    I have below require ment.
    I will receive data in the XML file. then i need to read that data and insert into oracle tables. please let me know how this can be handled.
    Many Thanks.

    Sounds a lot like this question, only with less details.
    how to read data from XML  variable and insert into table variable
    We can only help if you provide us details to help as we cannot see what you are doing and only know what you tell us.  Plenty of examples abound on the forums that cover the topics you seek as well.

  • Oracle Workflow Manager, Agent Listener, and Java Mailer problem

    Hi,
    I am not sure this topic to this forum, since this might be installation issue.
    But I am hitting a big wall.
    I had Windows 2000 SP4.
    I have already installed Oracle Database 10gR1, Oracle Developer 10gR2, and Oracle Workflow 2.6.3 Standalone previously.
    Including :
    - Oracle Workflow Server 2.6.3
    - Oracle Workflow Builder 2.6.3.5
    - Apache HTTP Server 9.0.4
    - Workflow Middle Tier
    Anything seems to right, including the Notification Mailer and the Business Event.
    And I had also made backup of them surely.
    Now,
    I'd like to change into Oracle Database 10gR2 because :
    1. Some errors I found when I tried to call a Report from Oracle Form.
    Unable to connect to Report Server ...
    I thought Oracle Database 10gR1 is not suitable for Oracle Developer 10gR2.
    2. And in the OWF 2.6.3 Workflow Home Page, there was no Logout button (which I found in OWF 2.6.4)
    I removed my previous installation including Oracle Workflow.
    After strugglineg in the installation of Oracle Database 10gR2, now I am facing another problem with Oracle Workflow.
    I succesfully installed Oracle Workflow 2.6.4 Server and Oracle Workflow Manager (standalone version),
    and the Oracle Workflow Middle Tier.
    After I launch Oracle Workflow Configuration Assisstant, everthing seems to be normal.
    I succed to open the Oracle Workflow Home Page (and found the Logout button there)
    Next, I tried to navigate to the Oracle Workflow Manager.
    1. I start the OC4J_Workflow_Management_Container --> initialized
    2. OC4J_Workflow_Component_Container
    The following error line appeared in the OC4J command prompt
    06/05/26 10:31:40 LOG_ID_UNKNOWN : oracle.apps.fnd.cp.gsc.Logger.Logger(String,
    int) : Logging to System.out until necessary parameters are retrieved for Logger
    to be properly started.
    06/05/26 10:31:40 LOG_ID_UNKNOWN : oracle.apps.fnd.cp.gsc.SvcComponentContainer.
    initializeStateMachine() : BEGIN [default implementation]
    06/05/26 10:31:40 LOG_ID_UNKNOWN : oracle.apps.fnd.cp.gsc.SvcComponentContainer.
    getNewWorkflowContext() : BEGIN
    06/05/26 10:31:45 LOG_ID_UNKNOWN : oracle.apps.fnd.cp.gsc.SvcComponentContainer.
    loadGlobalParameters() : BEGIN
    06/05/26 10:31:48 oracle.apps.fnd.wf.common.ContextFactoryException: Unable to g
    et connection from data source because the following Exception occurred -> java.
    sql.SQLException: ORA-28000: the account is locked
    06/05/26 10:33:57 Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)
    initialized
    3. finally it initialized
    Next I tried to go to Oracle Workflow Manager from related link of Enterprise Manager
    It is said that the OWF_MGR is locked
    (I surprised since I had UNLOCKED the OWF_MGR after the installation and succeed to login at the Workflow Home Page)
    And the following error line appeared in the commaned prompt after that
    06/05/26 10:35:03 OrionCMTConnection not closed, check your code!
    06/05/26 10:35:03 Logical connection not closed, check your code!
    06/05/26 10:35:03 (Use -Djdbc.connection.debug=true to find out where the leaked
    connection was created)
    4. I re-UNLOCK the OWF_MGR and login to Oracle Workflow Manager
    I noticed that the Agent Listener and Notification Service is Unavailable
    (In OWF 2.6.3, The Agent Listener was started and Notification Service was waiting to be configured)
    I tried to start one of the Agent Listener, but the following error appeared
    ERROR: The Service Component Container is not running
    Well, I had the same problem when installing the OWF 2.6.3
    I tried to uninstall (remove) and re-install it like I had done before in OWF 2.6.3
    (based on someone's post in Oracle's forum)
    But this time, the re-installation won't fix this problem. (It was succeed in the OWF 2.6.3)
    Everytime I start the OC4J, using wfmgrstart.bat and wfsvcstart.bat
    the OWF_MGR is re-LOCKED(TIME) automatically.
    And the servlet (WFALSNRSVC and WFMLRSVC) are not running.
    I am worry, since I cannot use the Notification Mailer if this problem had not fixed yet.
    (In OWF 2.6.3, the mailer was not available until those servlet is Started)
    Sorry for the long post.
    Any help would be grateful.
    Many thanks,
    Buntoro

    Hi,
    Finally, I have found the solution.
    Step :
    1. Start all of the Oracle Service, except for the OC4J
    If you have already started OC4J, then stop them
    Unlocked the <wf_manager_user>
    2. Search in your Oracle Home : data-sources.xml
    There should be two files,
    one is in the ...\OC4J_Workflow_Component_Container\application-deployments\WFALSNRSVCApp
    the other is in ...\OC4J_Workflow_Component_Container\application-deployments\WFMLRSVCApp
    3. Make sure, you create back up of them.
    4. Replace the following line
    password="-&gt;pwForOwfMgr"
    with
    password="<your_wf_manager_password>",
    should be look like this
    password="a"
    5. Now start the OC4J using wfmgrstart.bat and wfsvcstart.bat
    6. Next, login to the Oracle Workflow Manager
    This worked for me.
    Hope this will help someone who has the same problem.
    Buntoro

  • How to build and use Oracle workflow with Content DB

    Hi All,
    do we have any documentation that assist us in developing and applying the Oracle workflow (Developed using the Oracle Workflow builder) to the contentDB folder.
    Is there an alternative other than using the BPEL or oracle workflow builder for developing the workflows that work with Content DB.
    Thanks
    Krrish

    Hi Krrish
    From a custom workflow perspective, Content DB uses a loose coupling mechanism based on advanced queue messages to integrate workflow engines.
    CDB has no specific BPEL code/support - but rather requires the workflow engine to be able to dequeue a message from the outbound queue (IFS_BPEL_OUT), and return an approve/reject response queue message on the inbound queue (IFS_BPEL_IN). As Oracle BPEL supports advanced queue tables, it can thus be leveraged from Content DB.
    Hence, you can potentially use any workflow mechanism/tool you like, so long as that it is able to obtain a message from the outbound queue, and respond on the inbound queue.
    As far as Oracle Worflow is concerned, we don't ship with any documentation/samples to describe/develop its workflow processes. Nor do we support replacing the out-of-box Oracle Workflows.
    cheers
    Matt.

  • EWS API - Impersonating to update a calendar item created by any other user than a service account, raise an error "Access is denied. Check credentials and try again."

    Hi,
    I am new to using EWS managed APIs.
    Following is the issue:
    1. I am using a service account e.g. [email protected]. This user is a global administrator and also has ApplicationImpersonation role assigned. (Sign into Online Office 365 account -> Admin -> select "Exchange" tab- > select Permissions
    on the left panel -> create an impersonation role -> assign ApplicationImpersonation in Roles: and [email protected] in Members: -> Click on save)
    2. Create a calendar item by other user for e.g. [email protected], and invite an attendee - [email protected].
    3. In a c# program, I connect to EWS service using a service account - [email protected], fetch its calendar events. If organizer of an event is some other user - [email protected] then
    I use impersonation in the following way to update the calendar event/item properties- subject, body text etc.
            private static void Impersonate(string organizer)
                string impersonatedUserSMTPAddress = organizer;
                ImpersonatedUserId impersonatedUserId =
                    new ImpersonatedUserId(ConnectingIdType.SmtpAddress, impersonatedUserSMTPAddress);
                service.ImpersonatedUserId = impersonatedUserId;
    4. It was working fine till yesterday afternoon. Suddenly, it started throwing an exception "Access is denied. Check credentials and try again." Whenever I try to
    update that event.
           private static void FindAndUpdate(ExchangeService service)
                CalendarView cv = new CalendarView(DateTime.Now, DateTime.Now.AddDays(30));
                cv.MaxItemsReturned = 25;
                try
                    FindItemsResults<Item> masterResults = service.FindItems(WellKnownFolderName.Calendar, cv);
                    foreach (Appointment item in masterResults.Items)
                        if (item is Appointment)
                            Appointment masterItem = item as Appointment;
                            if (!masterRecurEventIDs.Contains(masterItem.ICalUid.ToString()))
                                masterItem.Load();
                                if (!masterItem.Subject.Contains(" (Updated content)"))
                                    //impersonate organizer to update and save for further use
                                    Impersonate(masterItem.Organizer.Address.ToString());
                                    // Update the subject and body
                                    masterItem.Subject = masterItem.Subject + " (Updated content)";
                                    string currentBodyType = masterItem.Body.BodyType.ToString();
                                    masterItem.Body = masterItem.Body.Text + "\nUpdated Body Info:
    xxxxxxxxxxxx";
                                    // This results in an UpdateItem operation call to EWS.
                                    masterItem.Update(ConflictResolutionMode.AutoResolve);
                                    // Send updated notification to organizer of an appointment
                                    CreateAndSendEmail(masterItem.Organizer.Address.ToString(), masterItem.Subject);
                                    masterRecurEventIDs.Add(masterItem.ICalUid.ToString());
                                else
                                    Console.WriteLine("Event is already updated. No need to update again.:\r\n");
                                    Console.WriteLine("Subject: " + masterItem.Subject);
                                    Console.WriteLine("Description: " + masterItem.Body.Text);
                catch (Exception ex)
                    Console.WriteLine("Error: " + ex.Message);
    5. What could be an issue here? Initially I thought may be its a throttling policy which is stopping same user after making certain API call limits for the day, but I am still seeing this issue today.
    Any help is appreciated.
    Thanks

    Your logic doesn't sound correct here eg
    2. Create a calendar item by other user for e.g. [email protected], and invite an attendee - [email protected]
    3. In a c# program, I connect to EWS service using a service account - [email protected], fetch its calendar events. If organizer of an event is some other user - [email protected] then
    I use impersonation in the following way to update the calendar event/item properties- subject, body text etc.
    When your connecting to [email protected] mailbox the only user that can make changes to items within
    abccalendar is abc (or ABC's delegates). If your impersonating the Organizer of the appointment pqr that wouldn't work unless the organizer had rights to abc's calendar. If you want to make updates to a calendar
    appointment like that you should connect to the Organizers mailbox first update the original, send updates and then accept the updates.
    When you impersonate your impersonating the security context of the Mailbox your impersonating so its the same a logging on as that user in OWA or Outlook.
    Cheers
    Glen

  • Windows 8.1 Setup exe This product key didn't work. Check it and try again

    I am upgrading my machine with a new MOBO and SSD. I need a full windows 8.1 install disk so I am trying to create one from the WindowsSetupBox.exe file.
    I am doing this on the machine that I will be upgrading and it currently has 8.1 Pro.  When I enter my product key (yes confirmed correct) I get 'This product key didn't work. Check it and try again.'
    My MOBO is coming today and I really want to get this thing done tonight but I can't even begin without an 8.1 Pro install disk.  any help is much appreciated.
    NOTE:  I tried the regedit fix that I found for the same error on activating windows.  (no luck)

    I attempted this, and it installed fine but would not accept my key when trying to change.
    I had to call tech support and waste a lot of time only to get disconnected.  However, upon calling back the very first person I talked to was very helpful.  He had me run slui 4 which prompted for my location and then gave the activation id that
    I had to read to him.  Next, I was prompted for a confirmation number supplied by him.
    After this it showed windows was active, but a few hours later it said once again that I needed to activate.  At this time my original product key did in fact work fine for activation.  Thanks for the help guys.  Ultimately, there doesn't
    seem to be an answer for my problem other than letting tech support fix it and hope you get someone that knows what to do when you call.

  • HT6114 hello .. i am using mavericks OS  and it is showing it needs updates about 800 meg. and every time i download that it dosent do anything and again it is beginig to download again and again that.. please help me. the update is 10.9.2

    hello .. i am using mavericks OS  and it is showing it needs updates about 800 meg. and every time i download that it dosent do anything and again it is beginig to download again and again that.. please help me. the update is 10.9.2

    To answer the post title FireFox save all downloads automatically in the download folder, which you can find in the Documents folder. If you want to choose where to save your downloads go to tools>options>check always ask me where to save files.
    Secondly, I am assuming you have IE 8 installed as this is the only version that supports this fix that is currently not in beta. Go to control panel>internet options>advanced tab and reset the settings at the bottom. This may or may not fix the problem but it is a good first step.

  • I imported my pictures into iPhoto and they were all there. I checked again a few minutes later and they weren't all there. What should I do?

    I need to import my pictures to iPhoto, and I imported my camera roll. It was all good and all the pictures were uploaded and then I checked again a few minutes later and they weren't all there. What should I do?

    Get a flashlight and see if there is something stuck in the iPhone jack you can remove and do so if you can.
    If not, make a Genius Bar appointment at your neares Apple Store. Backup your iphone before you go.

Maybe you are looking for

  • Is there a jabber client for iPad that will connect to Apple's iChat/jabber server?

    I've just purchased a third gen iPad and I'd like to be able to use the VPN connection in conjunction with an iChat client to communicate with my office's internal iChat/jabber server. However, none of the apps I've tried are able to successfully con

  • Step by step on how to set up email as output type

    Hello everyone, can someone pls help me with the configuration and the steps I have to do to set up email as output type for order confirmation, delivery and shipping. Also can you tell me the programs and forms I have to select from in the condition

  • CSS 11501 Load Balancing with X-forwarded-for

    Hi, We have a pair of CSS 11501, Currently it is using source ip for load balancing and 5 servers as backend , however we have users loggin in using http and based on its source IP (ISP PROXY) , it is forwarded to SERVER A. However, we have a SSL pag

  • Networking problem while roaming

    Hi all, We have successfully loaded the app to the Rogers Motorola Mobilecomm phone. The service is not Sprint/ Nextel but Rogers in Western Canada. We are testing the phone here in So CA based on "roaming". We are having a problem where the network

  • Adding range with airport express

    we have an airport extreme base station which we are using as a wireless router, and two airport expresses to bridge the signal strenght. how should the be configured to use the connection wirelessly.