basic Process

mhkhoury
mhkhoury New Altair Community Member
edited November 5 in Community Q&A

Ok , I am newbie to this Rapid Miner thing. I am trying to do a simple process as follows :

 

1 - Select a query (Count Query)

2 - IF the count is > 1 then send an email

 

simple . I have been battling with this for ages.

 

Here is my process . Can someone help me please

Answers

  • sgenzer
    sgenzer
    Altair Employee

    hello @mhkhoury - no problem.  So I think your struggle is the Branch expression.  It should be:

     

    if(TotalUnSentCount==0,TRUE,FALSE)

     

    Scott

     

  • mhkhoury
    mhkhoury New Altair Community Member

    I placed the suggested expression with no luck it says it cannot parse the expression the variable TotalUnsentCount is unknown !!! how come ?

  • Edin_Klapic
    Edin_Klapic New Altair Community Member

    Hi @mhkhoury,

     

    I have some remarks here:

    1. You used parenthesis within PrintToConsole ==> %(TotalUnSentCount).
      In RapidMiner Macros are used with curly brackets ==> %{TotalUnSentCount}
    2. Branch - Condition type: expression
      Here you (usually) compare to values and not check for the value of an Attribute.
      If you want to use this I suggest to extract the value of the Attribute TotalUnSentCount as Macro (Extract Macro).
      Set the macro type to data_value, attribute name is TotalUnSentCount, and example index is 1. macro is the name of the new macro.
      Then the expression would be %{name_of_the_macro}=="test_value" (%{TotalUnSentCount}=="0"). Since Macros are by default strings you need to double quote the right side of the expression.
    3. Branch - Condition type: attribute_value_filter
      Since you have just one example, you could also use this condition type. The usage would be TotalUnSentCount = 0.

    I was not able to import the XML you attached - I took me some time to fix the problem. 

    So for future usage please do one of the following:

    Within RapidMiner there is an XML panel under View. Please copy the content into the post (using the code insert tool </>) or attach your process file (file extension rmp).

     

    Hope this helps :)

     

    Best,

    Edin