Problem with parameter transfer to PromptSet PRPT when called with AE Application Interface (Java API)

book

Article ID: 84782

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Error Message :
N/A

There is a issue with parameter transfer to PromptSet PRPT when called with AE Application Interface (Java API)

Investigation
The PromptSet contains a checkbox with the following settings:
  • Value is not required (Default)
  • Multiple selection
  • Transferring values as an array

Workflow is started via Java API and the value for the checkbox is passed empty. However, in the report an empty value is not shown but the default value

If no default value is defined for the checkbox in the prompt set, an empty value can also be transferred. This scenario also works when passing as a separator-separated string.

 

Cause

Cause type:
By design
Root Cause: In the script, the empty set does not make an input but rather switches back to a default entry
On the other hand the interactive input changes the default to selected

Environment

OS Version: N/A

Resolution

There is no difference between Java AI and AE scripting, both behave exactly the same.

For example:
If the following AE script object:
 
:define &xx#, string, 2
:put_prompt_buffer CHECKGROUP1# = '&xx#[]'
:set &act# = activate_uc_object(BPBA000000000000001)

the result is the same if Java code is used:
 
exec.putPromptBuffer("CHECKGROUP1#", new String[]);

There is a difference if changed manually.

Fix Status: No Fix

Additional Information

Workaround :
In case you need the empty value, you will have to predefine one checkbox with empty value and select it as default.