basic Process
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
-
I placed the suggested expression with no luck it says it cannot parse the expression the variable TotalUnsentCount is unknown !!! how come ?
0 -
Hi @mhkhoury,
I have some remarks here:
- You used parenthesis within PrintToConsole ==> %(TotalUnSentCount).
In RapidMiner Macros are used with curly brackets ==> %{TotalUnSentCount} - 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. - 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
2 - You used parenthesis within PrintToConsole ==> %(TotalUnSentCount).