Hi,
I found several related topics but none with an answer to this problem.
I have a recipe adding an item to a project. The item's name is an input parameter getting its value from a wizard, easy enough.
Now I want to reuse this recipe from code, looping over an XML file, and for multiple names found execute the existing recipe while overriding the name argument.
Using reuse by xi:includes, I can create a new recipe that mirrors the original but without the wizard. An action from another recipe needs to execute this new recipe.
Now I know it is not possible to execute a recipe from within an action (unless it is in another package), so I find the recipe and try to execute its actions using the IActionExecutionService. Not trivial because it needs a dictionary with the fully evaluated arguments, but maybe it is ?
Other option would be to addthe action to this new recipe and have this execute theother actions. Now the dictionary I need is present, only how do I change one of its values before calling .Execute(action); ? It seems to be read-only.
Any help would be greatly appreciated, I'm on a tight schedule to have this working (15/10)...
Michel.