Boolean Choices
With macro input parameters that have a boolean datatype, users must enter true or false in the corresponding property for the custom block. You can simplify user entries by having Wires provide a selection list instead.
Use the macro metadata element <type> in <parameter> with a datatype of boolean. For example:
<macros xmlns="http://www.open-mashup.org/schemas/v1.0/EMML"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openmashup.org/schemas/v1.0/EMML/..
/schemas/EMMLPrestoSpec.xsd"
domain="myBlocks">
<macro name="helloWorld"
xmlns:presto="http://www.jackbe.com/v1.0/EMMLPrestoExtensions"
xmlns:macro="http://www.openmashup.org/schemas/v1.0/EMMLMacro">
<presto:macro-meta>
<block usage="Wires">
...
</block>
<parameters>
<parameter name="aBoolean">
<label>Is this true?</label>
<type datatype="boolean"/>
</parameter>
...
</parameters>
</presto:macro-meta>
....
</macro>
...
</macros>
The labels in the selection list are Yes and No but the values assigned are true and false respectively.