[
https://issues.apache.org/jira/browse/SYNAPSE-884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Malith Dhanushka updated SYNAPSE-884:
-------------------------------------
Attachment: SYNAPSE-884.patch
Added the capability of defining whether the template parameter is optional or
not and defining parameter default value. From now on template parameter has
following configuration.
<template name="simple_func">
<parameter name="p1" [default="value|expression"]
[optional=(true|false)]/>
<parameter name="p2" [default="value|expression"]
[optional=(true|false)]/>*
<mediator/>+
</template>
Attaching patch.Please review & commit.
Thanks,
Malith
> Enable optional/default values in call-template mediator
> --------------------------------------------------------
>
> Key: SYNAPSE-884
> URL: https://issues.apache.org/jira/browse/SYNAPSE-884
> Project: Synapse
> Issue Type: Task
> Reporter: Udayanga Wickramasinghe
> Attachments: SYNAPSE-884.patch
>
>
> It would be useful to have optional/default parameters in Call template
> mediator.. For example callers of a template might not need to pass in
> parameter values every time. We should be able to assign optional=true in
> template paramters and invoke accordingly..
> ie:-
> <template xmlns="http://ws.apache.org/ns/synapse" name="iter_func">
> <parameter name="iter_expr"/>
> <parameter name="attach_path" optional="true"/>
> <sequence>
> ......
> </template>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]