summaryrefslogtreecommitdiffstats
path: root/platform-logic/restapi-templates/src/main/velocity/a1-policy-instance-property-payload-template.vtl
blob: c743d2b5172de5dd0ea54bc7bdded4d2d4c46fe5 (plain)
1
2
3
4
5
6
7
8
9
10
## Velocity template for creating payload for creating A1 Policy instance
#set($begCntr=0)
#set($endCntr=0)
#set($entries=$ctx.getAttribute("create-policy-instance-input.properties_length"))
#set($endCntr=$endCntr.parseInt($entries))
#set( $endCntr = $endCntr - 1)
{#foreach($no in [$begCntr..$endCntr])
"$ctx.getAttribute("create-policy-instance-input.properties[$no].property-name")" :
$ctx.getAttribute("create-policy-instance-input.properties[$no].property-value")
#if( $foreach.count < $endCntr+1), #end #end}