Rule loop and RaiseEvent

Hi All,
How to use rule loop to raise custom events? how raise custom events works? there is not much given in the OPM help on this.
thanks,
Edited by: OPAUser on Jan 17, 2013 2:48 AM

THE OPM User's Guide has some information; search on the word "event" or "rule loop".
There is a section in the user guide called "Use rules to trigger external software applications" that mentions custom event rule and raiseevent.
There is another section called 'Model Loops in Rule Logic".
Edited by: 941611 on Jan 17, 2013 7:25 AM

Similar Messages

  • Rule loop has not stabilised

    Hi,
    Often I get this error while running rulebase ..
    Rule loop has not stabilised after 2000 iterations.
    at com.oracle.determinations.engine.local.LocalSession.thinkStep(LocalSession.java:739)
    at com.oracle.determinations.engine.local.LocalSession.think(LocalSession.java:784)
    Can anyone know why this error comes?
    Thanks,
    Rajan

    This means you've created a rule loop, but haven't made sure that the chain always has a defined start.
    Make sure that in every case the logic has a shortcut that prevents it looping endlessly.
    Go to the OPM help, and search for "rule loop": http://docs.oracle.com/html/E38269_01/toc.htm
    You will find this topic is the top hit: http://docs.oracle.com/html/E38269_01/Content/Writing%20rules/Model_loops_in_rule_logic.htm
    Davin.
    Edited by: Davin Fifield on 13-Feb-2013 15:29

  • Why cant we use sy-index in loop and endloop?where exactly we used sy-index

    hi
    can u help me for this

    Hi...
    Genereally Sy-index is used in iterative cases like
    while....endwhile
    and
    Do.... Enddo
    In LOOP ..... Endloop.... We should use SY-TABIX....
    It would be more consistent we use sy-tabix as we loop at internal table so this SY-TABIX points to the current record its reading...
    we can use sy-index but rarely depends on condition.....
    SY-INDEX and SY-TABIX will not be same always in LOOP and ENDLOOP
    Rewards points if satisfied..
    Regards
    Narin Nandivada

  • Help in loop and at new

    Hallow I have a program that call to smart form. The user have to put course number and employee number and  the program check if the student pass the course send sf and if don’t  send other sf .my problem is when the user put just course number in, other words he wont to print sf of all the student that do some course , I don’t now how to call to smart form in loop because all the time I have a new student and the program have to check if the student pass the course or not and send sf accordingly.
    I heard about at new but I don’t now how to use it or if its fitting my need .
    regards
    IF pernr IS INITIAL .
    *--For-Empty-Pernr--
      SELECT objid_e 
      FROM yhr_score_page
      INTO wa_score_tab-objid_e
      WHERE objid_e IN c_course.
        IF sy-subrc = 0.
          APPEND wa_score_tab TO score_tab.
          CLEAR wa_score_tab.
        ENDIF.
      ENDSELECT.
    ELSE.
      SELECT objid_e 
        FROM yhr_score_page
        INTO wa_score_tab-objid_e
        WHERE objid_e IN c_course
        AND objid_p = pernr.
        IF sy-subrc = 0.
          APPEND wa_score_tab TO score_tab.
          CLEAR wa_score_tab.
        ENDIF.
      ENDSELECT.
    ENDIF.
    This is  the call fo the smart form
    IF sum_n GE passed_nuric. " if student pass course use first function
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname               = 'YHR_SCORE_SMART_FORM_PASS'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
       IMPORTING
         fm_name                  = /1bcdwb/sf00000005
    EXCEPTIONS
      NO_FORM                  = 1
      NO_FUNCTION_MODULE       = 2
      OTHERS                   = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION '/1BCDWB/SF00000005'
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
          score_tab2                 = wa_score_tab2
          sum_all                    = sum_all
          sum_n                      = sum_n
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        TABLES
          score_tab                  = score_tab
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *--dont pass--
    ELSE.
      READ TABLE score_tab INDEX 1 INTO wa_score_tab.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname               = 'YHR_SCORE_SMART_FORM'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
       IMPORTING
         fm_name                  = /1bcdwb/sf00000002
    EXCEPTIONS
      NO_FORM                  = 1
      NO_FUNCTION_MODULE       = 2
      OTHERS                   = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION '/1BCDWB/SF00000002'
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
          score_tab                  = wa_score_tab
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

    LOOP AT itab.
    AT NEW stud.
      perform xxxx.
    ENDAT.
    ENDLOOP.
    Refer SF
    Refer this link for Smartforms
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d937ec90-0201-0010-0ca8-b6cb3b6dd1ef
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b590fd97-0301-0010-db90-d09ff93cee5a
    Subroutine in smartform
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
    Style and mailing the Smartform output
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
    Table,Template,Loop and Command in Smartform
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985

  • Loops and building a library

    I am a college student in songwriting and music technology. I am working in both Protools and Logic and I find Logic best for writing and Protools best for editing. I want to build even a larger loop library than what is available in Logic Pro 9. I have noticed that I can buy loops a la carte or large packages of loops and save ( Loopmasters.com has a producer package for $694) . I am concerned about format and the ability to manipulate these loops. Midi vs. audio files. Can anyone give me advice for the best way to approach building this massive library of loops?

    If you choose to buy loops formatted for the Apple brand (Apple Loops) these audio files are optimized for the use of Logic Pro. So beat matching , tempo and Key changes will work as expected. If you have purchase the Logic Studio Box version, you will find an Apple Loop creating program in your Utility Folder. With it you can start to make your own Apple Loops from any file. And Logic can read rex files that time stretch well and broadcast wave files that contains data for tempo matching and so on. Also when using non apple loops in your project you can right click on the loop, follow the menu to export and create loops in your Apple Loops Browser as well.

  • Why won't my audio loops and MIDI loops sync together in a project?

    I have a number of guitar riffs in a project that I've been making into loops, as I wish to use these as ideas which I arrange in a new project. I've been saving the edited regions of the riffs by going to Region>Add To Apple Loops Library> and saving it as a loop, which is supposed to conform to tempo as stated. These are a blue icon with a little soundwave icon in it.
    I have been doing the same with drum loops that I have created using the piano roll. These have a green icon with a note inside it.
    I want to use these to create arrangements in a new file. Obviously I need them both to conform to various tempos together.
    Why are my guitar riff loops comforming to my global tempo track, but as soon as I add a drum loop and change the tempo, the drum loop will conform but not the guitar.
    I've also tried exporting each of the guitar riff (regions) as audio files because I read something in the manual about the audio files needing to be saved in as SDII to conform to tempo, but that doesn't work either.
    What's the deal?

    I'm no guru, I'm a neophyte, but I'm interested in the problem anyway.
    "I have a number of guitar riffs in a project that I've been making into loops... I've been saving the edited regions of the riffs by going to Region>Add..."
    I assume all of these regions are audio regions. Do they all have an anchor assigned to whatever you consider the downbeat?
    "I've also tried exporting each of the guitar riff (regions) as audio files..."
    Once imported anew, again, is there an anchor indicated. I think that may be key.
    You say that sometimes they work? What have you changed when they do? The tempo?
    -- Gerry

  • Question about Midi loops and Software Instruments

    In past versions of Garage Band, I could take a Midi loop ("the green ones") and drag it onto a track with a different instrument and it would play with that instrument. For example, I could drag a loop of a piano melody onto a guitar track, and the melody would play on the guitar. In '08 though, if I drag the piano melody onto the guitar track, it changes the instrument for that track to the loop's instrument, in this case the piano. Is there any way to switch this function off? I find nothing in the preferences.
    It's getting really annoying constantly dragging out loops and changing instruments to what I intend to have.

    not to dissuade you from trying, you could always find something that i missed, but i did test the modifier keys, none changed anything (and the shiftKey prevented a drag from occurring at all)
    as i recall, no matter what i did, dropping into a blank track changed it, dropping into a track that already had a region in it tossed up a warning dialogBox (i think it allowed you to proceed, automatically create a new track, or cancel the operation)
    this does seem like a behavior that should have a toggle in prefs

  • Loops and Arrays help

    Hi,
    I'm a freshman in college and new to java. I am completely lost and really need help with a current assignment. Here are the instructions given by my teacher...
    Building on provided code:
    Loops and Arrays
    Tracking Sales
    Files Main.java and Sales.java contain a Java application that prompts for and reads in the sales for each of 5 salespeople in a company. Files Main.java and Sales.java can be found here http://www.ecst.csuchico.edu/~amk/foo/csci111/labs/lab6N/Main.java
    and here http://www.ecst.csuchico.edu/~amk/foo/csci111/labs/lab6N/Sales.java It then prints out the id and amount of sales for each salesperson and the total sales. Study the code, then compile and run the program to see how it works. Now modify the program as follows:
    1. (1 pts) Compute and print the average sale. (You can compute this directly from the total; no new loop is necessary.)
    2. (2 pts) Find and print the maximum sale. Print both the id of the salesperson with the max sale and the amount of the sale, e.g., "Salesperson 3 had the highest sale with $4500." Note that you don't necessarily need another loop for this; you can get it in the same loop where the values are read and the sum is computed.
    3. (2 pts) Do the same for the minimum sale.
    4. (6 pts) After the list, sum, average, max and min have been printed, ask the user to enter a value. Then print the id of each salesperson who exceeded that amount, and the amount of their sales. Also print the total number of salespeople whose sales exceeded the value entered.
    5. (2 pts) The salespeople are objecting to having an id of 0-no one wants that designation. Modify your program so that the ids run from 1-5 instead of 0-4. Do not modify the array-just make the information for salesperson 1 reside in array location 0, and so on.
    6. (8 pts) Instead of always reading in 5 sales amounts, allow the user to provide the number of sales people and then create an array that is just the right size. The program can then proceed as before. You should do this two ways:
    1. at the beginning ask the user (via a prompt) for the number of sales people and then create the new array
    2. you should also allow the user to input this as a program argument (which indicates a new Constructor and hence changes to both Main and Sales). You may want to see some notes.
    7. (4 pts) Create javadocs and an object model for the lab
    You should organize your code so that it is easily readable and provides appropriate methods for appropriate tasks. Generally, variables should have local (method) scope if not needed by multiple methods. If many methods need a variable, it should be an Instance Variable so you do not have to pass it around to methods.
    You must create the working application and a web page to provide the applications information (i.e., a page with links to the source code, the javadoc and an object model) to get full credit. You can use the example.html's from the last two labs to help you remember how to do this.
    I'm not asking for someone to do this assignment for me...I'm just hoping there is someone out there patient and kind enough to maybe give me a step by step of what to do or how to get started, because I am completely lost from the beginning of #1 in the instructions.
    Any help would be much appreciated! Thank you!
    Message was edited by:
    Scott_010
    Message was edited by:
    Scott_010

    First ask the person who gave this asignment as to why do you require two classes for this , you can have only the Sales.java class with main method in it . Anyways.
    Let Main.java have a main method which instanciates a public class Sales and calls a method named say readVal() in Sales class.
    In the readVal method of sales class define two arrays i.e ids and sales. Start prompting the user for inputting the id and sales and with user inputting values keep storing it in the respective arrays .. Limit this reading to just 5 i.e only 5 salesPerson.
    Once both the arrays are populated, call another method of Sales class which will be used for all computations and output passing both the arrays.
    In this new method say Compute() , read values from array and keep calculating total,average and whatever you want by adding steps in just this loop. You can do this in readval method too after reading the values but lets keep the calculation part seperate from input.
    You must create the working application and a web page to provide the applications information (i.e., a page with links to the source code, the javadoc and an object model) to get full credit. You can use the example.html's from the last two labs to help you remember how to do this. I think this is ur personal stuff , but if you want to use web page , you probably will require to use servlet to read values from the html form passed to the server.

  • Why are Loops and Drum Kit greyed out on GarageBand 10?

    I've looked and researched every forum and help section on fixing this issue but to no avail, I see some people having success but they seem to have different situations. Unless I'm missing a step or something.
    Here is my situation: I have OSX Mavericks installed on my iMac, I re-installed GarageBand from the App Store. I also bought the $5 loop in-app purchase. When I opened GarageBand and signed in, it asked if I wanted to download the loops and drum kits, so I clicked to download rather than cancel, it seemed to be downloading ok and after 2 hours the progress bar was filled up with blue but nothing happened, seemed like the app crashed, so I Force Quit GB. When I re-opened the app, I noticed the loops and drums were still greyed out, then a pop-up came up saying that it was unable to complete download and to check internet connection. When I go to Software Update, there are no updates showing for GB and the purchases tab shows GB installed.
    I'd like to get these activated since I made the purchase. If I need to speak to someone directly from Apple, does anyone have a number I can call?
    Thanks for any help offered.

    If I need to speak to someone directly from Apple, does anyone have a number I can call?
    There is a "Contact Us" link directly on this page, in the lower right corner. On the page that will open look for the link "Start your Request Online".
    Check the following things:
    Do you have enough free disk space? The in-app purchase has 20.1 GB.
    Do you have any firewall or antivirus filters active? Disable them, when you try again.
    Try the download from an administrator account.
    It may also be a problem with your AppleID and Region settings.
    Did you buy (or accept) GarageBand 10 on your Mac with the same AppleID you are using to restore the Purchase? Did you buy GarageBand in the same country where you are now?
    Check your account settings at the AppleStore page  http://store.apple.com/us/account/home
    Click the "ViewAccount " link and reenter (not only check) all billing address setting.
    And then enable "Express checkout", if it is not enabled.

  • Loops and Instruments still greyed out after purchase.

    I paid for the extra loops and instruments on my iPad mini quite a few months ago. I just got a new mac and have tried everything to unlock them on here but nothing is working. It says they are in my purchases list but it just says GarageBand has been installed and won't let me do anything else. I've tried restoring the purchases but it says it can't do it. Not sure what to do now.

    I paid for the extra loops and instruments on my iPad mini
    The extra loops for Garageband on the iPad are a different purchase than the extra loops and instruments for GarageBand on the Mac.  If you want the additional content on the Mac as well, you have to purchase it also on the Mac.  Have you done that?
    Expanding GarageBand for Mac (v10.0) content with an in-app purchase

  • Loops and system timestamp not synchronized

    Running Labview 8.6.1 on Windows 2000, loops and system timestamp (Windows clock) seem to use different time bases; one second in a loop is not exactly as long as a second in system time. If i run a simple VI as in picture, with a 1-second loop which just prints the system time, the printed timestamp goes faster by about 1ms every 4-5 seconds. The same happens using a Timed loop or a While with a Wait until next ms multiple.
    Why is that? Can i set a loop to match the system time?
    Attachments:
    1sec.png ‏3 KB

    johnsold wrote:
    In the eastern U. S. interconnected power grid the accumulated time is held to within a small fraction of a second when averaged over days.  Over a year the accumulated error is less than parts in 10^12 or better.  The instantaneous frequency can deviate from the nominal 60 Hz by less than 0.1 Hz.
    The system basically uses an integral controller referenced to a NIST atomic clock to force the steady state error to zero.
    Lynn 
    So is that a very technical way of saying "Ben, you are full of Sh#% !"*
    I have not measured the frquency of my AC service in the last three decades or so. I do remember seeing it faster in the summer and slower in the winter. Has it really changed? Silly me thinking that the wide freq input spec I read on wall-warts was there just to handle this variation of freq.
    And to think it has gotten smarter "without a brain".
    Ben
    * I am just trying to catch up what I seem to have missed. The above is all in good humor. No offense intended or taken.
    Message Edited by Ben on 08-03-2009 12:56 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • A problem with delays in timed loops and DAQ

    I am programming a simulation for nuclear rewetting for a visitor centre at my company in Switzerland. It involves heating a "fuel rod" and then filling the chamber with water. The pump automatically starts once the rod core reaches 750C. After this, a requirement stipulates that flow rate be checked to ensure the pump is operating at the necessary conditions. If it isn't, the heater must be shutdown to avoid, well... meltdown. However, we must allow 10 seconds for the pump to respond, while still allowing a DAQ rate of 10-100Hz.
    The challenge is that I can't add a delay in my main loop else delay all acquisition, but I can't figure out how to trigger a peripheral loop (with DAQ for the single channel of checking flow) from the main loop, and when the peripheral loop determines if flow has initalised, respond back to the main loop with the okay.
    I think much of my confusion is in the interaction of the loops and the default feedback nodes that labview is putting in willy nilly. Would the only solution be to have two 'main' loops that don't communicate with eachother but rather do the same thing while operating on different timing? Tell me if you want me to post the file (although its on an unnetworked computer and I didn't think it would be too useful).
    Thanks+ Curran
    Solved!
    Go to Solution.

    Here it is! It is not in any form of completion unfortunately.
    So reading in the temp with NI9213 and watercolumn height with NI9215, we determine to turn on the pump with NI9472. NI9421 determines whether the pump is on (there is flow) and I must respond accordingly.
    I have 3 scenarios similar to this one as well, so having redundant loops with different timing like I mentioned would be way to heavy. I think I may have though up of a solution? At the time the pump is initiated, we record the iteration and wait for a number of iterations that correspond to 10s to pass before fulfilling the pump shutoff requirement?
    Attachments:
    rewettin1.vi ‏15 KB

  • I am having a terrible problem trying to get a player to loop and play all the time.  Please help

    Heres my code. I added a bunch of extras in there in hope that it will work.  It does auto start, however it won't keep looping and restart it.  Whats wrong with it?
    I have loop = true and i have autorewind = true autoplay=true autostart=true.  I don't get it.
    <object id="player1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9.0.115" width="250" height="250">
          <param name=bgcolor value="#FFFFFF">
          <param name=movie value="players/player.swf">
          <param name=allowfullscreen value="false">
          <param name=allowscriptaccess value="always">
          <param name="flashvars" value="file=http://www.websitename.flv&autostart=true&loop=true&fullscreen=false&amp;controlbar=bottom &autoPlay=true&amp;autoRewind=true">
          <param name="SCALE" value="exactfit">
          <param name="LOOP" value="true">
          <embed src="players/player.swf" width="250" height="250" loop="truhe" scale="exactfit" name="player1" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" bgcolor="#FFFFFF" allowfullscreen="false" allowscriptaccess="always" flashvars="file=http://www.websitename.flv&autostart=true&loop=true&image=&fullscreen=false&controlbar=bot tom&autoPlay=true&amp;autoRewind=true"></embed>
        </object>

    Hi, you are welcome
    eidnolb

  • How to call sub VI and close the main VI in while loop and sequence condition

    Hiya,
    I have a problem with the while loop and the sequential condition in placed together i.e while loop as Global and sequential condition as local (i.e inside the Global loop). For example,when calling the sub vi from the main vi (main vi as main menu and sub vi as sub menu.)My problem is I can't run my sub menu when the particular icon is pressed through the main menu and only the front panel appears. My concerned was if possible the sub menu is activated in few second then jump back to the main menu again (analyze through the diagram).So, I don't know what should I need to do. If possible, please advice me how to encountered that particular problem.
    Thanks!

    Go to your block diagram of your main menu, then click on the "Hightlight Execution" it is something like a bulb. then you execute your vi. then LV will show you all your data flow.
    When you feel sad, laugh

  • I keep getting message "mozila Firefox not responding." It takes minutes to down load a site - some times it just gets in a loop and never down loads. Then when I try to click on it again screen goes opaque and i get the same message.

    I 'm getting message "Mozila Firefox not responding." It takes minutes to down load a site - some times just gets in a loop and never down loads. The little circle at top just keeps going round in circles .
    Then when I try to click on the screen again the screen goes opaque and I get the same message re " Mozilla Firefox not responding" - and it is minutes before I can get back in to close down screen.
    I have downloaded Fire fox version 4 and this is still happening.

    See:
    * http://kb.mozillazine.org/Error_loading_websites

Maybe you are looking for