The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

"Generate Macro vs Generate Attributes"

sgenzersgenzer Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager
edited June 2019 in Help

Hi...having a bit of trouble with my old friend Generate Macro.  I'm trying to create a macro called "subSelector" that is used in Select Subprocess.  Here's what I try to do:

 

subSelector                                 if(missing(eval(%{loopAtt})),1,2)

 

[%{loopAtt} is macro of a Loop Attributes operator that this is inside of]

 

This does not work - I get an error saying that it is not able to evaluate eval(%{loopAtt}).  However if I do the exact same thing in Generate Attributes, I have no trouble.  Of course this is annoying - I need to generate the attribute, Extract Macro, and then get rid of the attribute.  Help?  I'm in this situation more than you would think.  And why does Select Subprocess not have more functionality like Branch?  I like Select Subprocess better because of its flexibility (more than one option) but this macro thing gets in the way.

 

Thanks.


Scott

Answers

  • sgenzersgenzer Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager

    oh geez - ignore that post (delete?).  I just realized the problem.  Never mind.  Not enough coffee this morning.

     

    Scott

Sign In or Register to comment.