When customizing WebCenter Portal Task Flows, you may be required to add new parameters.
This post explains how to solve a problem when the parameter added is java.lang.Boolean type.
What happens when adding an Input Parameter of type Boolean?
When adding a Boolean parameter to a Task Flow it will be shown as Check Box.
However, trying to use this parameter, for example in a Router, will produce following error:
<Jan 10, 2014 11:52:12 AM CET> <Error> <oracle.adf.controller.internal.binding.TaskFlowRegionModelViewPort> <BEA-000000> <
oracle.adf.controller.activity.ActivityLogicException: ADFC-06008: Router case expression '#{pageFlowScope.analytics}' does not evaluate to a boolean.
Why does this not evaluate to a Boolean?
Looking into the MDS you will find following:
- ${'true'}
- ${'false'}
This values are taken by #{pageFlowScope.analytics} as String.
What is the solution?
The solution is based on create a Managed Bean with a java.lang.Boolean property that will be mapped to the input parameter value.
Using this method will allow you to Boolean values without conversion problems.