Javascript callout policy configuration with flow variable

Not applicable

Is it possible to specify which javascript file should be run by reading a flow variable in a Javascript callout policy?

0 2 219
2 REPLIES 2

@Madhumita Kumari - Javascript callout policy doesn't allow conditions. But you can put conditions around different javascript policies for execution in policy or target files.

<Step>
	<Condition>...</Condition>
	<Name>JavaScript.A</Name>
</Step>
<Step>
	<Condition>...</Condition>
	<Name>JavaScript.B</Name>
</Step>
<Step>
	<Condition>...</Condition>
	<Name>JavaScript.C</Name>
</Step>

Not applicable

You could also have a single JavaScript entry point and then route within that code to the desired function or class based on the value of the flow variable.