For example, this workflow would like to use such a property:
<command name="MyCommand" description="wants to use
attributes in opts" command-type="WorkflowCommand">
<opts>
<opt parameter="myParam" required="false" type="string"
default="${entity.attribute.my_attribute}" property="opts.myParam"
description="wants to use attributes in optsr"/>
</opts>
</command>
Is there an example somewhere where I can look at if it is now
possible in 3.1beta?
I recall it might be in reference to use of a "named" property.
Thanks.
First example shows the simple usage.
<get-opts optsValue="" usageProperty="usage"
errorProperty="error">
<opts>
<opt parameter="arg3" type="string"
property="opts.arg3"
required="true" defaultproperty="default.arg2" />
</opts>
</get-opts>
Second example shows one specifying a non existent property in the
defaultproperty attribute. Since it is not defined, the "default"
value is used. That is the precedence rule.
<get-opts optsValue="" usageProperty="usage"
errorProperty="error">
<opts>
<opt parameter="arg4" type="string"
property="opts.arg4"
required="true" defaultproperty="doesnotexist"
default="3"/>
</opts>
</get-opts>
If the "required" attribute is set true, and a default can not be set
AND the user does not provide the argument, then get-opts will throw a
ParseOptsException.