Function dpPromote() works only as config variable and not in profiles.

(Doc ID 2400814.1)

Last updated on MAY 18, 2018

Applies to:

Oracle WebCenter Content - Version 12.2.1.3.0 and later
Information in this document applies to any platform.

Symptoms

Per Fusion Middleware Developing with Oracle WebCenter Content at:
https://docs.oracle.com/middleware/12213/wcc/webcenter-content-develop/GUID-87DE3E95-5DAE-4EDA-A644-7FF858890C23.htm#WCCDV10411


The function dpPromote() is used to 'promote' values from a rule evaluation context into the request context. After the evaluation of all rules, the key and value specified by this function are pushed into the local data.

However this only works as a configuration entry when defined in config.cfg and not when used in profiles as side effect to a condition in rule.

Issue can be reproduced at will by executing following steps:
  ==========================================================
1. Create a profile and have a rule assigned to the profile.
2. Use rule activation condition for this rule.
3. Add the following side effect script to the condition -

4. When the profile is used to check-in content items, it fails to account the script.
5. However, when used a configuration entry defined in config.cfg it works.

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms