Skip to main content
Question

XML not being properly evaluated in 11.36?

  • February 10, 2025
  • 2 replies
  • 66 views

christopherlecky
Explorer
Forum|alt.badge.img+16

We recently upgraded to 11.36 and quite a few workflows are now having issues.

 

One thing I noticed is that embedded XML is not being properly evaluated it when I look at in in the debugger.

 

I have the instance properties stored in a map and in the XML 

I extract the properties, which I assume should be evaluated at runtime.

 

<?xml version="1.0" encoding="UTF-8"?>
<App_UpdateInstancePropertiesRequest>
<association>
<entity>
<instanceId>java:{workflow.getVariable("instanceProp").get("instanceId")}</instanceId>
</entity>
</association>
<instanceProperties>
<instance>
<instanceId>java:{workflow.getVariable("instanceProp").get("instanceId")}</instanceId>
</instance>
<oracleInstance>
<useCatalogConnect>true</useCatalogConnect>
<catalogConnect>
<userName>java:{workflow.getVariable("instanceProp").get("oracleSID")}</userName>
<domainName>xpath:{/workflow/configuration/RMAN_CATALOG_DOMAIN}</domainName>
<password>java:{workflow.getVariable("instanceProp").get("rmanPass")}</password>
</catalogConnect>
<TNSAdminPath>java:{workflow.getVariable("instanceProp").get("oracleHome")}</TNSAdminPath>
<disableRMANcrosscheck>false</disableRMANcrosscheck>
<encryptionFlag>ENC_NONE</encryptionFlag>
<isOnDemand>false</isOnDemand>
<overrideDataPathsForCmdPolicy>false</overrideDataPathsForCmdPolicy>
<overrideDataPathsForLogPolicy>false</overrideDataPathsForLogPolicy>
<numberOfArchiveLogBackupStreams>1</numberOfArchiveLogBackupStreams>
<oracleStorageDevice>
<commandLineStoragePolicy>
<storagePolicyName>java:{workflow.getVariable("instanceProp").get("sp")}</storagePolicyName>
</commandLineStoragePolicy>
<logBackupStoragePolicy>
<storagePolicyName>java:{workflow.getVariable("instanceProp").get("logsp")}</storagePolicyName>
</logBackupStoragePolicy>
<softwareCompression>USE_STORAGE_POLICY_SETTINGS</softwareCompression>
<networkAgents>2</networkAgents>
<throttleNetworkBandwidth>0</throttleNetworkBandwidth>
<deDuplicationOptions>
<generateSignature>ON_CLIENT</generateSignature>
</deDuplicationOptions>
</oracleStorageDevice>
</oracleInstance>
<instanceActivityControl>
<activityControlOptions>
<activityType>BACKUP</activityType>
<enableActivityType>true</enableActivityType>
<enableAfterADelay>false</enableAfterADelay>
</activityControlOptions>
<activityControlOptions>
<activityType>RESTORE</activityType>
<enableActivityType>true</enableActivityType>
<enableAfterADelay>false</enableAfterADelay>
</activityControlOptions>
</instanceActivityControl>
<isDeleted>false</isDeleted>
</instanceProperties>
</App_UpdateInstancePropertiesRequest>

This is what I am seeing at runtime.

 

 <inputXml><?xml version="1.0" encoding="UTF-8"?&gt;&#xD;&#xD;&#xD;&#xD;&#xD;
&lt;App_UpdateInstancePropertiesRequest&gt;&#xD;&#xD;&#xD;&#xD;&#xD;
&lt;association&gt;&#xD;&#xD;&#xD;&#xD;&#xD;
&lt;entity&gt;&#xD;&#xD;&#xD;&#xD;&#xD;
&lt;instanceId&gt;5575&lt;/instanceId&gt;&#xD;&#xD;&#xD;&#xD;&#xD;
&lt;/entity&gt;&#xD;&#xD;&#xD;&#xD;&#xD;
&lt;/association&gt;&#xD;&#xD;&#xD;&#xD;&#xD;
&lt;instanceProperties&gt;&#xD;&#xD;&#xD;&#xD;&#xD;
&lt;instance&gt;&#xD;&#xD;&#xD;&#xD;&#</inputXml>

 

Looks like the parsing is breaking somewhere.

 

This used to work in 11.32, is there some other way I should approach this?

Thanks.

Chris.

2 replies

Forum|alt.badge.img+6

So the issue here is that you are passing an input into a workflow which contains expressions and they are not getting evaluated when the workflow starts now?

 

Do you have a sample workflow that demonstrates the issue you are seeing now?

 


christopherlecky
Explorer
Forum|alt.badge.img+16

That is exactly the issue.

I’ll contact you directly with an example.