Editing workflows through AE.ApplicationInterface sets <PARAMETER> conditions back to default values

Document ID : KB000118060
Last Modified Date : 23/10/2018
Show Technical Document Details
Issue:
When editing a workflow using the Java API's OpenObject class, if the workflow contains a task that has the precondition/postcondition: 

“then execute object <object> as alias <alias> with <PARAMETERS> and <> for end”

Then the values for <PARAMETERS> get reset to the promptset default values instead of the values defined at the task property level. 


 
Cause:
This is a bug in the Automation Engine where the variable's '#" value in the JPOP table is resolved to "S.00."
Resolution:
This bug is fixed in the following versions:

Automation Engine 11.2.9 (available for download)
Automation Engine 12.0.6 (available for download)
Automation Engine 12.1.3 (available for download)
Automation Engine 12.2.0 (available for download)

Workaround:

Use a trigger to replace all the S.00 in the JPOP table with the correct values like: 

CREATE OR REPLACE TRIGGER XX_jpop_insert_update 
BEFORE INSERT OR UPDATE ON jpop 
FOR EACH ROW 
WHEN (NEW.JPOP_VNAME LIKE '%S.00') 
BEGIN 
--Fix Variable Names 
:NEW.JPOP_VNAME := REPLACE(:NEW.JPOP_VNAME,'S.00','#'); 
END;