Rule-variable to change gravity

I'm pumping my alerts in a ticketing system.  And found that foglight uses a system of gravity of 1-4 with 4 being the most serious alert "mortals."  My ticketing system uses a severity 1-5, 1 being the most severe level.  I think I need to create a variable of the rule that is an expression that basicially runs an if statement then and said that if severty foglight is 4 then set to 1 if it is 3, then the value 2, etc... However, I'm not familiar with how to write such a statement and was hoping that someone here can help?

I figured it out, I created a variable adjustedSeverity with this expression

If (@event.get ("severityLevel") == "4")

{

Return 1;

}

ElseIf (@event.get ("severityLevel") == '3')

{

return 2;

}

on the other

{

return 3;

}

Tags: Dell Tech

Similar Questions

  • How to select multiple members in a business rule variable?

    Hi all

    I have a business rule with the following statement of the correction:

    DIFFICULTY ({those}, {scenario}, @LIST (@RELATIVE ({count}, 0)), of 'Work')

    Account is a variable:

    Type: Member

    Dimension: account

    The rule works when a user selects a single account: Total revenue.  When I change the variable count to 'Members' and select several accounts: Total revenue, Total loads, the rule does not run.  Here is the log:

    Not valid [Calc Script syntax

    DIFFICULTY ("FY14", "Forecast", @LIST (@RELATIVE ("recipes", "Total expenses", 0)), 'Work')

    Is there a way to make this rule work for multiple selections of Member?

    Thank you

    Mehmet

    PS We are on 11.1.2.2.300.20

    Hi Mehmet,

    If you decide to give this another go, in my view, there is just a syntax error.  I got the code below to validate, however I try to run anything.

    DIFFICULTY ("FY14", "Forecasts", @EXPAND ("@DESC", @LIST ("recipes", "Total expenses"), 0, LAYERONLY), 'Work')

    Hope this helps,

    -Jake

  • Can I record a value Object Variable Global change in a structure of the event?

    I have revealed a global variable to the user via a panel of sup, so that the user directly changes a global variable Panel.  This works very well for this application.

    However, I would like to respond to that in a structure of the event.

    I tried to register for the GV-> [command] Panel.  It seems to work, but the changes do not generate an event.

    I then tried to save the commands individually.  Also hosted in the code, it did not work at run time.

    Is this possible?  Any ideas on how to make it work?


  • Global variable: continuous change

    Hello

    I have some problems with a program of VI. I am creating a program when a start of the X variable with an initial for a few Ms value then this variable should be used in another while loop, and value must be changing continuously after some calculations. I use it just for the first calculation, and then it changes constantly other calculations.
    Perhaps a global variable must be used, but I'm not sure.

    I found this tutorial, is it helpful for this problem?
    http://www.NI.com/white-paper/7585/en/

    Thank you.


  • Variably to change a 2D table name

    Hello world

    So I have this VI I had created and someone here helped it vamp big time. Thanks again for this. I ran into a snag with my program. So I have this VI that takes in the tables and places them in an xml file. I use teststand to control a SigGen, PowerMeter and matrix switching, so I can take a lot of measures of the table and place them in a singke XML. My problem is that my (once the test is completed) xml file will have on the tables of 200 or more in it. So I was hoping I could do the name of the 2D array in a variable so that I can do every single table in my xml file. This way I can possibly create an another VI that takes the xml file and view the desired table. Did someone knows how the name of the 2D array in a variable, so I can change it to what I want of teststand? My VI is attached below.

    Thank you

    dlovell

    I didn't actually test the version previously displayed.

    I think that my entry to the search function are not good.

    The line break seems to be screwing.

    Try to use

    Table 2D

    for the search string

    and

    %s\n

    as the analysis based on the string.

    I test a subset of this and it worked for me.

  • Create the variable and change it to read the script

    Hi all

    I can creat a reference to a global variable, but it creates only an accessible value in writing.
    How to change to read? Pls help!

  • link variable type changes to select versus deletion/update

    SQL Developer Version 4.0.1.14

    Java (TM) Platform1.7.0_51
    Oracle IDE4.0.1.14.48

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production

    It seems that the sql developer determines the type of a variable binding different depending if the statement is a select statement or an update or remove, and the binding variable is > = 2 ^ 31.

    Originally, this is unexpected of lines to delete.

    The following table shows the type of change.

    -create a helper function

    create or replace function mytest (p_x varchar2) return varchar2 as

    Start

    dbms_output.put_line ('{' | p_x |'} ');

    Return (1);

    end;

    -create a table to select against

    create table x in select * twice;

    -run the following and 2147483647 2147483648

    Select * from x where dummy = mytest (dump (:test));

    -Returns the following

    {Type = 1 Len = 10: 50,49,52,55,52,56,51,54,52,55}

    {Type = 1 Len = 10: 50,49,52,55,52,56,51,54,52,56}

    -Repeat with a delete statement

    delete x where dummy = mytest (dump (:test));

    -Returns the following (update returns the same)

    {Type = 2 Len = 6: 197,22,48,49,37,48}

    {Type = 2 Len = 1: 128}

    The following table shows how a deletion is incorrect

    create table valid_tab (value_column varchar2 (2000));

    insert into valid_tab values('0');

    insert into valid_tab values('2147483647');

    -use 2147483647 as the binding variable

    delete from valid_tab where value_column! = to_char(:val);

    Select * from valid_tab;

    -Returns the expected output

    2147483647

    create table invalid_tab (value_column varchar2 (2000));

    insert into invalid_tab values('0');

    insert into invalid_tab values('00');

    insert into invalid_tab values('2147483648');

    -use as the binding variable 2147483648

    delete from invalid_tab where value_column! = to_char(:val);

    Select * from invalid_tab;

    -very unexpected output

    0

    I searched but did not find anything.

    Is this a known bug and is there a workaround?

    HI Kirk,

    In an attempt to follow your scenario (a little incomplete) test on 4.0.1 against a 11.2.0.1 db, I don't have the same results that you got.  However, I think you or had some problem with set the variable binding properly, or else can be hitting this bug published:

    Bug 17758393 - SQL DEVELOPER IS CONVERSION BIND VARIABLE TYPE TO VARCHAR IN NUMBERS

    Alexandratservice implementation and the tables x, valid_test, invalid_test , as you did, that's what I got:

    Set serveroutput on 1000000;

    var test varchar2 (2000);

    exec: test: = '2147483647'

    Select * from x where dummy = mytest (dump (:test));

    exec: test: = ' 2147483648 "

    Select * from x where dummy = mytest (dump (:test));

    the results of your...

    anonymous block filled

    no selected line

    {Type = 1 Len = 10: 50,49,52,55,52,56,51,54,52,55}

    anonymous block filled

    no selected line

    {Type = 1 Len = 10: 50,49,52,55,52,56,51,54,52,56}

    While

    exec: test: = '2147483647'

    delete x where dummy = mytest (dump (:test));

    exec: test: = ' 2147483648 "

    delete x where dummy = mytest (dump (:test));

    gives it that you should know, but didn't...

    anonymous block filled

    0 rows deleted.

    {Type = 1 Len = 10: 50,49,52,55,52,56,51,54,52,55}

    anonymous block filled

    0 rows deleted.

    {Type = 1 Len = 10: 50,49,52,55,52,56,51,54,52,56}

    and finally

    exec: test: = '2147483647'

    delete from valid_tab where value_column! = to_char(:test);

    Select * from valid_tab;

    exec: test: = ' 2147483648 "

    delete from invalid_tab where value_column! = to_char(:test);

    Select * from invalid_tab;

    yields, even once, what you expected get but doesn't do not...

    anonymous block filled

    1 deleted rows.

    VALUE_COLUMN

    ----------------------------------------------------------------------------------------------------------- ...

    2147483647

    anonymous block filled

    2 deleted rows.

    VALUE_COLUMN                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -- --------------------------------------------------------------------------------------------------------- ...

    2147483648

    I ran a few times different. Once with the DDL and inserts in a spreadsheet shared (with a commit to the end), and then runs the select and delete bits in non-shared spreadsheets separate, and then finally re - run select and bit back in the original shared spreadsheet.  I used your code for the exception or recycling the: test bind variable in the places reference you another: val link the name of the variable.

    Not crossing my fingers that I made no error in copy/paste everything post here.

    Hope this helps,

    Gary

    SQL development team

  • Rule Variables display business as Undefined following import for the calculation Manager

    On the Variables tab in a source system Calc. Most of our business rules Manager have defined variables.

    However following export / import in a Calcualtion System Manager target the same variables appear as "undefined". Therefore, I am unable to validate the rules in the target calculation System Manager as it requires me to enter valid values for each variable before doing so.

    It is a section of the xml file used to export/import showing a particular variable and its reference in a rule:

    < variable id = "107" name = "FCOrtpBudgetHolder" product = 'Planning' type = 'Member' use 'const' = >

    < property name = "description" is used to specify the support Budget, can be level 0 or/Property parent >

    < property name = "application" FCO/Property >

    < property name = / false Property "allowMissing" >

    < property name = / false Property "useLastValue" >

    < property name = "convert" / Real Property >

    < property name = / Property select Budget holder "prompt_text" >

    < property name = 'dimension' BudgetHolder/Property >

    < value / >

    < / variable >

    < rules

    < rule id = "320" name = 'FCO_3YrAdjBud_AdminRec' product 'Planning' = >

    < property name = "description" BusAmend_HBR_001: THIS RULE WILL COPY DATA to ENTRY AGAINST INPUT_TOTAL_SECTION to no. SECTION if USERS SELECT INPUT_TOTAL_SECTION, OTHERWISE IT TO THE/Property SECTION 'TOTAL' MEMBER AND COPY IN INPUT_TOTAL_SECTION >

    < property name = "application" FCO/Property >

    < property name = "plantype" FCO/Property >

    < property name = "display_label" FCO_3YrAdjBud_AdminRec/Property >

    < property name = "comment" / >

    < variable_references >

    < variable_reference id = "107" name = "FCOrtpBudgetHolder" >

    < property name = / Property "seq" 1 >

    < property name = "application" FCO/Property >

    < property name = / false Property "useAsOverrideValue" >

    < property name = "scope" FCO/Property >

    < property name = 'type' 3/Property >

    < property name = "hidden" / false Property >

    < property name = "sΘcuritΘ" use by default/Property >

    < property name = "nom_regle" FCO_3YrAdjBud_AdminRec/Property >

    < / variable_reference >

    Rest of rule etc...


    All the

    Forget that - I showed me the error of my ways. The simple clearing browser solves this problem - never thought!

  • Rules move when changing the length of InDesign CS5

    Whenever I change the length of the rules in CS5, the rule will then proceed to jump all over the page. Is a simple adjustment I am on? Really slows down the workflow when you need to change a rule in length and then move the rule to where he was. Any help will be appreciated. Thank you.

    Who just sent a lightning bolt through my brain. Is the link beween the length and height fields? If this is the case, try to turn it off. The status of the settings in the control panel for 'Dimensions include srtroke weight' and "Adjust STROKE weight when climbing" can also come into play.

    A tip would be a factor, if you actually have the end caps, but race position (Center, inside or outside) could make a minor difference if time and whose weight dimensional scaling are enabled.

    It is also quite easy to accidentally move when selecting something, but I don't want that, since you say that change happens afer you type a number in the field of reduction.

  • Business in Essbase report rule-variable

    Hello

    I need to create a report where I use the variable (created as a variable of business rules p. ex.-[BudYear], [CurrVersion], etc.) but it does not work. If I use [BudYear] it is simply display the dimension name in the report as "year". But when I use any variable substitution of exxbase (e.g. - & CurYear etc.) it works fine. Thus, it may be possible to use the variable of business rules in the essbase reports?

    Is it possible to save the report essbase in comma-delimited format (I get only option delimited by tabs). Please go back.


    Thank you and best regards.

    You can load a file delimited by tabs in Oracle via SQLLDR control file that you would use

    "FIELDS TERMINATED BY ' 09 X."

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • variable presentation changing the data type date to string the Calende

    Hi gurus,

    I'm having a strange problem. I have a Start date and end date fast that aren't on any column presentation for example (in the case where 1 = 0 DATE. DATE other cast ('2100-12-31 Date ') end).
    Now, this prompt, I put 2 startdate and enddate variables presentation to use in my sql filter in the report.i use these variable to calculate the date for these 2 end dates and then I apply between it function with these 2 dates.
    The question is when the dashboard is running for the first time the presentation variable takes the dates as the DATE "' 2009/14/10 and when I change the date and click on the go button, the variables is October 15, 2009" as strings anf so DATE in my SQL filter functions fails and error throughts VD.

    All of the suggestions!

    Nico explain already.

    Select date '' 2009-12-15 of the double - TRUE
    Select date of 2009 '-15-12' of the double - ORA-01843: not one month valid
    Select date ' 10/2009/15 ' of double - ORA-01861: literal does not match the format string

    DATE 'yyyy-mm-dd' does that have this format.

    Concerning
    Goran
    http://108obiee.blogspot.com

  • NEC Bind array Variable on changes in the value of SelectOneRadio

    I have a SelectOneRadio button and a Table. I just set the variable binding of the query that is displayed in the table of selection of option buttons.
    I put the buttons SelectOneRadio autosubmit true and I have a method to the ValueChangeListener destination. In the ValueChangeListener I get the value of the SelectOneRadio and setNamedWhereClauseParam ("bindValue", value); I also added the Id of the SelectOneRadio to the partial relaxation of Tables.

    However the variable binding is still not updated. Y at - it a step I have missed to set the variable in the query binding when you press the SelectOneRadio, run the query and refresh the page so that the update query is displayed.

    I use JDeveloper 10.1.3



    Steve

    Steve,

    You must select the id of the component, not the property of partialtriggers of selectoneradio selectoneradio. When you do this, the components selectoneradio id is 'sor1', then the partialTriggers property must be set to the value 'sor1', it won't lead to EL Expression just a literal value.

    Follow the steps below:

    -Select the table in the structure pane, in the property inspector, select property "partialTriggers".
    -In the menu, select 'Edit' (no generator expressions)
    -In ' change ownership: PartialTriggers dialog, select component selectoneradio and then move it to the selected and then say okay section
    -The id of the component of selectoneradio would be assigned to the property of table partialTriggers
    -To the source of the jspx page, it should be something like partialTriggers = "", if the radio id is sor1, it should be (partialTriggers = 'sor1')

    Jean Lou

  • (Beginner) ColdFusion: variable to change language

    Heyya,

    While he was working on other things this summer, my boss asked me to fix some stuff on some website (small) associated with my work. Of course, I thought, not knowing the site was built almost entirely in CF. in any case, I thought I would give it a shot, so I read the code and Googling/try to understand how running things.

    The thing I'm trying to do is to add a small feature that puts back the language of the site with links on the home page. I started to think that by using a variable that can be changed could work. So I have pretty well defined a variable in application.cfm (lets call it 'language') and did a cfif that compares the 'language' to a string around two versions of the header (header just to start).

    So, that works fine manually setting the variable 'language' in the code in application.cfm. I just can't understand, is how I can make a link on the site, when you click it, change this variable to a specified string. Because it is, if I could do it, then it would work. When I tried to write the code for this, it seems that you cannot directly modify a variable in application.cfm from the side browser, right?

    Then I thought: ' ok, so I do a "switchlang.cfm" and write code, the variable ". Here's pretty much where I'm stuck, as my half-assed attempts will get me nowhere.

    So please, please help me with this. The pointers, solutions is welcome. I go to this topic in a way that is totally wrong? I am looking for a simple solution that works.

    Please go easy on me, I just see CF code a couple of weeks, so I can have written some great 'wrongs', I know... :))

    Solved. Thanks for your time.

  • Variable presentation changing to 0 once downloaded to Excel

    Hello:
    I'm having a problem with the presentation variable.
    In fact I am capture user input value using a variable presentation and then use it for certain calculations in the PivotTable.

    Report looks good on dashboard. However, when I download in excel, presentation variable is turned to 0 and all calculations based on that change too...

    Version I use is the 10.1.3.2. I would like to know if it's the limitation of the version.
    Thank you.
    Vinay

    Simply capture directly into the repository variable and use it in your reports.

    concerning

    John
    http://obiee101.blogspot.com

  • Translation rule when rate changes periodically

    Can someone help me write a translation rule when the translation rate changes periodically.
    my custom dimension is:

    Fence barrier
    Opening balance
    Movements

    Dimension of the entity:

    Group (SAR Currency)
    ETY1 (SAR)
    ETY2 (USD)

    When 3 is my rate of translation for Jan and Feb 5; The consolidation of FEBRUARY at the level of the group values are not correct. There is a difference in the values consolidated because it adds to the opening balance of February to close the balance of jan, which translates to different rates and movements of February which are converted during the news.

    Kindly help me to write the rule.

    You must prevent the definition of the period OpeningBalance previous ClosingBalance, at the top of the hierarchy of value, as well as entities of the group. You should write something like that in the procedure to calculate ():

    If (HS. Entity.IsBase ("", "") = True and (HS. Value.Member () = "" or HS. Value.Member () = "" or HS. Value.Member () = "" or HS. Value.Member () = "[Contribution Adjs]")) then
    ... look for the previous period OpeningBalance ClosingBalance here...
    End If

    I.e. incorporate your calculation OpeningBalance code into the structure of 'if' above. The calculation of OpeningBalance should look like:
    HS. Exp ' #OpeningBalance C3 = C3 #ClosingBalance.P #Prior.

    At this point, you should see that you let code to run for members of the adjustment, because it is necessary to transfer the ClosingBalances to the new adjustment period and they cannot interfere with the translation.

    Is this clear enough?

Maybe you are looking for

  • Tecra Z50 - mSATA SDS + 2.5 "HDD?

    Hallo! I've seen in a Youtube video, that the SSD that come as standard are mSATA those and that there is space for a 2.5 drive "under. So my question is: if I buy a Toshiba Tecra Z50-A-12R, which comes with a 500 GB HARD drive, can I install an addi

  • Qosmio X 505-870-can't turn off and nothing on the monitor

    I wasn't doing anything particularly interesting when my computer just turns off randomly. I pressed the power button to turn it back on, I can hear the fan and things of the machine but nothing appears on the monitor. I pressed on and maintained the

  • Satellite L750 - cannot complete the installation of Windows

    Just bought new computer initial sart upward and installing Windows. Get the loop of the error. "The computer started unexpextedly or encountered an unexpected error. Windows Setup cannot continue. To install Windows, click OK to restart, then restar

  • Framework of the CJC to SCC-TC02

    I use a SCC-TC02 thermocouple module in the carrier of CSC SC-2345.  The DAQ card that I use is the PCI-6221.  I understand that the SCC-TC02 has an onboard thermistor for cold junction compensation.  When you set the parameters for the DAQmx create

  • where the bookmarks bar

    where the bar favorites with all my accounts in it