Added by garnet, last edited by garnet on May 28, 2007

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

The answer is apparently not. I put the following code at the start of an execute routine, and I was not able to find the name of the calling macro:

    public String execute(Map parameters, String body, RenderContext renderContext) throws MacroException
    {
        // Get the keys for the Map parameters
        String sResult = "";

/*  Source 1.3 doesn't allow either of these:

        for (KeyType key : parameters.keySet())
           {
             if (sResult.length()>0)
                { sResult=sResult+", ";
                }
             sResult += +key;
           }

       for (Iterator<String> it = m.keySet().iterator(); it.hasNext(); )
*/
       for (Iterator it = parameters.keySet().iterator(); it.hasNext(); )
          // if (it.next().isBogus())
          // it.remove();
           { String key = (String)it.next();
             if (sResult.length()>0)
                { sResult=sResult+", ";
                }
             sResult += key;
           }

        String sRaw = (String)
        parameters.get(": = | RAW | = :");

        if (1==1)
                {
        return  "Raw parameter:<hr>"+sRaw+"<hr>"+
                "Body:<hr>"+body+"<hr>Keys in parameters:"+sResult;
                }

Profit from Penny Stocks. Learn from a millionaire who shares everything! Learn from Timothy Sykes.