<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Santosh Hakki on Medium]]></title>
        <description><![CDATA[Stories by Santosh Hakki on Medium]]></description>
        <link>https://medium.com/@SantoshHakki?source=rss-2bb10aff3f82------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2p31SsHlzpUlC0bjk4udyQ.jpeg</url>
            <title>Stories by Santosh Hakki on Medium</title>
            <link>https://medium.com/@SantoshHakki?source=rss-2bb10aff3f82------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:16:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@SantoshHakki/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Securing Oracle EPM Planning Applications: Roles, Groups, and Access]]></title>
            <link>https://medium.com/@SantoshHakki/securing-oracle-epm-planning-applications-roles-groups-and-access-5a1080941f29?source=rss-2bb10aff3f82------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a1080941f29</guid>
            <dc:creator><![CDATA[Santosh Hakki]]></dc:creator>
            <pubDate>Tue, 20 Oct 2026 06:20:11 GMT</pubDate>
            <atom:updated>2026-10-20T06:20:11.737Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Security is a critical component of every Oracle Enterprise Planning and Budgeting Cloud Service (EPBCS) implementation. Planning applications contain sensitive financial data, workforce information, budgets, forecasts, and business assumptions. Not every user should have access to all application features or be able to modify every planning value.</p><p>For example, a finance manager may need access to financial forms and reports, while a department planner should only be able to enter data for their assigned department. An administrator, meanwhile, may require access to application configuration, dimensions, business rules, and security management.</p><p>Oracle EPM Planning provides role-based security, groups, and artifact-level access permissions to help organizations manage these requirements.</p><p>In this blog, we will explore how security works in Oracle EPM Planning, how to manage roles and groups, how to control access to application artifacts, and how to troubleshoot common authorization issues.</p><h3>1. Understanding Security Layers in Oracle EPM Planning</h3><p>Oracle Cloud EPM uses multiple security layers to control access to its environments and applications.</p><p>The main layers include:</p><ul><li><strong>Identity and authentication:</strong> Determines whether a user can sign in to the environment.</li><li><strong>Predefined application roles:</strong> Determine the user’s overall capabilities within the EPM environment.</li><li><strong>Groups and granular roles:</strong> Help organize users and assign additional application-specific privileges.</li><li><strong>Artifact and data permissions:</strong> Control access to forms, business rules, dimensions, dashboards, and planning data.</li></ul><p>These layers work together. Successfully signing in does not automatically mean that a user can access every form, execute every business rule, or modify all dimension members.</p><p>For example, a user may be able to open an EPBCS application but receive an authorization error when accessing a particular form because the required artifact permission has not been granted.</p><p>Understanding these layers is the first step toward diagnosing security issues.</p><h3>2. Understanding Predefined Application Roles</h3><p>Oracle EPM Planning provides four main predefined roles that determine a user’s overall access level.</p><p>RoleTypical responsibilitiesService AdministratorManages application configuration, security, dimensions, forms, rules, and administrative activitiesPower UserCreates and maintains planning artifacts and performs supported planning administration activitiesUserEnters and submits planning data, works with forms, and analyzes data within assigned permissionsViewerViews and analyzes data without normal planning data-entry privileges</p><p>These roles follow a hierarchy. Higher-level roles inherit the privileges of lower-level roles.</p><p>For example, a Service Administrator inherits the capabilities of Power User, User, and Viewer.</p><p>However, assigning a predefined role does not eliminate the need to configure appropriate artifact and data permissions for users with more limited roles.</p><h3>Choosing the right role</h3><p>Consider a Planning implementation with three types of users:</p><ul><li>Application administrators responsible for configuration and maintenance.</li><li>Planning developers responsible for creating forms and business rules.</li><li>Business users responsible for entering budgets and reviewing forecasts.</li></ul><p>Assigning every developer or business user the Service Administrator role would grant broader privileges than many of them require.</p><p>A better approach is to assign the lowest predefined role that supports each person’s responsibilities, then grant additional permissions only where necessary.</p><p>This follows the principle of least privilege and reduces unnecessary exposure to sensitive application functionality.</p><p>For more details, refer to <a href="https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/cgsad/4_managing_epm_cloud_users_roles_overview_user_role_mgmt.html">Oracle’s documentation on EPM user and role management</a>.</p><h3>3. Managing Users and Groups</h3><p>Managing security individually for every user becomes difficult as an implementation grows.</p><p>Suppose an organization has 50 department planners. If each planner needs access to similar forms and business rules, assigning permissions individually can create significant maintenance overhead.</p><p>Groups provide a more scalable solution.</p><p>Instead of assigning the same permissions to every user separately, administrators can create groups based on business responsibilities.</p><p>Examples include:</p><ul><li>EPM_Planners</li><li>EPM_Finance_Managers</li><li>EPM_Developers</li><li>EPM_ReadOnly_Users</li></ul><p>These are illustrative group names; organizations should follow their own naming conventions.</p><h3>Creating and assigning groups</h3><p>In Oracle EPM Planning, navigate to <strong>Tools → Access Control</strong>.</p><p>From there, administrators can manage groups, user memberships, and supported application-specific roles.</p><p>A typical setup process is:</p><ol><li>Create a group for users with similar responsibilities.</li><li>Add the relevant users to the group.</li><li>Assign the required application-specific roles or artifact permissions to the group.</li><li>Verify that group members receive the intended access.</li><li>Review the resulting permissions through the available security reports.</li></ol><p>For example, a group called EPM_Planners could receive access to budget input forms and relevant business rules. Users added to that group can then receive the corresponding permissions without requiring administrators to configure every assignment individually.</p><p>Oracle EPM supports different group types, including predefined groups, groups created within Access Control, and identity-provider groups where supported.</p><p>Group membership and application-role assignment are separate concepts. Adding a user to a group does not, by itself, grant every possible privilege; the group must have the relevant roles or permissions assigned.</p><h3>4. Controlling Access to Forms, Rules, and Dimensions</h3><p>Predefined roles establish broad capabilities, but Planning administrators often need more granular control over individual application artifacts.</p><p>Oracle EPM Planning supports permissions for items such as:</p><ul><li>Forms and form folders.</li><li>Business rules and rule folders.</li><li>Dashboards and other supported artifacts.</li><li>Dimension members and data intersections.</li><li>Navigation flows and other application components.</li></ul><p>Depending on the artifact, available permissions may include Read, Write, None, Display, or Launch-related access.</p><h3>Example: Restricting access to a business rule</h3><p>Consider a business rule named Calculate_Workforce_Expenses.</p><p>The rule calculates workforce expenses and is intended for authorized planners.</p><p>The administrator may need to ensure that:</p><ul><li>Authorized planners can launch the rule.</li><li>Developers can maintain the rule, subject to their role and permissions.</li><li>Users who should not execute the calculation do not receive Launch permission.</li></ul><p>To configure supported artifact permissions, open the relevant artifact or folder, select its Actions menu, and choose <strong>Assign Permission</strong>.</p><p>Select the required users or groups and configure the applicable permissions.</p><p>The precise options depend on the artifact type and the user’s overall role.</p><h3>Example: Restricting access to department data</h3><p>Suppose the application contains these departments:</p><ul><li>Finance</li><li>HR</li><li>IT</li><li>Sales</li></ul><p>A department planner should be able to enter data for their own department but should not automatically receive write access to every other department.</p><p>Dimension member security can be used to control access to relevant members when security is enabled for the dimension. Administrators should also review inherited permissions and other applicable security settings.</p><p>For example, a Finance planner group may receive Write permission for the Finance member and appropriate read access to other required reporting members.</p><p>This helps support department-level access without giving every planner unrestricted write access to the entire application.</p><h3>5. Troubleshooting Common Authorization Issues</h3><p>Security issues in EPBCS are not always caused by missing predefined roles. They can result from group membership, artifact permissions, dimension security, or the permissions required to execute a particular operation.</p><p>Here are some common scenarios and how to investigate them.</p><h3>Scenario 1: The user cannot access the Planning application</h3><p><strong>Possible causes:</strong></p><ul><li>The user does not exist in the relevant identity domain.</li><li>The required predefined role has not been assigned.</li><li>The user is signing in to the wrong environment.</li><li>Identity-provider or single sign-on configuration is preventing access.</li></ul><p><strong>Troubleshooting steps:</strong></p><ol><li>Confirm that the user account exists in the correct identity domain.</li><li>Review the user’s assigned predefined roles.</li><li>Verify the environment URL and identity-provider setup.</li><li>Ask the user to sign in again after the administrator has confirmed the configuration.</li></ol><h3>Scenario 2: The user can open the application but cannot access a form</h3><p><strong>Possible causes:</strong></p><ul><li>The user or their group does not have the required form permission.</li><li>The form’s parent folder has relevant access restrictions.</li><li>The user lacks access to required dimension members.</li><li>The form’s design or POV references members the user cannot access.</li></ul><p><strong>Troubleshooting steps:</strong></p><ol><li>Check the user’s group membership.</li><li>Review permissions on the form and its folder.</li><li>Verify dimension and member security.</li><li>Test the form with a suitable test account to confirm the expected behavior.</li></ol><h3>Scenario 3: The user can view data but cannot modify it</h3><p><strong>Possible causes:</strong></p><ul><li>The user has Viewer-level access or lacks the required write permissions.</li><li>The relevant dimension or member security does not permit writing.</li><li>The form is read-only or contains noneditable cells.</li><li>The selected intersection or application configuration prevents data entry.</li></ul><p><strong>Troubleshooting steps:</strong></p><ol><li>Confirm the user’s predefined role.</li><li>Review the relevant dimension and member permissions.</li><li>Check whether the form and cells support data entry.</li><li>Verify whether other application rules or planning restrictions affect the intersection.</li></ol><p>Increasing the user’s role should not be the first response to every write-access issue. Identify the actual restriction before changing security.</p><h3>Scenario 4: The user cannot launch a business rule</h3><p><strong>Possible causes:</strong></p><ul><li>The user does not have Launch permission for the rule.</li><li>The rule is not available in the relevant form or context.</li><li>The rule uses runtime prompts requiring member access that the user does not have.</li><li>The user’s role does not permit the required operation.</li></ul><p><strong>Troubleshooting steps:</strong></p><ol><li>Verify the rule’s artifact permissions.</li><li>Check the user’s role and group assignments.</li><li>Review runtime prompt definitions and required member access.</li><li>Test the rule with an authorized user and inspect the resulting error message.</li></ol><h3>Scenario 5: Access differs between two users in the same group</h3><p><strong>Possible causes:</strong></p><ul><li>The users belong to different additional groups.</li><li>One user has direct permissions that differ from group-based permissions.</li><li>One user has a higher predefined role.</li><li>The users have different dimension or artifact access.</li></ul><p><strong>Troubleshooting steps:</strong></p><p>Use the available User Group Report, Role Assignment Report, and access permission reporting capabilities to compare the two users.</p><p>Do not assume that membership in one common group guarantees identical effective access. Other role assignments and permissions may affect the result.</p><p>Oracle documents how access permissions are evaluated, including the effects of roles, direct assignments, and group membership, in its <a href="https://docs.oracle.com/en/cloud/saas/planning-budgeting-cloud/pfusa/types_of_access_permissions.html">Planning access permissions documentation</a>.</p><h3>6. Security Auditing and Access Reviews</h3><p>Security administration should be an ongoing process rather than a one-time implementation task.</p><p>As employees change roles, developers move between projects, and contractors leave an organization, access permissions should be reviewed regularly.</p><p>Oracle EPM Planning provides reporting capabilities through Access Control to help administrators review security assignments.</p><p>Useful reports include:</p><ul><li><strong>Role Assignment Report:</strong> Reviews application-specific role assignments.</li><li><strong>User Group Report:</strong> Shows direct and indirect group memberships.</li><li><strong>User Login Report:</strong> Helps review user login information available in the environment.</li></ul><p>These reports can support periodic access reviews, compliance activities, and investigations into unexpected permissions.</p><p>Recommended practices include:</p><ol><li>Review privileged accounts regularly.</li><li>Remove access that is no longer required.</li><li>Avoid unnecessary overlapping role assignments.</li><li>Maintain clear group ownership and naming conventions.</li><li>Test security changes before applying them broadly.</li><li>Document changes to important production permissions.</li></ol><p>Security reports are particularly useful when investigating why two users have different access or when preparing evidence for an audit.</p><h3>7. Best Practices for Oracle EPM Planning Security</h3><p>The following practices help keep security manageable as an application grows.</p><p><strong>1. Follow the principle of least privilege.</strong> Assign only the roles and permissions users need for their responsibilities.</p><p><strong>2. Use groups wherever practical.</strong> Group-based assignments simplify administration and reduce repetitive permission changes.</p><p><strong>3. Separate administration from business planning.</strong> Limit privileged roles to users who genuinely need them.</p><p><strong>4. Review dimension security carefully.</strong> Ensure that member permissions match the organization’s reporting and data-entry requirements.</p><p><strong>5. Test security changes.</strong> Validate access using representative test accounts before releasing changes to production users.</p><p><strong>6. Use security reports.</strong> Review group memberships and role assignments when troubleshooting or performing periodic audits.</p><p><strong>7. Avoid fixing every issue by upgrading roles.</strong> Determine whether the restriction comes from the predefined role, an artifact permission, dimension security, or the operation itself.</p><p><strong>8. Document the security design.</strong> Maintain a record of groups, roles, permission ownership, and the business purpose of important access assignments.</p><h3>Conclusion</h3><p>Securing Oracle EPM Planning applications requires more than assigning users a predefined role. Effective security combines environment-level access, role assignments, group management, and permissions on individual application artifacts and data.</p><p>By organizing users into appropriate groups, applying least-privilege access, managing artifact permissions, and using security reports to investigate issues, administrators can maintain a more secure and manageable EPBCS environment.</p><p>When authorization errors occur, the most effective troubleshooting approach is to identify the specific layer restricting access before changing a user’s privileges.</p><p><strong>The key takeaway:</strong> A well-designed Oracle EPM Planning security model gives users the access they need to perform their work while protecting sensitive data and reducing unnecessary administrative overhead.</p><h3>References</h3><ul><li><a href="https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/epm-tutorial-security/">Oracle: Setting Up Security in Cloud EPM</a></li><li><a href="https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/pappm/launch.html">Oracle: Administering Access Control</a></li><li><a href="https://docs.oracle.com/en/cloud/saas/planning-budgeting-cloud/pfusa/types_of_access_permissions.html">Oracle: Types of Access Permissions in Planning</a></li><li><a href="https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/cgsad/4_managing_epm_cloud_users_roles_overview_user_role_mgmt.html">Oracle: User and Role Management Overview</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a1080941f29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing Valid Intersections in Oracle EPM Planning: Restricting Invalid Dimensional…]]></title>
            <link>https://medium.com/@SantoshHakki/implementing-valid-intersections-in-oracle-epm-planning-restricting-invalid-dimensional-c22b9eeac1d8?source=rss-2bb10aff3f82------2</link>
            <guid isPermaLink="false">https://medium.com/p/c22b9eeac1d8</guid>
            <dc:creator><![CDATA[Santosh Hakki]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 16:07:14 GMT</pubDate>
            <atom:updated>2026-10-16T16:07:14.557Z</atom:updated>
            <content:encoded><![CDATA[<h3>Implementing Valid Intersections in Oracle EPM Planning: Restricting Invalid Dimensional Combinations</h3><h3>Introduction</h3><p>In Oracle Enterprise Planning and Budgeting Cloud Service (EPBCS), users work with multiple dimensions such as Account, Entity, Scenario, Version, Department, Product, and custom dimensions. These dimensions help organize financial and operational planning data.</p><p>However, not every combination of dimension members is valid for business planning.</p><p>For example, a company may sell laptops only through specific entities, allow capital expenditure planning only for selected departments, or restrict certain accounts to particular scenarios and versions.</p><p>Without appropriate controls, users may encounter irrelevant dimensional combinations while entering data into Planning forms. This can make the planning process confusing and increase the risk of incorrect data entry.</p><p>Oracle EPM Planning provides <strong>Valid Intersections</strong> to address this challenge. Administrators can define rules that determine which dimensional combinations are valid for planning data entry.</p><p>In this blog, we will explore how Valid Intersections work, how to configure them, and how to apply them to practical EPBCS scenarios.</p><h3>1. What Are Valid Intersections?</h3><p>Valid Intersections allow administrators to define which combinations of dimension members are valid within a Planning application.</p><p>For example, consider an organization with the following dimensions:</p><ul><li>Entity: US, UK, India</li><li>Product: Laptop, Desktop, Tablet</li><li>Scenario: Plan, Forecast</li><li>Version: Working, Final</li></ul><p>The organization may have different products available in each country. Instead of allowing users to select every product for every entity, the administrator can define rules that restrict the combinations.</p><p>A simplified example:</p><p>EntityProductValid?USLaptopYesUSDesktopYesUKLaptopYesUKTabletNoIndiaTabletYes</p><p>With the appropriate Valid Intersection rules configured, invalid combinations can be restricted in supported Planning data-entry forms, helping users work with the correct planning intersections.</p><p>Oracle also supports filtering member selections in applicable Points of View (POVs), so selecting a member in one dimension can influence the available members in another. See <a href="https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/umepr/learning_about_valid_intersections_topic_xx2307.html">Oracle’s documentation on Valid Intersections</a>.</p><h3>2. Understanding Anchor and Nonanchor Dimensions</h3><p>Before configuring a Valid Intersection, it is important to understand its two main components.</p><p><strong>Anchor dimension:</strong> The primary dimension around which the Valid Intersection is defined.</p><p><strong>Nonanchor dimensions:</strong> The additional dimensions whose members are restricted according to the configured rules.</p><p>For example, suppose the business wants to control which products are available for each entity.</p><ul><li>Anchor dimension: Entity</li><li>Nonanchor dimension: Product</li></ul><p>The administrator can define the permitted Product members for selected Entity members.</p><p>This relationship makes it possible to define business-specific combinations without manually managing every possible intersection across all dimensions.</p><p>The rule can also involve more than two dimensions. For example, a rule may restrict Account and Department combinations based on Entity and Scenario.</p><p>The design should reflect the actual business requirement rather than adding unnecessary dimensions to every rule.</p><h3>3. Practical Example: Restricting Products by Entity</h3><p>Let’s consider a company that operates in three regions: US, UK, and India.</p><p>The company sells the following products:</p><ul><li>Laptop</li><li>Desktop</li><li>Tablet</li></ul><p>However, the available product range differs by region.</p><p>The business requirements are:</p><ul><li>US can plan Laptop, Desktop, and Tablet.</li><li>UK can plan Laptop and Desktop.</li><li>India can plan Laptop and Tablet.</li></ul><p>We can implement this requirement using Valid Intersections.</p><h3>Step 1: Open Valid Intersections</h3><p>Log in to the Oracle EPM Planning application with the appropriate administrator permissions.</p><p>Navigate to:</p><p><strong>Application → Valid Intersections</strong></p><p>Open the Setup tab to create and manage Valid Intersection groups.</p><p>The exact navigation labels may vary slightly by application version.</p><h3>Step 2: Create a Valid Intersection group</h3><p>Create a new group and provide a meaningful name, such as:</p><p>VI_Entity_Product</p><p>Choose the Entity dimension as the anchor dimension.</p><p>Add Product as a nonanchor dimension.</p><p>The group now establishes the relationship between Entity and Product.</p><h3>Step 3: Define the valid intersection rules</h3><p>Add rules that specify the allowed combinations of members.</p><p>For this example, the intended configuration is:</p><p>EntityAllowed Product membersUSLaptop, Desktop, TabletUKLaptop, DesktopIndiaLaptop, Tablet</p><p>Use the member selection controls to configure the required members and exclusions.</p><p>Oracle’s Valid Intersections configuration supports defining included members, exclusions, and related options. Review the member selections carefully because the rule’s behavior depends on its configuration, including whether unspecified anchor members are considered valid.</p><h3>Step 4: Save and test the configuration</h3><p>Save the Valid Intersection group and open a Planning form that uses the relevant dimensions.</p><p>Select UK as the Entity member and verify that Tablet is excluded from the applicable Product selections.</p><p>Next, select India and verify that Desktop is excluded.</p><p>Finally, select US and confirm that all three products are available.</p><p>Testing should cover both permitted and prohibited combinations to ensure that the rules behave as intended.</p><h3>4. Using Valid Intersections for Financial Planning</h3><p>Valid Intersections are useful beyond product planning. They can support several financial and operational planning scenarios.</p><h3>Scenario 1: Restricting Accounts by Department</h3><p>Suppose an organization has Finance, HR, IT, and Sales departments.</p><p>Certain accounts should only be used by specific departments.</p><p>For example, recruiting expenses may be relevant to HR, while software subscription expenses may be planned by IT.</p><p>A Valid Intersection group involving Department and Account can help limit the available combinations to those appropriate for each department.</p><p>This reduces the chance of users entering expenses against unrelated departments.</p><h3>Scenario 2: Restricting Version by Scenario</h3><p>Consider a Planning application with Plan and Forecast scenarios and Working and Final versions.</p><p>The organization may want users to work with the Working version during forecast preparation, while the Final version is reserved for approved planning activities.</p><p>Valid Intersection rules can restrict the applicable Scenario and Version combinations.</p><p>For example, the organization could define a rule allowing Plan with Working and Final, while Forecast is restricted to Working.</p><p>The exact rule configuration depends on the intended business behavior and other applicable planning controls.</p><h3>Scenario 3: Restricting Capital Expenditure Planning</h3><p>An organization may allow only selected entities and departments to plan capital expenditure.</p><p>A Valid Intersection group involving Entity, Department, and Account can help control which combinations are available for data entry.</p><p>For instance, only departments authorized to incur capital expenditure would be permitted to plan against the designated capital expenditure accounts for the relevant entities.</p><p>This is particularly useful when the planning model contains many entities and departments.</p><h3>5. Valid Intersections vs. Other Planning Controls</h3><p>Valid Intersections are powerful, but they serve a specific purpose. They should not be confused with security or calculation logic.</p><p><strong>Valid Intersections</strong> define which dimensional combinations are valid for planning and can filter member selections in supported contexts.</p><p><strong>Forms and Smart View layouts</strong> determine how users interact with and view planning data. Their behavior must be tested with the applicable Valid Intersection configuration.</p><p><strong>Cell-level security and application security</strong> control access to data and application resources. Valid Intersections should not be treated as a replacement for security permissions.</p><p><strong>Groovy business rules and calculation scripts</strong> implement business logic, validation, and calculations. They may complement Valid Intersections when additional business requirements need to be enforced.</p><p>For example, a Valid Intersection may prevent users from planning an invalid Account and Department combination in a supported form, while a Groovy rule may validate that a required input is populated before a calculation proceeds.</p><p>Using the right control for each requirement helps keep the application maintainable.</p><h3>6. Managing Valid Intersections Across Environments</h3><p>In enterprise implementations, Valid Intersection configurations may need to be maintained across development, test, and production environments.</p><p>Manually recreating complex groups in each environment can introduce inconsistencies.</p><p>Oracle EPM Automate provides commands to export and import Valid Intersection definitions in supported Planning environments.</p><p>A typical deployment process includes:</p><ol><li>Configure and test the Valid Intersection group in development.</li><li>Export the definitions using the supported EPM Automate command.</li><li>Transfer the export file to the target environment.</li><li>Import the definitions into test or production.</li><li>Validate the imported configuration and test representative intersections.</li></ol><p>For example, the EPM Automate commands include:</p><pre>epmautomate exportValidIntersections VI_Export.zip</pre><pre>epmautomate importValidIntersections VI_Export.zip</pre><p>Use the command syntax supported by your EPM Automate version and the relevant environment. Refer to the <a href="https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/cepma/epm_auto_valid_intersections.html">Oracle EPM Automate documentation</a> for the current command requirements.</p><p>A controlled deployment process helps keep configuration changes consistent and makes them easier to audit.</p><h3>7. Best Practices for Implementing Valid Intersections</h3><p>Consider the following recommendations when designing Valid Intersections in EPBCS.</p><p><strong>1. Start with clear business requirements.</strong> Identify the combinations that must be permitted and prohibited before configuring the rules.</p><p><strong>2. Keep rules focused.</strong> Include only the dimensions necessary to enforce the business requirement. Overly complex configurations can become difficult to troubleshoot.</p><p><strong>3. Understand default behavior.</strong> Pay attention to anchor and nonanchor dimensions, unspecified members, exclusions, and required dimensions.</p><p><strong>4. Test with realistic planning forms.</strong> Validate the behavior using the forms and member selectors that users actually use.</p><p><strong>5. Review POV filtering limitations.</strong> Filtering behavior can differ across interfaces and features. Check Oracle’s current documentation for the exact contexts supported by your application.</p><p><strong>6. Consider performance.</strong> A large number of complex rules and dimensions can increase the processing required for member selection. Keep the design as simple as practical.</p><p><strong>7. Manage configuration changes carefully.</strong> Use controlled promotion between environments and validate imported definitions before releasing them to users.</p><p><strong>8. Keep security separate.</strong> Use application and data security to protect access; use Valid Intersections to control permitted dimensional combinations.</p><h3>Conclusion</h3><p>Valid Intersections are an important feature in Oracle EPM Planning for controlling dimensional combinations and improving the planning data-entry experience.</p><p>By defining relationships between anchor and nonanchor dimensions, administrators can restrict irrelevant combinations, guide users toward appropriate planning intersections, and support more consistent financial and operational forecasts.</p><p>Whether the requirement involves products by entity, accounts by department, or versions by scenario, a well-designed Valid Intersection configuration can simplify planning while reducing the risk of invalid data entry.</p><p>The key is to combine clear business requirements with careful configuration, realistic testing, and controlled deployment across environments.</p><h3>References</h3><ul><li><a href="https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/umepr/learning_about_valid_intersections_topic_xx2307.html">Oracle: Learning About Valid Intersections</a></li><li><a href="https://docs.oracle.com/en/cloud/saas/planning-budgeting-cloud/pfusa/EPM-INFORMATION-DEVELOPMENT-TEAM-E94139-6691CB58.pdf">Oracle: Administering Planning — Defining Valid Intersections</a></li><li><a href="https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/cepma/index.html">Oracle: EPM Automate Commands</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c22b9eeac1d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Metadata Synchronization in Oracle EPM Planning: Managing Dimension Changes Efficiently]]></title>
            <link>https://medium.com/@SantoshHakki/automating-metadata-synchronization-in-oracle-epm-planning-managing-dimension-changes-efficiently-b8cce55f343b?source=rss-2bb10aff3f82------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8cce55f343b</guid>
            <dc:creator><![CDATA[Santosh Hakki]]></dc:creator>
            <pubDate>Thu, 15 Oct 2026 17:29:18 GMT</pubDate>
            <atom:updated>2026-10-15T17:29:18.549Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In Oracle Enterprise Planning and Budgeting Cloud Service (EPBCS), metadata plays a critical role in how an application organizes and processes planning data. Dimensions such as Account, Entity, Department, Product, Employee, and custom dimensions define the structure used for budgeting, forecasting, reporting, and financial analysis.</p><p>As business requirements evolve, metadata changes become inevitable. New accounts are created, departments are reorganized, products are introduced, and existing members may need to be renamed or reclassified.</p><p>Managing these changes manually across development, test, and production environments can become time-consuming and error-prone. This is where <strong>metadata synchronization</strong> becomes valuable.</p><p>In this blog, we will explore how to automate metadata synchronization in Oracle EPM Planning using Enterprise Data Management Cloud (EDM), EPM Automate, and REST APIs, along with practical considerations for implementing a reliable synchronization process.</p><h3>1. Understanding Metadata Synchronization</h3><p>Metadata synchronization is the process of transferring approved dimension and member changes from a source system or environment to a target Planning application.</p><p>Consider an organization that maintains its account hierarchy centrally and uses it across multiple Planning environments.</p><p>When a new account is introduced, administrators may otherwise need to manually recreate the member, configure its properties, and update its hierarchy in each environment.</p><p>A synchronization process helps automate this activity and reduces the risk of inconsistencies.</p><p>Common metadata changes include:</p><ul><li>Adding or removing dimension members.</li><li>Updating member names and descriptions.</li><li>Changing parent-child relationships.</li><li>Updating member properties and applicable aliases.</li><li>Synchronizing approved hierarchy changes across environments.</li></ul><p>The objective is not simply to transfer files. It is to ensure that the target application reflects the intended and approved metadata structure.</p><h3>2. Choosing the Right Automation Approach</h3><p>Oracle EPM supports several approaches for automating metadata movement. The best choice depends on the organization’s architecture, governance requirements, and level of automation.</p><h3>Option 1: Enterprise Data Management Cloud</h3><p>Oracle Enterprise Data Management Cloud (EDM) provides centralized capabilities for managing enterprise dimensions and their changes.</p><p>Organizations can use EDM to manage requests, validate changes, apply approval policies, and distribute approved metadata to connected applications.</p><p>This approach is particularly useful when multiple applications need to share consistent account, entity, product, or other dimension structures.</p><h3>Option 2: EPM Automate</h3><p>EPM Automate is useful when metadata must be exported, transferred between environments, and imported into Planning through a repeatable script or scheduled process.</p><p>A typical workflow includes:</p><ol><li>Export the required dimension from the source system.</li><li>Transfer the metadata file to the target Planning environment.</li><li>Execute a saved Import Metadata job.</li><li>Review the job status and any rejected records.</li><li>Refresh the database when required and approved.</li></ol><p>Oracle provides a hands-on example of synchronizing metadata from EDM to Planning using EPM Automate in its <a href="https://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/epm/EDMC/EPMautomate/index.html">official tutorial</a>.</p><h3>Option 3: REST APIs and Groovy</h3><p>REST APIs can be used to execute metadata-related jobs and integrate synchronization into a broader automation framework.</p><p>Groovy business rules can also be used for certain integration scenarios, including calling EDM REST APIs and triggering saved Planning import jobs. This can be useful when synchronization needs to be initiated from within a Planning application.</p><p>The implementation must follow the supported API operations, authentication requirements, and permissions of the relevant EPM services.</p><h3>3. Practical Example: Synchronizing Product Metadata from EDM to Planning</h3><p>Let’s consider a business scenario in which the Product dimension is managed in EDM and consumed by an EPBCS Planning application.</p><p>The source hierarchy currently contains:</p><ul><li>Total Product</li><li>Electronics</li><li>Laptop</li><li>Desktop</li></ul><p>The business introduces a new product called Tablet, which must be added under Electronics.</p><p>Instead of manually updating the hierarchy in Planning, the organization can use an automated synchronization process.</p><h3>Step 1: Update and approve metadata in EDM</h3><p>Create the new member in the appropriate EDM viewpoint and submit the change through the organization’s configured governance process.</p><p>The change should be validated and approved before it is distributed to the target application.</p><h3>Step 2: Export the dimension</h3><p>Using EPM Automate in the EDM environment, export the Product dimension:</p><pre>epmautomate exportdimension &quot;Corporate Planning&quot; Product edmc-product.csv</pre><p>In this example:</p><ul><li>Corporate Planning is the EDM application name.</li><li>Product is the dimension to export.</li><li>edmc-product.csv is the exported file name.</li></ul><p>Use the actual application and dimension names configured in your environment.</p><h3>Step 3: Transfer the metadata file</h3><p>After exporting the dimension, authenticate to the target Planning environment and transfer the file from the EDM instance.</p><p>The following command illustrates the transfer:</p><pre>epmautomate copyfilefrominstance edmc-product.csv EDM_USER PASSWORD_FILE EDM_URL EDM_IDENTITY_DOMAIN edmc-product.csv</pre><p>Replace the placeholders with the appropriate EDM user, encrypted password file, source URL, and identity domain.</p><p>Use secure authentication practices rather than storing plain-text credentials in scripts.</p><h3>Step 4: Import the metadata into Planning</h3><p>Create and configure a saved Import Metadata job in Planning. The job should reference the appropriate metadata file and specify the required import settings.</p><p>Then execute the saved job:</p><pre>epmautomate importmetadata Import_EDMC_Product</pre><p>Here, Import_EDMC_Product is the name of the saved Planning metadata import job.</p><p>The job configuration determines how the metadata is imported and whether a database refresh is triggered after a successful import.</p><h3>Step 5: Validate the results</h3><p>After the job completes, verify that the new Product member exists in Planning under the correct parent.</p><p>Also review the job status, rejected records, and any relevant hierarchy or property changes.</p><p>The expected hierarchy is now:</p><ul><li>Total Product</li><li>Electronics</li><li>Laptop</li><li>Desktop</li><li>Tablet</li></ul><p>This example demonstrates the core synchronization process: export, transfer, import, and validate.</p><p>For production use, automate these steps through a controlled script or orchestration process that handles authentication, job completion, failures, and logging.</p><h3>4. Automating Metadata Synchronization Reliably</h3><p>A successful metadata import does not automatically guarantee that the overall synchronization process is complete. A production-ready solution should include operational controls.</p><h3>Validate before importing</h3><p>Before loading metadata, verify that:</p><ul><li>The export file was generated successfully.</li><li>The expected dimension and file name are correct.</li><li>Required member properties are populated.</li><li>Parent members exist where required.</li><li>The metadata changes are approved for the target environment.</li></ul><p>Where possible, perform validation before the import rather than relying entirely on the target application’s import errors.</p><h3>Monitor job completion</h3><p>Automation should check whether the metadata import completed successfully instead of assuming that launching the job means it succeeded.</p><p>For REST API-based implementations, Oracle’s Import Metadata API supports executing a saved metadata import job. It also supports options such as specifying an import ZIP file, overriding the database refresh setting, and generating error files.</p><p>Refer to the <a href="https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/prest/import_metadata.html">Oracle Import Metadata REST API documentation</a> for the supported parameters and requirements.</p><h3>Capture rejected records</h3><p>Metadata imports can fail for individual records because of invalid properties, missing parents, or other metadata inconsistencies.</p><p>Configure an error file when appropriate, then review rejected records and resolve the underlying issues. Oracle supports error files containing failed metadata records for each applicable dimension.</p><h3>Manage database refreshes carefully</h3><p>Dimension changes may require a database refresh before the updated metadata is fully reflected in the relevant cube structure.</p><p>However, a refresh can affect application availability and should be managed as part of the deployment process.</p><p>For production environments, schedule refreshes appropriately, coordinate with users, and avoid unnecessary refreshes after every small change when a controlled batch process is more suitable.</p><h3>5. Best Practices for Metadata Synchronization</h3><p>The following practices help make synchronization more reliable and maintainable.</p><p><strong>1. Establish a source of truth.</strong> Decide which system owns each dimension. Avoid allowing unrelated systems to independently control the same hierarchy without a defined governance process.</p><p><strong>2. Separate development, test, and production deployments.</strong> Validate metadata changes in lower environments before promoting them to production.</p><p><strong>3. Use controlled import jobs.</strong> Maintain clear job names and explicit import configurations for each dimension or group of dimensions.</p><p><strong>4. Protect credentials.</strong> Use supported secure authentication methods and restrict access to scripts, password files, and automation accounts.</p><p><strong>5. Log every execution.</strong> Record the source, target, dimension, execution time, job result, and any errors so administrators can investigate failures.</p><p><strong>6. Avoid unintended deletions.</strong> Review import settings carefully, particularly options that clear existing members. Confirm the intended impact before executing a destructive operation.</p><p><strong>7. Validate dependent artifacts.</strong> Metadata changes can affect forms, business rules, member formulas, reports, mappings, and security assignments. Validate the relevant dependencies after synchronization.</p><p><strong>8. Design for recovery.</strong> Keep appropriate exports or backups and define a recovery procedure for unsuccessful deployments.</p><h3>Conclusion</h3><p>Automating metadata synchronization in Oracle EPM Planning reduces repetitive administrative work and helps maintain consistent dimension structures across applications and environments.</p><p>EPM Automate is a practical choice for scripted export and import workflows, while EDM provides stronger centralized governance for organizations managing enterprise dimensions across multiple systems. REST APIs and Groovy can extend these processes by integrating synchronization into broader automation workflows.</p><p>The most reliable approach combines automation with validation, controlled deployments, error handling, and appropriate database refresh management.</p><p><strong>The key takeaway:</strong> Metadata synchronization should be treated as a controlled deployment process, not just a file transfer. A well-designed process helps ensure that dimension changes reach the right Planning environment accurately, consistently, and safely.</p><h3>References</h3><ul><li><a href="https://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/epm/EDMC/EPMautomate/index.html">Oracle: Integrating Dimension Metadata from EDM Cloud with Planning Using EPM Automate</a></li><li><a href="https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/prest/import_metadata.html">Oracle: Import Metadata REST API</a></li><li><a href="https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/prest/planning_rest_apis.html">Oracle: Planning REST APIs</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8cce55f343b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handling Workforce Planning Calculations for New Hires, Transfers, and Terminations in Oracle EPBCS]]></title>
            <link>https://medium.com/@SantoshHakki/handling-workforce-planning-calculations-for-new-hires-transfers-and-terminations-in-oracle-epbcs-a2657caf918f?source=rss-2bb10aff3f82------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2657caf918f</guid>
            <dc:creator><![CDATA[Santosh Hakki]]></dc:creator>
            <pubDate>Thu, 15 Oct 2026 17:16:57 GMT</pubDate>
            <atom:updated>2026-10-15T17:16:57.241Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Workforce Planning is one of the most important modules in Oracle Enterprise Planning and Budgeting Cloud Service (EPBCS). It helps organizations forecast employee-related expenses, including salaries, benefits, taxes, and other workforce costs.</p><p>However, workforce planning becomes challenging when employees join, transfer between departments, receive salary changes, or leave the organization during the planning year.</p><p>If these events are not handled correctly, organizations may overstate or understate personnel expenses. In this blog, we will explore how new hires, employee transfers, and terminations affect Workforce Planning calculations and how to design reliable planning logic in Oracle EPBCS.</p><h3>1. Managing New Hires</h3><p>When an organization plans to hire a new employee, salary expenses should generally begin from the employee’s planned start date rather than the beginning of the fiscal year.</p><p>For example, assume an organization plans to hire an employee with an annual salary of $72,000 in April. If the fiscal year runs from January through December, the employee should generally incur salary expenses for nine months, from April through December.</p><p>The basic calculation is:</p><p><strong>Monthly salary</strong></p><p>Annual Salary / 12</p><p><strong>Planned salary expense</strong></p><p>Monthly Salary × Eligible Months</p><p>For this example:</p><ul><li>Annual salary: $72,000</li><li>Monthly salary: $6,000</li><li>Start month: April</li><li>Eligible months: 9</li><li>Planned salary expense: $54,000</li></ul><p>In EPBCS Workforce Planning, this behavior can be supported using employee or requisition start dates, salary assumptions, and the application’s configured workforce calculation logic.</p><p>When implementing this scenario, consider whether the organization calculates salary based on whole months, actual days, or another payroll convention.</p><h3>2. Managing Employee Transfers</h3><p>Employee transfers introduce another challenge because the employee may move between departments, entities, cost centers, or positions during the planning year.</p><p>Consider an employee with an annual salary of $84,000 who transfers from Department A to Department B effective July 1.</p><p>The annual salary is equivalent to $7,000 per month.</p><p>PeriodDepartmentMonthly salary expenseJanuary–JuneDepartment A$7,000July–DecemberDepartment B$7,000</p><p>The annual expense remains $84,000, assuming there is no salary change. However, the expense allocation changes between departments.</p><p>A correct implementation must ensure that the employee’s expenses are allocated to the appropriate department before and after the transfer date.</p><p>Key considerations include:</p><ul><li>Effective date of the transfer.</li><li>Whether the employee’s salary changes.</li><li>Whether the employee’s entity, cost center, or position changes.</li><li>Whether historical periods should retain their original allocation.</li><li>Whether headcount reporting should reflect the employee in only one department for each period.</li></ul><p>Avoid simply copying the employee’s annual salary into both departments for the entire year. Doing so can duplicate the planned expense and headcount.</p><h3>3. Managing Employee Terminations</h3><p>Terminations should stop future workforce expenses from the appropriate effective date, based on the organization’s planning and payroll policies.</p><p>For example, an employee earns $60,000 annually and has a planned termination date of September 30.</p><p>Assuming salary is incurred through September, the calculation would be:</p><ul><li>Annual salary: $60,000</li><li>Monthly salary: $5,000</li><li>Eligible months: 9</li><li>Planned salary expense: $45,000</li></ul><p>The remaining three months would not include regular salary expense for that employee under this simplified scenario.</p><p>Actual implementations may also need to account for severance, notice periods, leave payouts, bonuses, and benefits that continue after termination.</p><p>In EPBCS, the termination date and the configured workforce calculation assumptions should determine when the employee’s recurring expenses stop.</p><h3>4. Designing Reliable Workforce Calculation Logic</h3><p>A robust Workforce Planning implementation should account for employee lifecycle events rather than treating each employee as a static annual salary record.</p><p>A useful conceptual model is:</p><p><strong>Eligible expense = Monthly salary × Eligible months</strong></p><p>Eligible months depend on the employee’s start date, termination date, fiscal calendar, and the organization’s payroll conventions.</p><p>For a simplified whole-month model, the following pseudocode illustrates the approach:</p><pre>For each employee and planning month:<br>If planning month is before start month:<br>        Salary expense = 0<br>    Else if planning month is after termination month:<br>        Salary expense = 0<br>    Else:<br>        Salary expense = Annual salary / 12</pre><p>This is illustrative logic, not a complete EPBCS calculation script. Production rules must handle the organization’s date conventions, transfers, salary changes, employee status, and applicable Workforce configuration.</p><p>For example, if an employee starts halfway through a month, the organization must decide whether to calculate a full month or prorate salary by eligible days.</p><h3>5. Where Groovy Can Help</h3><p>Groovy business rules can complement Workforce Planning by validating inputs and enforcing business-specific requirements before data is saved or calculations are launched.</p><p>Examples include:</p><ul><li>Checking whether a planned hire has a valid start date.</li><li>Validating that termination dates are consistent with employee lifecycle assumptions.</li><li>Identifying missing salary or position information.</li><li>Warning users when an employee appears to be allocated to multiple departments for the same period.</li><li>Restricting calculations to the relevant planning periods when the business process supports it.</li></ul><p>For example, a form-level validation rule could check whether required employee information is present before allowing a user to proceed.</p><p>The exact implementation depends on the form design, available metadata, and the supported Groovy APIs. Workforce calculations should use the appropriate application configuration and calculation logic rather than relying on validation alone.</p><h3>6. Best Practices</h3><p>When designing workforce calculations in EPBCS, keep these practices in mind:</p><ol><li><strong>Define date conventions clearly.</strong> Confirm whether start and termination dates are inclusive and how partial months are handled.</li><li><strong>Avoid duplicated expenses.</strong> Ensure transfers change allocations instead of duplicating the employee’s salary.</li><li><strong>Separate salary changes from transfers.</strong> A department transfer and a compensation change are different business events.</li><li><strong>Test boundary periods.</strong> Test employees starting or leaving at the beginning, middle, and end of a fiscal period.</li><li><strong>Validate data before calculation.</strong> Missing dates, salary assumptions, and position details can lead to misleading forecasts.</li><li><strong>Reconcile the results.</strong> Compare employee-level calculations with department-level expenses and total workforce costs.</li></ol><h3>Conclusion</h3><p>New hires, employee transfers, and terminations are essential scenarios in workforce forecasting. Handling them correctly helps organizations produce more accurate salary forecasts, headcount reports, and departmental expense allocations.</p><p>Oracle EPBCS provides Workforce Planning capabilities that can be configured to support these scenarios. By combining sound workforce configuration, clear date conventions, effective validation, and carefully tested calculation logic, consultants can build a more reliable and maintainable workforce planning solution.</p><p>The key is to model employee lifecycle changes accurately so that workforce expenses reflect when employees actually contribute to the organization’s planned workforce.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2657caf918f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Substitution Variables Dynamically in Oracle EPM Planning with Groovy]]></title>
            <link>https://medium.com/@SantoshHakki/using-substitution-variables-dynamically-in-oracle-epm-planning-with-groovy-e1c838111958?source=rss-2bb10aff3f82------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1c838111958</guid>
            <dc:creator><![CDATA[Santosh Hakki]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 12:33:19 GMT</pubDate>
            <atom:updated>2026-10-09T12:33:19.604Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building flexible and maintainable business rules without hardcoding application values</h3><p>In Oracle EPM Planning, many business rules depend on values that change regularly, such as the current fiscal year, forecast period, scenario, or version.</p><p>One common approach is to hardcode these values directly into the rule. This may work initially, but when the planning cycle changes, developers may need to update multiple business rules.</p><p>For example, a rule written for FY27 may need to be updated for FY28. If the year is hardcoded in several places, maintaining the application becomes more difficult.</p><p>This is where <strong>substitution variables</strong> become useful.</p><p>When combined with Groovy, substitution variables allow us to retrieve application settings dynamically and use them to control business logic, generate calculation scripts, and simplify ongoing maintenance.</p><p>In this article, we’ll explore how to retrieve substitution variables in Groovy and use them in practical EPBCS scenarios.</p><h3>What Are Substitution Variables?</h3><p>Substitution variables are application-level or cube-level placeholders for values that may change over time. They are commonly used for current periods, years, and other planning settings.</p><p>For example, an application might contain these variables:</p><p>VariableExample ValueCurYearFY27CurMnthOctFcstScenarioForecastPlanVersionWorking</p><p>When the planning cycle changes, an administrator can update the variable value instead of modifying every rule that uses it.</p><p>Oracle EPM supports retrieving substitution variable values through its Groovy scripting APIs.</p><h3>Retrieving a Substitution Variable Using Groovy</h3><p>The Application API provides the getSubstitutionVariableValue() method to retrieve the effective value of a substitution variable.</p><p>For example:</p><pre>String currentYear = operation.application.getSubstitutionVariableValue(&quot;CurYear&quot;)<br>println &quot;Current Planning Year: ${currentYear}&quot;</pre><p>If CurYear is configured as FY27, the variable returns FY27.</p><p>Notice that we pass the variable name without the ampersand (&amp;) when calling the Groovy API.</p><p>This is different from referencing a substitution variable directly in an Essbase calculation script.</p><p>Oracle documentation: <a href="https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/groov/oracle/epm/api/model/Application.html">Application Groovy API</a>.</p><h3>Example 1: Dynamically Determining the Planning Year</h3><p>Imagine a business rule that calculates forecast expenses for the current planning year.</p><p>Instead of hardcoding the year, retrieve it from the application:</p><pre>String currentYear =boperation.application.getSubstitutionVariableValue(&quot;CurYear&quot;)<br>if (currentYear == null || currentYear.trim().isEmpty()) {<br>    throw new IllegalArgumentException(<br>        &quot;Substitution variable CurYear is not configured.&quot;<br>    )<br>}<br>String calcScript = &quot;&quot;&quot;<br>    FIX(&quot;${currentYear}&quot;, &quot;Forecast&quot;, &quot;Working&quot;)<br>        &quot;Forecast Expense&quot; = &quot;Units&quot; * &quot;Rate&quot;;<br>    ENDFIX<br>&quot;&quot;&quot;<br>println calcScript</pre><p>This example demonstrates how a substitution variable can be used to construct a calculation script dynamically.</p><p>If the value of CurYear changes from FY27 to FY28, the generated calculation uses the new year without requiring a code change.</p><p><strong>Important:</strong> This snippet demonstrates script generation. To execute the generated calculation, the rule must invoke the appropriate supported EPM calculation execution method. The account and member names must also match the application’s outline.</p><h3>Example 2: Using Multiple Substitution Variables</h3><p>In real implementations, a rule may depend on several changing values.</p><p>For example, we may maintain variables for the current year and forecast scenario.</p><pre>def app = operation.application<br>String currentYear =<br>    app.getSubstitutionVariableValue(&quot;CurYear&quot;)<br>String forecastScenario =<br>    app.getSubstitutionVariableValue(&quot;FcstScenario&quot;)<br>if (!currentYear || !forecastScenario) {<br>    throw new IllegalArgumentException(<br>        &quot;Required planning substitution variables are missing.&quot;<br>    )<br>}<br>println &quot;Year: ${currentYear}&quot;<br>println &quot;Scenario: ${forecastScenario}&quot;</pre><p>This approach is useful when multiple rules depend on common planning settings.</p><p>Instead of repeating hardcoded values, the application maintains a central configuration that developers can reference.</p><h3>Example 3: Reading Cube-Level Substitution Variables</h3><p>Oracle EPM also supports substitution variables defined at the cube level.</p><p>This is useful when different cubes require different values for the same variable.</p><p>For example, the current year may be maintained differently across planning cubes.</p><p>You can retrieve a value from a cube using the Cube API:</p><pre>def cube = operation.application.getCube(&quot;Plan1&quot;)<br>String currentYear = cube.getSubstitutionVariableValue(&quot;CurYear&quot;)<br>println &quot;Cube Planning Year: ${currentYear}&quot;</pre><p>The cube name must match a valid cube in the application.</p><p>The Cube API also provides methods for checking whether a substitution variable exists and for retrieving values from the derived list of application- and cube-level variables.</p><p>Refer to the <a href="https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/groov/oracle/epm/api/model/Cube.html">Oracle Cube Groovy API</a> for the available methods.</p><h3>Example 4: Using Substitution Variables in a Reusable Rule</h3><p>One benefit of substitution variables is that they help reduce repeated hardcoding across business rules.</p><p>Consider a rule that determines which year to use for a planning calculation.</p><p>Instead of embedding the year in the logic, we can retrieve it dynamically:</p><pre>def app = operation.application<br>String currentYear =<br>    app.getSubstitutionVariableValue(&quot;CurYear&quot;)<br>if (!currentYear) {<br>    throw new IllegalArgumentException(<br>        &quot;CurYear must have a valid value.&quot;<br>    )<br>}<br>// Use currentYear in the calculation logic.<br>println &quot;Processing planning year: ${currentYear}&quot;</pre><p>This pattern can be incorporated into reusable Groovy templates.</p><p>For example, a common utility function could retrieve required substitution variables and validate their values before the main calculation begins.</p><p>For larger applications, this makes business rules easier to maintain and reduces the chance of using outdated planning periods.</p><h3>Best Practices to Consider</h3><p>When using substitution variables in Groovy, I recommend keeping a few practical considerations in mind.</p><p><strong>1. Avoid hardcoding frequently changing values.</strong></p><p>Use substitution variables for values such as current year and forecast period when they are intended to be centrally managed.</p><p><strong>2. Validate required variables.</strong></p><p>A missing or blank value should be handled explicitly rather than allowing the rule to continue with an invalid calculation scope.</p><p><strong>3. Understand application and cube scope.</strong></p><p>Confirm whether a variable is maintained at the application level or at the cube level. Use the appropriate API for the required behavior.</p><p><strong>4. Use clear naming conventions.</strong></p><p>Names such as CurYear and FcstScenario make the purpose of each variable easier to understand.</p><p><strong>5. Test when values change.</strong></p><p>Test the rule after updating substitution variables to confirm that the generated calculation uses the expected year, period, or scenario.</p><p><strong>6. Be careful when building dynamic calculation scripts.</strong></p><p>Validate member values and ensure the generated script follows the syntax required by Essbase. Avoid inserting unvalidated text into a calculation script.</p><h3>Final Thoughts</h3><p>Substitution variables may seem like a small feature in Oracle EPM Planning, but they play an important role in building flexible applications.</p><p>When combined with Groovy, they allow developers to retrieve planning settings dynamically, construct calculation scripts, and reduce dependencies on hardcoded values.</p><p>For me, the key principle is simple: <strong>business rules should adapt to changes in the planning cycle without requiring unnecessary code modifications.</strong></p><p>By using substitution variables thoughtfully, EPM developers can build solutions that are easier to maintain, more reusable, and better suited to changing business requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1c838111958" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Groovy to Automate Smart Push in Oracle EPM Planning]]></title>
            <link>https://medium.com/@SantoshHakki/using-groovy-to-automate-smart-push-in-oracle-epm-planning-2ec1c3839363?source=rss-2bb10aff3f82------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ec1c3839363</guid>
            <dc:creator><![CDATA[Santosh Hakki]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 14:33:22 GMT</pubDate>
            <atom:updated>2026-10-08T14:33:22.606Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dynamically moving Planning data between cubes based on user actions</h3><p>Oracle EPM Planning applications often contain multiple cubes. A user may enter or modify data in one cube and that data may need to be transferred to another cube for reporting, analysis, or downstream calculations.</p><p><strong>Smart Push</strong> provides a convenient way to move data between cubes without requiring users to manually launch a data movement operation.</p><p>But there are situations where we don’t want Smart Push to run every time.</p><p>For example:</p><ul><li>Only push data when the user changes relevant inputs.</li><li>Push data only for a particular scenario.</li><li>Push only the employees modified by the planner.</li><li>Run Smart Push after a specific calculation.</li><li>Dynamically control which data should be transferred.</li></ul><p>This is where Groovy becomes useful.</p><p>Instead of treating Smart Push as a completely manual operation, we can use Groovy to make the process <strong>context-aware and automated</strong>.</p><h3>What Is Smart Push?</h3><p>Smart Push is an EPM Planning capability used to move data from a source cube to a target cube.</p><p>A typical example could be:</p><pre>Planning Form<br>     ↓<br>OEP_WFP<br>     ↓<br>Smart Push<br>     ↓<br>Reporting Cube</pre><p>A planner enters Workforce data into the source cube, and Smart Push moves the relevant data into the reporting or reporting-related cube.</p><p>The challenge is deciding <strong>when the push should happen and what data should be pushed</strong>.</p><p>A Groovy business rule can provide that additional layer of control.</p><p>Oracle exposes Smart Push functionality through the Groovy DataMap API, including methods such as execute() and execute(Map) for running a data map.</p><h3>A Simple Workforce Example</h3><p>Let’s consider a Workforce Planning application.</p><p>A planner updates employee information in:</p><pre>OEP_WFP</pre><p>The organization also has a reporting cube:</p><pre>OEP_REP</pre><p>The business requirement is:</p><blockquote><strong>When the planner changes Workforce data and saves the form, automatically push the relevant data to the reporting cube.</strong></blockquote><p>Instead of asking the user to:</p><ol><li>Save the form.</li><li>Click Smart Push.</li><li>Select the required operation.</li><li>Wait for the push to complete.</li></ol><p>we can automate the process through Groovy.</p><h3>Accessing a Data Map</h3><p>In Groovy, we can retrieve a Data Map from the application using its name.</p><p>For example:</p><pre>def dataMap = operation.application.getDataMap(&quot;Workforce to Reporting&quot;)</pre><p>The Data Map name must match the Data Map configured in the Planning application.</p><p>Once we have the Data Map, we can execute it:</p><pre>dataMap.execute()</pre><p>A basic Groovy rule can therefore look like:</p><pre>def dataMap = operation.application.getDataMap(&quot;Workforce to Reporting&quot;)<br>dataMap.execute()</pre><p>This is the simplest form of Smart Push automation.</p><p>But the real benefit of Groovy comes when we make the push dynamic.</p><h3>Making Smart Push Conditional</h3><p>Suppose we only want to execute Smart Push when the user changes Workforce data.</p><p>We can use the Planning grid and check for edited cells.</p><p>For example:</p><pre>operation.grid.dataCellIterator().each { cell -&gt;<br>if (cell.edited) {<br>        hasChanges = true<br>    }<br>}<br>if (hasChanges) {<br>def dataMap = operation.application.getDataMap(&quot;Workforce to Reporting&quot;)<br>dataMap.execute()<br>}</pre><p>The logic is straightforward:</p><pre>User changes data<br>       ↓<br>Groovy checks edited cells<br>       ↓<br>Changes found?<br>   ↙          ↘<br> Yes           No<br>  ↓             ↓<br>Smart Push    Do nothing</pre><p>This prevents the Data Map from being executed when there are no relevant changes.</p><h3>Restricting the Push to Relevant Data</h3><p>The next step is making the push more targeted.</p><p>Suppose the planner changes only a particular department.</p><p>Instead of pushing the entire form, we may want to push only that department.</p><p>Oracle’s Groovy DataMap API supports passing runtime options when executing a Data Map. This can be used to provide runtime context to the operation.</p><p>For example:</p><pre>def dataMap =<br>    operation.application.getDataMap(<br>        &quot;Workforce to Reporting&quot;<br>    )<br>dataMap.execute(<br>    [&quot;Department&quot;: &quot;Finance&quot;]<br>)</pre><p>The exact runtime dimension and member names depend on how the Data Map is configured.</p><p>This is an important concept:</p><blockquote><strong>Groovy can determine the context first and then execute Smart Push using that context.</strong></blockquote><h3>Combining Modified Cells with Smart Push</h3><p>This is where Smart Push automation becomes more interesting.</p><p>Suppose a planner modifies employees in different departments.</p><p>We can identify the affected departments from the edited cells.</p><p>For example:</p><pre>Set&lt;String&gt; departments = []<br>operation.grid.dataCellIterator().each { cell -&gt;<br>    if (cell.edited) {<br>        def department =<br>            cell.getMemberName(&quot;Department&quot;)<br>        departments.add(department)<br>    }<br>}</pre><p>Now we have a set of departments that were actually modified.</p><p>We could then use those members to determine the scope of the push.</p><p>Conceptually:</p><pre>Edited cells<br>     ↓<br>Identify Departments<br>     ↓<br>Remove duplicates<br>     ↓<br>Build Smart Push scope<br>     ↓<br>Execute Data Map</pre><p>This approach is particularly useful when users work with large Planning forms but normally modify only a small portion of the data.</p><h3>Smart Push After a Calculation</h3><p>Another useful pattern is combining a calculation with Smart Push.</p><p>Imagine the process is:</p><pre>User enters FTE<br>       ↓<br>Calculate Salary Expense<br>       ↓<br>Smart Push calculated data<br>       ↓<br>Reporting Cube</pre><p>The Groovy rule can act as the orchestration layer.</p><p>For example:</p><pre>// Calculation logic executes here<br>// Smart Push after calculation<br>def dataMap = operation.application.getDataMap(&quot;Workforce to Reporting&quot;)<br>dataMap.execute()</pre><p>This ensures that the reporting cube receives the calculated result rather than receiving the data before the calculation has completed.</p><p>This type of orchestration is one of the areas where Groovy can provide value beyond a simple manual Smart Push operation.</p><h3>Using execute(Map) Carefully</h3><p>When passing runtime parameters to a Data Map, it is important to understand how those parameters relate to the Data Map configuration.</p><p>For example:</p><pre>def pushOptions = [&quot;Scenario&quot;: &quot;Plan&quot;,&quot;Version&quot;: &quot;Working&quot;]<br>dataMap.execute(pushOptions)</pre><p>The dimensions and members used here need to correspond to the Data Map and the Planning application’s dimensionality.</p><p>I prefer keeping this logic explicit rather than hardcoding large amounts of dimensional logic throughout the Groovy script.</p><p>For example:</p><pre>def scenario = &quot;Plan&quot;<br>def version  = &quot;Working&quot;<br>def pushOptions = [<br>    &quot;Scenario&quot;: scenario,<br>    &quot;Version&quot;: version<br>]<br>dataMap.execute(pushOptions)</pre><p>This makes the rule easier to maintain when business requirements change.</p><h3>When Should We Automate Smart Push?</h3><p>I would consider Groovy-based Smart Push automation when:</p><ul><li>Users frequently forget to execute Smart Push manually.</li><li>Smart Push should happen only after a specific calculation.</li><li>The push should occur only when data changes.</li><li>The target scope needs to be determined dynamically.</li><li>Different users or scenarios require different push behavior.</li><li>The application contains a complex form-processing workflow.</li></ul><p>However, automation should not be added just because it is technically possible.</p><p>If a simple Smart Push button already satisfies the business requirement, keeping the process simple may be the better design.</p><h3>Performance Considerations</h3><p>Smart Push automation also needs to be designed carefully.</p><p>A common mistake would be to execute Smart Push every time a user saves a form, regardless of whether relevant data changed.</p><p>For example:</p><pre>dataMap.execute()</pre><p>on every save may create unnecessary data movement.</p><p>A better pattern is:</p><pre>Check changes<br>     ↓<br>Relevant changes?<br>     ↓<br>Yes → Smart Push<br>No  → Skip</pre><p>This is particularly important for large applications.</p><p>Another consideration is the scope of the Data Map itself.</p><p>A well-designed Data Map combined with an appropriate runtime scope can be much more efficient than repeatedly pushing a broad data set.</p><h3>Smart Push vs Groovy: Who Does What?</h3><p>I don’t see Groovy as a replacement for Smart Push.</p><p>Instead:</p><p><strong>Smart Push handles the data movement.</strong></p><p><strong>Groovy controls when and how it should happen.</strong></p><p>This separation is useful when designing EPM solutions.</p><p>For example:</p><p>RequirementRecommended ApproachUser manually pushes dataSmart PushAlways push after a form actionSmart Push + GroovyPush only when data changesGroovy + Smart PushDynamically determine scopeGroovy + Data MapPush after calculationGroovy orchestrationSimple static data movementSmart Push alone</p><h3>A Practical Design Pattern</h3><p>A pattern I have found useful is:</p><pre>Planning Form<br>                   ↓<br>          User modifies data<br>                   ↓<br>             Groovy Rule<br>                   ↓<br>       Check modified cells<br>                   ↓<br>        Validate requirements<br>                   ↓<br>       Determine push context<br>                   ↓<br>             Data Map<br>                   ↓<br>             Smart Push<br>                   ↓<br>             Target Cube</pre><p>The important point is that Groovy doesn’t need to perform the actual data movement itself.</p><p>It can simply make the decision about <strong>when the Data Map should execute and what context should be used</strong>.</p><h3>Best Practices</h3><p>When implementing Smart Push with Groovy, I would recommend:</p><h3>1. Use meaningful Data Map names</h3><p>Instead of:</p><pre>DM1<br>DM2<br>DM3</pre><p>prefer:</p><pre>Workforce to Reporting<br>Workforce to Finance<br>Plan to Forecast</pre><h3>2. Avoid unnecessary pushes</h3><p>Check whether relevant data was actually changed.</p><h3>3. Keep the Data Map configuration clean</h3><p>Don’t move every possible dimension if the target only requires a subset.</p><h3>4. Separate calculation and push logic</h3><p>Make it clear whether Groovy is calculating data, validating data, executing a Data Map, or orchestrating multiple operations.</p><h3>5. Test large forms</h3><p>A solution that works well with 50 employees may behave differently with thousands of employees.</p><h3>6. Handle errors appropriately</h3><p>If the Data Map fails, the user should receive a meaningful message rather than a generic failure.</p><h3>Final Thoughts</h3><p>Smart Push is already a powerful feature in Oracle EPM Planning.</p><p>Groovy makes it possible to take the next step and make Smart Push <strong>context-aware</strong>.</p><p>Instead of:</p><blockquote><strong>“The user has to remember to push the data.”</strong></blockquote><p>we can design the application around:</p><blockquote><strong>“The system understands when the data needs to be pushed.”</strong></blockquote><p>For example, a Workforce Planning solution can detect that a planner modified employee data, calculate the required values, and then automatically push the relevant information to a reporting cube.</p><p>The important design principle is not to automate everything.</p><p>It is to automate the right things.</p><p>When Smart Push, Data Maps, Planning grids, and Groovy are used together thoughtfully, they can create a smoother user experience while reducing unnecessary manual steps in an Oracle EPM Planning application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ec1c3839363" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Processing Only Modified Cells in Oracle EPM Planning Using Groovy]]></title>
            <link>https://medium.com/@SantoshHakki/processing-only-modified-cells-in-oracle-epm-planning-using-groovy-ebb7012b7c8a?source=rss-2bb10aff3f82------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebb7012b7c8a</guid>
            <dc:creator><![CDATA[Santosh Hakki]]></dc:creator>
            <pubDate>Wed, 07 Oct 2026 16:05:13 GMT</pubDate>
            <atom:updated>2026-10-07T16:05:13.909Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical approach to identifying changed Planning data and reducing unnecessary calculations.</p><p>One of the useful capabilities of Groovy in Oracle EPM Planning is the ability to identify which cells a user actually changed on a Planning form.</p><p>This may sound like a small feature, but it can make a significant difference when working with large forms.</p><p>Imagine a Planning form containing hundreds of rows and multiple periods. A user changes only three cells and clicks <strong>Save</strong>.</p><p>Do we really need to process everything on the form?</p><p>In many scenarios, the answer is <strong>no</strong>.</p><p>Instead, we can identify the modified cells and perform our logic only where it is required.</p><p>Oracle’s Groovy APIs provide the edited property on DataCell for this purpose. Oracle also documents modified-data processing as an important use case for Groovy business rules.</p><h3>A Simple Business Scenario</h3><p>Let’s consider a Workforce Planning form containing:</p><ul><li>Employee</li><li>Department</li><li>Salary</li><li>FTE</li><li>Salary Expense</li></ul><p>A planner changes the FTE for a few employees.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*60CrVVELPMUL3Tb5bpqm_Q.png" /></figure><p>Only Employee 102 and Employee 104 were changed.</p><p>Our requirement is:</p><blockquote>Recalculate Salary Expense only for employees whose relevant input values were modified.</blockquote><p>This is a good use case for modified-cell processing.</p><h3>Identifying Modified Cells</h3><p>The current Planning grid can be accessed through:</p><pre>operation.grid</pre><p>We can iterate through the grid and check whether a cell was edited.</p><p>A simple example is:</p><pre>operation.grid.dataCellIterator().each { cell -&gt;</pre><pre>    if (cell.edited) {<br>        println &quot;Modified cell: ${cell}&quot;<br>    }</pre><pre>}</pre><p>The important part is:</p><pre>cell.edited</pre><p>If the user changed the value of that cell during the current form operation, the property can be used to identify it.</p><p>This allows the rule to distinguish between:</p><pre>Existing data</pre><p>and:</p><pre>Data changed by the user</pre><h3>Filtering for a Specific Account</h3><p>In a real application, we usually don’t want to process every modified cell.</p><p>Suppose our form contains many accounts, but only changes to FTE should trigger our calculation.</p><p>We can narrow the iterator:</p><pre>operation.grid.dataCellIterator(&#39;FTE&#39;).each { cell -&gt;<br>if (cell.edited) {<br>        println &quot;FTE was modified.&quot;<br>    }<br>}</pre><p>Now the rule is focused on the cells that matter to our requirement.</p><p>This is a simple but important performance principle:</p><blockquote><strong>Don’t process data that doesn’t need processing.</strong></blockquote><h3>Using the Modified Cell to Find Related Data</h3><p>Now let’s make the example more useful.</p><p>When FTE changes, we want to retrieve the corresponding Salary and Salary Expense cells.</p><p>The DataCell API provides crossDimCell() to retrieve another cell from the current grid at a related intersection.</p><p>For example:</p><pre>operation.grid.dataCellIterator(&#39;FTE&#39;).each { fteCell -&gt;<br>if (!fteCell.edited) {<br>        return<br>    }<br>    def salaryCell =<br>        fteCell.crossDimCell(&#39;Salary&#39;)<br>    def expenseCell =<br>        fteCell.crossDimCell(&#39;Salary Expense&#39;)<br>}</pre><p>We can then calculate:</p><pre>Salary Expense = Salary × FTE</pre><h3>A Complete Example</h3><p>Here is a simple implementation:</p><pre>operation.grid.dataCellIterator(&#39;FTE&#39;).each { fteCell -&gt;<br>if (!fteCell.edited) {<br>        return<br>    }<br>    def salaryCell =<br>        fteCell.crossDimCell(&#39;Salary&#39;)<br>    def expenseCell =<br>        fteCell.crossDimCell(&#39;Salary Expense&#39;)<br>    if (salaryCell == null || expenseCell == null) {<br>        return<br>    }<br>    double salary =<br>        salaryCell.isMissing() ? 0 : salaryCell.data<br>    double fte =<br>        fteCell.isMissing() ? 0 : fteCell.data<br>    double salaryExpense =<br>        salary * fte<br>    expenseCell.setForceEditable(true)<br>    expenseCell.setData(salaryExpense)<br>}</pre><p>The rule follows a simple pattern:</p><ol><li>Look at FTE cells.</li><li>Ignore cells that weren’t modified.</li><li>Find the corresponding Salary.</li><li>Find the Salary Expense cell.</li><li>Calculate the result.</li><li>Update only the required cell.</li></ol><p>Oracle’s DataCell API provides methods such as isMissing(), setData(), and setForceEditable() for working with Planning grid cells.</p><h3>Why Is This Useful?</h3><p>Consider a form containing:</p><pre>500 employees<br>×<br>12 months<br>×<br>several accounts</pre><p>A planner might modify only:</p><pre>Employee 101 → March FTE<br>Employee 204 → April FTE<br>Employee 315 → March FTE</pre><p>A broad calculation could process a much larger data set than necessary.</p><p>With modified-cell processing, Groovy can identify the relevant changes and restrict the subsequent logic to those intersections.</p><p>This approach can be especially useful when Groovy is being used to generate a targeted Essbase calculation. Oracle’s documentation provides examples of using modified cells to determine the scope of a calculation.</p><h3>Modified Cells + Essbase Calculation</h3><p>One of the patterns I find particularly useful is:</p><pre>User changes data<br>       ↓<br>Groovy identifies edited cells<br>       ↓<br>Determine affected members<br>       ↓<br>Build targeted calculation<br>       ↓<br>Essbase performs calculation</pre><p>For example, Groovy could collect the employees whose FTE changed:</p><pre>Set&lt;String&gt; employees = []<br>operation.grid.dataCellIterator(<br>    &#39;FTE&#39;,<br>    MemberNameType.ESSBASE_NAME<br>).each { cell -&gt;<br>    if (cell.edited) {<br>        employees &lt;&lt; cell.getMemberName(&quot;Employee&quot;)<br>    }<br>}</pre><p>The resulting employee list can then be used to construct a targeted calculation.</p><p>The exact implementation will depend on the application’s dimensions and calculation requirements, but the principle remains the same:</p><blockquote><strong>Use Groovy to determine what needs to be calculated instead of blindly calculating everything.</strong></blockquote><h3>A Few Things to Watch For</h3><p>Modified-cell processing is useful, but there are a few points I would consider during implementation.</p><h3>1. Check for null cells</h3><p>A crossDimCell() call may not find the requested intersection.</p><p>Always consider:</p><pre>if (salaryCell == null) {<br>    return<br>}</pre><h3>2. Handle missing values</h3><p>Don’t assume every input contains a numeric value.</p><pre>double salary = salaryCell.isMissing() ? 0 : salaryCell.data</pre><p>Whether missing should actually mean zero is a business decision.</p><h3>3. Don’t over-process</h3><p>If only FTE changes should trigger the calculation, don&#39;t iterate through every account unnecessarily.</p><h3>4. Test with suppression</h3><p>Forms can contain suppressed or unavailable intersections. Make sure the required cells are actually available in the grid.</p><h3>5. Test Smart View</h3><p>If the rule is associated with a form and is expected to work with Smart View submissions, test that scenario as well.</p><h3>When Should You Use Modified-Cell Processing?</h3><p>I would consider this approach when:</p><ul><li>The Planning form contains a significant amount of data.</li><li>Users normally change only a small portion of the form.</li><li>Calculations are triggered by specific input accounts.</li><li>The business logic needs to know what the user changed.</li><li>A targeted calculation can reduce unnecessary processing.</li></ul><p>It may not be necessary for a very small form where a simple calculation already performs well.</p><p>As with any performance technique, measure the actual application behavior rather than assuming that Groovy will automatically make a calculation faster.</p><h3>Final Thoughts</h3><p>For me, the biggest benefit of modified-cell processing is not the edited property itself.</p><p>It is the ability to make an EPM Planning rule <strong>context-aware</strong>.</p><p>Instead of saying:</p><blockquote>“Calculate everything.”</blockquote><p>we can build logic that says:</p><blockquote><strong>“The user changed these specific values, so process only the data affected by those changes.”</strong></blockquote><p>That small change in approach can make Groovy rules more targeted, easier to control, and potentially more efficient.</p><p>When combined with dataCellIterator(), crossDimCell(), validation, and targeted Essbase calculations, modified-cell processing becomes a useful technique for building smarter Oracle EPM Planning solutions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebb7012b7c8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Groovy vs Calculation Manager in Oracle EPM Planning: Choosing the Right Approach]]></title>
            <link>https://medium.com/@SantoshHakki/groovy-vs-calculation-manager-in-oracle-epm-planning-choosing-the-right-approach-7bbbdf113bf0?source=rss-2bb10aff3f82------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bbbdf113bf0</guid>
            <dc:creator><![CDATA[Santosh Hakki]]></dc:creator>
            <pubDate>Tue, 29 Sep 2026 05:16:40 GMT</pubDate>
            <atom:updated>2026-09-29T05:16:40.165Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical guide to deciding when to use traditional calculation rules, Groovy, or a combination of both.</p><p>In Oracle EPM Planning implementations, one question comes up quite often:</p><p><strong>“Should I build this requirement using a traditional Calculation Manager rule or Groovy?”</strong></p><p>After working with Planning applications, I have found that there isn’t one answer that fits every requirement.</p><p>Calculation Manager remains an important part of EPM Planning for building, validating, deploying, and managing business rules. At the same time, Groovy extends what we can do when the requirement needs dynamic processing, validation, or interaction with the Planning grid.</p><p>The key is understanding <strong>where each approach fits best</strong>.</p><h3>First: Groovy and Calculation Manager Are Not Really Competitors</h3><p>This is an important distinction.</p><p>A common misconception is:</p><blockquote><em>Calculation Manager vs Groovy</em></blockquote><p>In reality, they can work together.</p><p>Groovy business rules are also created and managed in <strong>Calculation Manager</strong>, and Oracle supports both traditional calculation-script rules and Groovy rules within the EPM environment. Rulesets can also contain a combination of calculation-script and Groovy rules.</p><p>So the real decision is usually:</p><blockquote><strong>Traditional calculation logic or Groovy-based logic?</strong></blockquote><h3>Where Traditional Calculation Rules Work Well</h3><p>Calculation Manager is a natural choice when the requirement is primarily a cube calculation.</p><p>For example:</p><pre>Revenue = Units * Price</pre><p>or:</p><pre>Gross Profit = Revenue - Cost</pre><p>or:</p><pre>Ending Balance = Beginning Balance + Additions - Reductions</pre><p>These are calculations that Essbase is designed to handle.</p><p>Calculation Manager provides components such as formulas, scripts, conditions, member ranges, templates, and runtime prompts for building business rules.</p><p>A simple rule could look conceptually like:</p><pre>FIX(&amp;Year, &amp;Scenario, &amp;Version)<br>    &quot;Revenue&quot; = &quot;Units&quot; * &quot;Price&quot;;<br>ENDFIX</pre><p>For straightforward calculations with clearly defined dimensional scope, there may be no reason to introduce Groovy.</p><h3>Where Groovy Adds More Flexibility</h3><p>Now consider a different requirement:</p><blockquote>“When a user changes only a few products on a Planning form, calculate revenue only for those products.”</blockquote><p>A traditional calculation rule may calculate a much larger area unless the calculation is carefully scoped.</p><p>Groovy can inspect the current Planning grid and determine which cells were actually modified.</p><p>Oracle specifically documents this capability: Groovy can identify edited cells and dynamically generate a focused Essbase calculation for only the affected data.</p><p>A simplified example is:</p><pre>Set&lt;String&gt; editedProducts = []<br>operation.grid.dataCellIterator(<br>    { DataCell cell -&gt; cell.edited },<br>    MemberNameType.ESSBASE_NAME<br>).each { cell -&gt;<br>    editedProducts &lt;&lt; cell.getMemberName(&quot;Product&quot;)<br>}</pre><p>The script can then use those members to create a targeted calculation.</p><p>This is one of the situations where Groovy can add significant value.</p><h3>Another Difference: Validation</h3><p>Traditional calculation scripts are primarily concerned with calculating data.</p><p>But sometimes the requirement is:</p><blockquote>“Don’t allow the user to save if the input is invalid.”</blockquote><p>For example:</p><pre>Discount % &gt; 100</pre><p>or:</p><pre>End Date &lt; Start Date</pre><p>or:</p><pre>Employee Type = Hourly<br>but Hourly Rate is missing</pre><p>Groovy can inspect the entered values and perform validations before the operation proceeds.</p><p>Oracle identifies data validation as one of the use cases for Groovy business rules.</p><p>For example:</p><pre>if (discountCell.data &gt; 100) {<br>discountCell.addValidationError(0xFF0000,&quot;Discount cannot exceed 100%.&quot;)<br>}</pre><p>This type of procedural validation is difficult to express using a conventional calculation script alone.</p><h3>Dynamic Calculations</h3><p>Another area where I prefer Groovy is when the calculation scope cannot easily be known until runtime.</p><p>Imagine a project planning application where each project has different start and end periods.</p><p>Project A:</p><pre>Jan - Jun</pre><p>Project B:</p><pre>Apr - Dec</pre><p>Project C:</p><pre>Jul - Sep</pre><p>Instead of calculating all periods for all projects, Groovy can determine the relevant periods and dynamically construct the calculation.</p><p>Oracle specifically gives dynamic, context-based calculation generation as one of the main use cases for Groovy.</p><p>This is where the ability to generate an Essbase calculation dynamically becomes useful.</p><h3>Groovy Doesn’t Mean “No Essbase”</h3><p>This is another important point.</p><p>Sometimes people think:</p><blockquote>“If I use Groovy, I’m replacing Essbase calculations.”</blockquote><p>Not necessarily.</p><p>One of the most useful patterns is:</p><p><strong>Groovy determines the scope → Essbase performs the calculation.</strong></p><p>For example:</p><pre>User changes data<br>        ↓<br>Groovy identifies modified members<br>        ↓<br>Groovy creates targeted FIX<br>        ↓<br>Essbase executes calculation</pre><p>Oracle’s documentation demonstrates this pattern for calculating modified data.</p><p>This can give us the flexibility of Groovy while still allowing Essbase to perform the cube calculation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*LcSN0Fqc8wf99h4q1yv6JA.png" /></figure><h3>A Practical Example</h3><p>Let’s take a Workforce Planning example.</p><p>Suppose we need to calculate:</p><pre>Salary Expense = Annual Salary × FTE × Applicable Months / 12</pre><p>If every employee is processed using the same calculation across a clearly defined scope, a traditional calculation rule could be completely appropriate.</p><p>But now imagine the requirement changes:</p><ul><li>Only employees modified by the planner should be recalculated.</li><li>Employees with a future start date should be excluded.</li><li>Certain employee types use different calculations.</li><li>Invalid salary inputs should prevent submission.</li><li>After calculation, the result needs to be pushed to another cube.</li></ul><p>Now the requirement involves more than just arithmetic.</p><p>Groovy can act as the orchestration layer:</p><pre>Read current grid<br>      ↓<br>Identify modified employees<br>      ↓<br>Validate employee inputs<br>      ↓<br>Determine calculation scope<br>      ↓<br>Execute targeted calculation<br>      ↓<br>Perform Smart Push if required</pre><p>Oracle documents that Groovy can launch multiple EPM operations from a single rule and can also perform procedural calculations in memory.</p><h3>What About Performance?</h3><p>Performance is often the reason consultants start considering Groovy.</p><p>But I would be careful with the statement:</p><blockquote>“Groovy is faster.”</blockquote><p>That isn’t universally true.</p><p>A poorly designed Groovy rule can perform worse than a well-designed calculation script.</p><p>The real advantage is that Groovy can help us <strong>reduce unnecessary calculation scope</strong>.</p><p>For example, imagine a form containing thousands of intersections.</p><p>The user modifies five products.</p><p>Instead of calculating the entire form, Groovy can identify those five products and generate a targeted calculation.</p><p>Oracle specifically documents this focused-calculation pattern as a way to improve calculation performance when only a subset of form data has changed.</p><p>So I prefer to think about it as:</p><blockquote><strong>Better calculation targeting, rather than simply “Groovy is faster.”</strong></blockquote><h3>When I Would Choose Calculation Manager</h3><p>For a requirement like:</p><pre>Calculate Revenue<br>Aggregate Entity<br>Calculate Gross Margin</pre><p>with a predictable dimensional scope, I would generally start with a traditional Calculation Manager rule.</p><p>I would also favor traditional calculation logic when:</p><ul><li>The calculation is straightforward.</li><li>The calculation scope is well known.</li><li>Essbase functions already solve the requirement.</li><li>There is no need for form-level validation.</li><li>There is no requirement to inspect the current grid.</li><li>The calculation needs to process a large, well-defined cube area.</li></ul><p>Oracle’s business-rule guidance also recommends understanding the data, calculation order, drivers, source and destination accounts, and appropriate FIX scope when designing calculations.</p><h3>When I Would Choose Groovy</h3><p>I would start considering Groovy when the requirement includes things like:</p><p><strong>Dynamic scope</strong></p><blockquote>“Calculate only the members changed by the user.”</blockquote><p><strong>Validation</strong></p><blockquote>“Don’t allow the user to save invalid data.”</blockquote><p><strong>Procedural logic</strong></p><blockquote>“Perform several different operations based on the current data.”</blockquote><p><strong>Form interaction</strong></p><blockquote>“Inspect the current Planning grid and manipulate specific cells.”</blockquote><p><strong>Dynamic calculations</strong></p><blockquote>“Build the calculation based on the current project, employee, period, or other context.”</blockquote><p><strong>Orchestration</strong></p><blockquote>“Calculate, then perform another EPM operation.”</blockquote><p>These are areas where Groovy provides capabilities beyond a conventional calculation script.</p><h3>And Sometimes the Answer Is Both</h3><p>One of my favorite patterns is not choosing one technology exclusively.</p><p>For example:</p><pre>Groovy<br>                │<br>        Identify modified data<br>                │<br>        Validate user input<br>                │<br>       Determine calculation scope<br>                │<br>                ▼<br>       Essbase Calculation<br>                │<br>                ▼<br>          Smart Push</pre><p>Here, Groovy handles the procedural and contextual work while Essbase handles the actual cube calculation.</p><p>This separation can make the overall solution easier to understand and maintain.</p><p>Oracle’s own Groovy examples demonstrate approaches where Groovy identifies modified members and then executes a focused calculation.</p><h3>Maintainability Matters Too</h3><p>There is another factor that is sometimes overlooked.</p><p>A calculation rule can be easier for an EPM administrator to understand when the business logic is straightforward.</p><p>For example:</p><pre>Revenue = Units * Price</pre><p>doesn’t necessarily need 100 lines of Groovy.</p><p>On the other hand, if the rule contains:</p><ul><li>Multiple validations</li><li>Dynamic member selection</li><li>Conditional processing</li><li>Grid interaction</li><li>Error handling</li><li>Dynamic calculation generation</li></ul><p>then Groovy may provide a cleaner implementation.</p><p>The goal should be <strong>maintainable design</strong>, not using the most advanced technology available.</p><h3>One More Thing: Groovy Requires Its Own Governance</h3><p>As Groovy adoption increases in an EPM environment, development standards become important.</p><p>I would recommend having standards around:</p><ul><li>Naming conventions</li><li>Logging</li><li>Error handling</li><li>Runtime prompts</li><li>Null checks</li><li>Member validation</li><li>Performance</li><li>Reusable functions</li><li>Testing</li><li>Documentation</li></ul><p>This is especially relevant with the newer Groovy engine changes introduced in 2026. Oracle provided a Groovy Script Validator because stricter validation can identify existing rules that require changes.</p><p>So introducing Groovy isn’t just a coding decision.</p><p>It is also a <strong>development and governance decision</strong>.</p><h3>My Practical Decision Process</h3><p>When I receive a new EPM requirement, I generally think through it in this order:</p><h3>1. Can Essbase solve it directly?</h3><p>If yes, start with a traditional calculation.</p><h3>2. Is the calculation scope predictable?</h3><p>If yes, Calculation Manager may be sufficient.</p><h3>3. Does the requirement depend on what the user changed?</h3><p>If yes, investigate Groovy.</p><h3>4. Do we need validation before saving?</h3><p>If yes, Groovy becomes a strong candidate.</p><h3>5. Does the calculation need dynamic member selection?</h3><p>If yes, consider Groovy-generated calculation logic.</p><h3>6. Does the process involve multiple EPM operations?</h3><p>If yes, Groovy may work well as the orchestration layer.</p><h3>7. Is the requirement simply a large cube calculation?</h3><p>If yes, don’t introduce Groovy unnecessarily.</p><h3>Final Thoughts</h3><p>For me, the biggest lesson is that <strong>Groovy and Calculation Manager are complementary technologies in Oracle EPM Planning</strong>.</p><p>Calculation Manager provides the framework for creating and managing business rules, while traditional calculation scripts remain very effective for predictable Essbase calculations.</p><p>Groovy becomes especially valuable when the solution needs to understand context, inspect modified data, validate user input, dynamically determine calculation scope, or orchestrate multiple operations.</p><p>So rather than asking:</p><blockquote><strong>“Groovy or Calculation Manager?”</strong></blockquote><p>I think a better question is:</p><blockquote><strong>“What part of this requirement is cube calculation, and what part is application logic?”</strong></blockquote><p>If it is primarily cube calculation, start with Essbase/Calculation Manager.</p><p>If it requires dynamic application logic, validation, or contextual processing, consider Groovy.</p><p>And when necessary, use both.</p><p>That mindset has helped me approach EPM Planning development not just from the perspective of <strong>“Can I make this rule work?”</strong>, but also:</p><p><strong><em>“Can I make it efficient, maintainable, and appropriate for the way the application is being used?”</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bbbdf113bf0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real-Time Calculations in Oracle EPM Planning Using Groovy]]></title>
            <link>https://medium.com/@SantoshHakki/real-time-calculations-in-oracle-epm-planning-using-groovy-6dfe7988dc80?source=rss-2bb10aff3f82------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dfe7988dc80</guid>
            <dc:creator><![CDATA[Santosh Hakki]]></dc:creator>
            <pubDate>Mon, 28 Sep 2026 12:25:06 GMT</pubDate>
            <atom:updated>2026-09-28T12:25:06.741Z</atom:updated>
            <content:encoded><![CDATA[<p>Using Groovy to calculate dependent values on a Planning form before the data is saved.</p><p>One of the things I find most useful about Groovy in Oracle EPM Planning is the ability to work directly with the data currently displayed on a Planning form.</p><p>In a traditional Planning implementation, a user enters data, saves the form, and a calculation rule processes the data. That approach works well for many business requirements.</p><p>But what if the calculation is relatively small and depends only on values already present on the form?</p><p>In such cases, we can use a <strong>Run Before Save Groovy rule</strong> to calculate the required values directly in the form grid before the save operation completes.</p><p>This can be particularly useful for calculations such as project costs, employee-related values, percentages, rates, or other derived values.</p><p>In this article, I’ll demonstrate the approach using a simple project-cost example.</p><h3>The Business Requirement</h3><p>Imagine a Planning form used for project cost planning.</p><p>The user enters:</p><ul><li>Units</li><li>Unit Cost</li><li>Discount %</li></ul><p>The application needs to calculate:</p><p><strong>Net Cost = (Units × Unit Cost) − Discount Amount</strong></p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*QsL20MNwqrSEbt8QQWkXoQ.png" /></figure><p>The user should enter the first three values, while <strong>Net Cost</strong> should be calculated automatically.</p><p>Instead of running a separate calculation after the form is saved, we can perform this calculation while the form is being processed.</p><p>Oracle supports <strong>Run Before Save</strong> for Groovy rules, and the current Planning grid is available through operation.grid.</p><h3>Why Use Groovy for This?</h3><p>There are several ways to implement calculations in Planning.</p><p>A traditional Essbase calculation rule is still appropriate for large-scale cube calculations and aggregations.</p><p>But a form-level calculation can be a good candidate for Groovy when:</p><ul><li>The calculation is based on values in the current form.</li><li>Only a relatively small amount of data needs to be processed.</li><li>The result needs to be populated as part of the save operation.</li><li>We want to avoid running a broader cube calculation for a small requirement.</li></ul><p>Oracle’s documentation describes before-save Groovy processing as one option for performing calculations on form data in memory.</p><p>The key is not to replace calculation scripts with Groovy everywhere.</p><p>It is to choose the appropriate approach for the requirement.</p><h3>Accessing the Current Form Grid</h3><p>The current Planning form can be accessed using:</p><pre>operation.grid</pre><p>Oracle’s DataGrid and DataCell APIs provide access to the cells in that grid.</p><p>For our example, we can iterate through the Net Cost cells:</p><pre>operation.grid.dataCellIterator(&#39;Net Cost&#39;).each { netCostCell -&gt;<br>// Calculation logic<br>}</pre><p>This allows us to work specifically with the cells that represent our calculated account.</p><h3>Finding Related Input Cells</h3><p>Now we need the corresponding Units, Unit Cost, and Discount % cells for the same dimensional intersection.</p><p>This is where crossDimCell() becomes useful.</p><p>Oracle provides crossDimCell() on DataCell to retrieve another cell from the current grid using its member intersection.</p><p>For example:</p><pre>def unitsCell =<br>    netCostCell.crossDimCell(&#39;Units&#39;)<br>def unitCostCell =<br>    netCostCell.crossDimCell(&#39;Unit Cost&#39;)<br>def discountCell =<br>    netCostCell.crossDimCell(&#39;Discount %&#39;)</pre><p>We now have references to the driver cells associated with the current Net Cost cell.</p><p>I would also recommend checking for null before using these cells because the requested intersection may not exist in the current grid.</p><pre>if (unitsCell == null ||<br>    unitCostCell == null ||<br>    discountCell == null) {<br>return<br>}</pre><p>This is particularly important when working with forms that have suppression, valid intersections, or other dimensional restrictions.</p><h3>Calculate Only When Relevant Data Changes</h3><p>We don’t necessarily need to recalculate every Net Cost cell whenever the user saves the form.</p><p>The DataCell API provides an edited state that can be used to determine whether a cell was changed by the user.</p><p>For example:</p><pre>if (unitsCell.edited ||<br>    unitCostCell.edited ||<br>    discountCell.edited) {// Recalculate Net Cost<br>}<br></pre><p>This gives us a simple optimization.</p><p>If none of the driver values changed, there is no reason to recalculate the result.</p><h3>Complete Groovy Example</h3><p>Putting the pieces together:</p><pre>operation.grid.dataCellIterator(&#39;Net Cost&#39;).each { netCostCell -&gt;<br>def unitsCell =<br>        netCostCell.crossDimCell(&#39;Units&#39;)<br>    def unitCostCell =<br>        netCostCell.crossDimCell(&#39;Unit Cost&#39;)<br>    def discountCell =<br>        netCostCell.crossDimCell(&#39;Discount %&#39;)<br>    if (unitsCell == null ||<br>        unitCostCell == null ||<br>        discountCell == null) {<br>        return<br>    }<br>    if (unitsCell.edited ||<br>        unitCostCell.edited ||<br>        discountCell.edited) {<br>        double units =<br>            unitsCell.isMissing() ? 0 : unitsCell.data<br>        double unitCost =<br>            unitCostCell.isMissing() ? 0 : unitCostCell.data<br>        double discount =<br>            discountCell.isMissing() ? 0 : discountCell.data<br>        double grossCost =<br>            units * unitCost<br>        double discountAmount =<br>            grossCost * discount / 100<br>        double netCost =<br>            grossCost - discountAmount<br>        netCostCell.setForceEditable(true)<br>        netCostCell.setData(netCost)<br>    }<br>}</pre><p>The calculation itself is straightforward.</p><p>The interesting part is the interaction with the Planning grid.</p><p>We are:</p><ol><li>Finding the target cell.</li><li>Locating its related input cells.</li><li>Checking whether the inputs changed.</li><li>Performing the calculation.</li><li>Writing the result back to the grid.</li></ol><p>Oracle’s DataCell API provides methods such as setData(), isMissing(), and setForceEditable() for working with cell values and state.</p><h3>What About Missing Values?</h3><p>This is something I always recommend deciding before implementing the rule.</p><p>In the example above, I treated a missing value as zero:</p><pre>double units = unitsCell.isMissing() ? 0 : unitsCell.data</pre><p>But that may not always be the correct business behavior.</p><p>For example, if Unit Cost is mandatory, the better approach might be to stop the save and show a validation message rather than treating the missing value as zero.</p><p>Oracle provides cell-level validation capabilities through addValidationError().</p><p>For example:</p><pre>if (unitCostCell.isMissing()) {<br>unitCostCell.addValidationError(<br>        0xFF0000,<br>        &quot;Unit Cost is required.&quot;<br>    )<br>}</pre><p>This is one of the areas where Groovy can provide a better user experience than simply allowing an invalid value to flow into subsequent calculations.</p><h3>Keeping Calculated Cells Read Only</h3><p>If Net Cost is derived automatically, I generally wouldn&#39;t want users manually entering values into it.</p><p>The DataCell API supports forcing a cell to read-only.</p><p>A separate <strong>Run After Load</strong> Groovy rule can be used to make the calculated cells read-only:</p><pre>operation.grid.dataCellIterator(&#39;Net Cost&#39;).each { cell -&gt;</pre><pre>    cell.setForceReadOnly(true)</pre><pre>}</pre><p>This gives the form a clear separation between:</p><p><strong>Input</strong></p><pre>Units<br>Unit Cost<br>Discount %</pre><p>and</p><p><strong>Calculated</strong></p><pre>Net Cost</pre><p>It also reduces the possibility of a user accidentally overwriting a derived value.</p><h3>When Should We Use This Approach?</h3><p>I wouldn’t recommend using before-save Groovy for every Planning calculation.</p><p>It is a good fit when the calculation is:</p><ul><li>Closely related to the current form.</li><li>Based on a relatively small set of cells.</li><li>Procedural or easier to express in Groovy.</li><li>Required as part of the save operation.</li></ul><p>For larger calculations involving significant portions of the cube, aggregations, or complex Essbase logic, a traditional calculation approach may still be more appropriate.</p><p>Oracle’s guidance around modified-data calculations also highlights the distinction between performing calculations in memory and generating a calculation script for Essbase.</p><p>So the decision should be based on the requirement rather than simply choosing Groovy because it is available.</p><h3>A Few Practical Considerations</h3><p>When implementing this pattern in a real EPBCS application, I would pay attention to a few things.</p><h3>Validate the grid</h3><p>Don’t assume that every crossDimCell() call will return a cell.</p><h3>Process only what is required</h3><p>If only a few driver cells changed, avoid unnecessary processing.</p><h3>Define missing-value behavior</h3><p>Decide whether missing means zero, invalid input, or something else.</p><h3>Keep calculated cells protected</h3><p>If the application owns the value, don’t unnecessarily allow users to overwrite it.</p><h3>Test different form layouts</h3><p>Suppression, valid intersections, security, and dimensionality can affect which cells are available in the grid.</p><h3>Don’t replace Essbase calculations unnecessarily</h3><p>Groovy and Essbase calculations complement each other. The right choice depends on the volume and nature of the calculation.</p><h3>Final Thoughts</h3><p>What I like about this approach is that it makes the Planning form more interactive without requiring a large calculation framework.</p><p>A user changes a few planning assumptions, and the dependent value can be calculated as part of the same save operation.</p><p>The real value isn’t the formula itself.</p><p>The value comes from being able to work directly with the <strong>current Planning grid</strong>, identify relevant changes, retrieve related cells, validate inputs, and update calculated values programmatically.</p><p>For me, this is one of the practical areas where Groovy adds another layer of flexibility to Oracle EPM Planning.</p><p>Instead of asking only:</p><blockquote><em>“Can Essbase calculate this?”</em></blockquote><p>we can also ask:</p><blockquote><strong><em>“Can this be handled intelligently at the form level?”</em></strong></blockquote><p>When the answer is yes, a before-save Groovy rule can be a useful tool to add to the EPM developer’s toolbox.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dfe7988dc80" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Reusable Groovy Templates in Oracle EPM Planning]]></title>
            <link>https://medium.com/@SantoshHakki/building-reusable-groovy-templates-in-oracle-epm-planning-c54c8740219e?source=rss-2bb10aff3f82------2</link>
            <guid isPermaLink="false">https://medium.com/p/c54c8740219e</guid>
            <dc:creator><![CDATA[Santosh Hakki]]></dc:creator>
            <pubDate>Mon, 21 Sep 2026 12:34:51 GMT</pubDate>
            <atom:updated>2026-09-21T12:34:51.973Z</atom:updated>
            <content:encoded><![CDATA[<p>Moving from one-off Groovy scripts to reusable EPM development patterns.</p><p>Over the last few years of working with Oracle EPM Planning, I have written Groovy scripts for many different requirements.</p><p>Some were simple.</p><p>Some were surprisingly complex.</p><p>And some started with a requirement that sounded like:</p><blockquote>“It’s just a small calculation.”</blockquote><p>Only to eventually involve runtime prompts, data grids, validation, calculations, Smart Push, metadata, error handling, and job execution.</p><p>One thing became obvious to me along the way:</p><p><strong>A lot of the technical work gets repeated.</strong></p><p>The business requirement may be different, but the technical patterns are often very similar.</p><p>That made me look at Groovy differently.</p><p>Instead of asking:</p><blockquote>“How do I write Groovy for this requirement?”</blockquote><p>I started asking:</p><blockquote><strong><em>“Can I build this once and make it reusable?”</em></strong></blockquote><p>This article explains how I approach reusable Groovy development in Oracle EPM Planning, including Oracle’s native Groovy Template capability, reusable methods, Design-Time Prompts, data-grid processing, modified-cell handling, Smart Push, validation, logging, and some practical design considerations.</p><h3>Why Reusable Groovy Matters in EPM Planning</h3><p>Groovy business rules allow Planning developers to build solutions that go beyond what traditional calculation scripts can easily accomplish.</p><p>Oracle’s documentation highlights use cases such as working with data grids, identifying modified data, metadata operations, REST APIs, Smart Push, and other advanced processing.</p><p>For example, a traditional calculation script generally works with a predefined calculation structure.</p><p>But imagine a user opens a Planning form containing hundreds of cells and changes only five of them.</p><p>Would you always want to process the entire form?</p><p>Not necessarily.</p><p>Groovy can inspect the data grid and identify edited cells, which opens the door to much more targeted processing. Oracle provides a specific tutorial for calculating only modified data using Groovy.</p><p>Now consider a larger implementation.</p><p>You might have:</p><ul><li>Workforce rules</li><li>Financials rules</li><li>Capital rules</li><li>Project rules</li><li>Reporting cube rules</li><li>Validation rules</li><li>Smart Push rules</li><li>Metadata rules</li></ul><p>If each developer writes these independently, the application can quickly end up with a large collection of duplicated code.</p><p>That’s where reusable patterns become valuable.</p><h3>Two Different Types of Reuse</h3><p>When I talk about reusable Groovy, I think about it at two levels.</p><h3>1. Reusable code patterns</h3><p>These are methods and coding structures that can be reused across Groovy business rules.</p><p>Examples:</p><pre>logInfo()<br>validateInput()<br>getModifiedCells()<br>validateMember()<br>executeSmartPush()</pre><h3>2. Oracle Groovy Templates</h3><p>Oracle Planning provides a native <strong>Groovy Template</strong> capability in Calculation Manager.</p><p>These templates can contain Groovy scripts and Design-Time Prompts, allowing developers to create reusable components that can be configured for different scenarios. Oracle’s documentation explicitly describes Groovy templates as a way to support reusability and maintenance.</p><p>The combination of these two approaches is where things become interesting.</p><h3>What Is a Groovy Template?</h3><p>In Calculation Manager, you can create a custom template and choose Groovy as the script type.</p><p>Oracle provides a specific process for creating Groovy templates for Planning BSO and ASO cubes. The template can contain a Groovy script and Design-Time Prompts.</p><p>A template can essentially become a reusable building block.</p><p>For example, instead of creating separate rules for:</p><ul><li>Calculate Workforce Salary</li><li>Calculate Workforce Bonus</li><li>Calculate Workforce Merit</li></ul><p>you could create a reusable template that handles common technical processing and allows the implementation to provide the business-specific inputs.</p><p>This is particularly useful when the same technical pattern needs to be implemented repeatedly.</p><h3>A Simple Reusable Groovy Structure</h3><p>Before creating a full template, I usually start by making the Groovy code itself clean and modular.</p><p>For example:</p><pre>/* ============================================================<br>   Reusable Groovy Rule Structure<br>   ============================================================ */<br>def logInfo(String message) {<br>    println &quot;[INFO] ${message}&quot;<br>}<br>def logWarning(String message) {<br>    println &quot;[WARNING] ${message}&quot;<br>}<br>def logError(String message) {<br>    println &quot;[ERROR] ${message}&quot;<br>}<br>try {<br>    logInfo(&quot;Starting Groovy rule&quot;)<br>    // Business logic goes here<br>    logInfo(&quot;Groovy rule completed successfully&quot;)<br>} catch (Exception e) {<br>    logError(&quot;Groovy rule failed&quot;)<br>    logError(e.message)<br>    throw e<br>}</pre><p>This is simple, but it establishes an important principle:</p><p><strong>Keep reusable technical functionality separate from business logic.</strong></p><p>The business logic can change.</p><p>The logging framework doesn’t need to.</p><h3>Creating a Reusable Logging Pattern</h3><p>Logging is one of the easiest things to standardize.</p><p>Without a reusable approach, developers often end up with:</p><pre>println(&quot;Starting process&quot;)<br>println(&quot;Processing employee&quot;)<br>println(&quot;Calculation completed&quot;)<br>println(&quot;Smart Push completed&quot;)</pre><p>Instead, I prefer:</p><pre>def logInfo(String message) {<br>    println &quot;[INFO] ${message}&quot;<br>}</pre><p>Then:</p><pre>logInfo(&quot;Starting process&quot;)<br>logInfo(&quot;Processing employee&quot;)<br>logInfo(&quot;Calculation completed&quot;)</pre><p>You can extend the same pattern:</p><pre>def logInfo(String message) {<br>    println &quot;[INFO] ${message}&quot;<br>}<br>def logWarning(String message) {<br>    println &quot;[WARNING] ${message}&quot;<br>}<br>def logError(String message) {<br>    println &quot;[ERROR] ${message}&quot;<br>}</pre><p>The benefit is not just cleaner code.</p><p>When troubleshooting an application with many Groovy rules, consistent log messages make the job console much easier to read.</p><h3>Working With the Planning Data Grid</h3><p>One of the most useful Groovy objects in Planning is the current data grid.</p><p>Oracle documents operation.grid and the dataCellIterator API for working with cells in the current grid.</p><p>A simple example is:</p><pre>operation.grid.dataCellIterator.each { cell -&gt;<br>println &quot;Members: ${cell.memberNames}&quot;<br>    println &quot;Value: ${cell.data}&quot;<br>    println &quot;Formatted Value: ${cell.formattedValue}&quot;<br>}</pre><p>This gives us access to the cells that are part of the current grid.</p><p>We can then build reusable functionality around this.</p><p>For example:</p><pre>def printGridInformation() {<br>operation.grid.dataCellIterator.each { cell -&gt;<br>        println &quot;Members: ${cell.memberNames}&quot;<br>        println &quot;Value: ${cell.data}&quot;<br>        println &quot;Formatted: ${cell.formattedValue}&quot;<br>    }<br>}</pre><p>Now the same functionality can be reused wherever grid diagnostics are required.</p><h3>A Very Useful Pattern: Processing Only Edited Cells</h3><p>This is one of the areas where Groovy can provide significant value.</p><p>Oracle documents the ability to iterate over edited cells using a GridIterator filter.</p><p>For example:</p><pre>operation.grid.dataCellIterator({ DataCell cell -&gt;<br>    cell.edited<br>}).each { cell -&gt;<br>println &quot;Edited cell: ${cell.memberNames}&quot;<br>    println &quot;New value: ${cell.data}&quot;<br>}</pre><p>Instead of processing every cell, we can focus on the cells that the user actually changed.</p><p>I find this pattern particularly useful when designing:</p><ul><li>Targeted calculations</li><li>Validation</li><li>Smart Push</li><li>Audit logic</li><li>Data movement</li><li>Employee-level processing</li></ul><p>We can turn this into a reusable method:</p><pre>def getEditedCells() {<br>def editedCells = []<br>    operation.grid.dataCellIterator({ DataCell cell -&gt;<br>        cell.edited<br>    }).each { cell -&gt;<br>        editedCells &lt;&lt; cell<br>    }<br>    return editedCells<br>}</pre><p>Then:</p><pre>def editedCells = getEditedCells()<br>println &quot;Number of edited cells: ${editedCells.size()}&quot;<br>editedCells.each { cell -&gt;<br>    println &quot;Processing: ${cell.memberNames}&quot;<br>}</pre><p>This is a good example of where abstraction starts providing real value.</p><h3>Why Not Simply Loop Through the Entire Grid?</h3><p>Consider a form containing 2,000 cells.</p><p>A user changes only 10 cells.</p><p>A generic process could potentially inspect all 2,000 cells.</p><p>A filtered iterator allows us to focus on the edited cells instead.</p><p>Of course, the actual performance benefit depends on the application design, grid size, calculation logic, and what happens after the cells are identified.</p><p>So I would not make a blanket claim that “Groovy is always faster.”</p><p>The better design principle is:</p><blockquote><strong><em>Process only the data that the business requirement actually needs.</em></strong></blockquote><p>Oracle’s own Groovy tutorials demonstrate both general grid iteration and iteration over edited cells, including benchmarking the different approaches.</p><h3>Reusable Smart Push</h3><p>Smart Push is another area where reusable patterns can be useful.</p><p>Oracle’s Groovy object model exposes Smart Push through the data grid, including getSmartPush() and getSmartPushes().</p><p>For example, if a Data Map named PlanToReporting is attached to the form, we can retrieve the Smart Push from the grid:</p><pre>def smartPush = operation.grid.getSmartPush(&quot;PlanToReporting&quot;)<br>smartPush.execute()</pre><p>A reusable method could be:</p><pre>def executeSmartPush(String dataMapName) {<br>println &quot;Starting Smart Push: ${dataMapName}&quot;<br>    def smartPush =<br>        operation.grid.getSmartPush(dataMapName)<br>    smartPush.execute()<br>    println &quot;Smart Push completed: ${dataMapName}&quot;<br>}</pre><p>Then the business rule becomes:</p><pre>executeSmartPush(&quot;PlanToReporting&quot;)</pre><p>Oracle also documents that a Smart Push obtained from a grid can automatically scope the push based on the grid, with further scoping possible through member maps and exclusions.</p><p>That is particularly interesting when combined with edited-cell processing.</p><h3>Combining Edited Cells and Smart Push</h3><p>Now we can start combining the patterns.</p><p>Imagine a Planning form where a user changes employee-level data.</p><p>We can first identify the edited cells:</p><pre>def editedCells = []<br>operation.grid.dataCellIterator({ DataCell cell -&gt;<br>    cell.edited<br>}).each { cell -&gt;<br>    editedCells &lt;&lt; cell<br>}</pre><p>Then check whether anything was actually changed:</p><pre>if (editedCells.isEmpty()) {<br>println &quot;No edited cells found.&quot;<br>    return<br>}</pre><p>Then execute the relevant downstream processing.</p><p>The exact Smart Push scope depends on the application and Data Map configuration, but the important architecture is:</p><p><strong>Identify what changed first, then process only what is relevant.</strong></p><p>Oracle has a dedicated tutorial showing how Groovy and Smart Push can be used to push modified Planning data to a reporting cube.</p><h3>Building a Reusable Validation Method</h3><p>Another pattern I commonly find useful is validation.</p><p>For example:</p><pre>def validateNotEmpty(def value, String fieldName) {<br>if (value == null ||<br>        value.toString().trim().isEmpty()) {<br>        throw new IllegalArgumentException(<br>            &quot;${fieldName} cannot be empty.&quot;<br>        )<br>    }<br>    return value<br>}</pre><p>We can then use it throughout the rule:</p><pre>def employee =<br>    validateNotEmpty(employeeValue, &quot;Employee&quot;)<br>def entity =<br>    validateNotEmpty(entityValue, &quot;Entity&quot;)</pre><p>This is much cleaner than writing the same if statement repeatedly.</p><p>Oracle also provides examples of Groovy-based validation of data-entry values and discusses validating inputs and vetoing execution when values are invalid.</p><h3>Reusable Member Validation</h3><p>We can use the same principle for metadata.</p><p>For example:</p><pre>def validateMember(def dimension, String memberName) {<br>def member = dimension.getMember(memberName)<br>    if (member == null) {<br>        throw new IllegalArgumentException(<br>            &quot;Member &#39;${memberName}&#39; does not exist.&quot;<br>        )<br>    }<br>    return member<br>}</pre><p>Then:</p><pre>def entityMember =<br>    validateMember(entityDimension, &quot;US_001&quot;)</pre><p>This pattern can be useful when Groovy scripts interact with application metadata.</p><p>Oracle’s EPM object model supports metadata operations such as adding, moving, renaming, and updating members, although some operations require appropriate privileges.</p><h3>Where Oracle Groovy Templates Become More Interesting</h3><p>Reusable methods are useful, but Oracle’s native Groovy Template capability takes the idea further.</p><p>A Groovy Template can contain:</p><ul><li>Groovy script</li><li>Design-Time Prompts</li><li>Template properties</li><li>Wizard steps</li><li>Reusable configuration</li></ul><p>Oracle’s tutorial demonstrates creating a Groovy Template with an interactive Design-Time Prompt and a template wizard.</p><p>This is useful when the technical logic should remain consistent but certain implementation parameters need to be configurable.</p><p>For example, imagine creating a reusable calculation template with a parameter called:</p><p>CalculationType</p><p>The user could select:</p><ul><li>Salary</li><li>Bonus</li><li>Merit</li></ul><p>The underlying template can then use the selected value to determine which processing should occur.</p><h3>Design-Time Prompts</h3><p>Design-Time Prompts are one of the most useful features of Groovy Templates.</p><p>Oracle supports several DTP types, including:</p><ul><li>Member</li><li>Member Range</li><li>Dimension</li><li>Dimensions</li><li>Integer</li><li>Boolean</li><li>String</li><li>Condition</li><li>Attribute</li><li>Date</li><li>Restricted List</li></ul><p>The exact available options depend on the DTP type and template configuration.</p><p>For example, Oracle’s Groovy Template tutorial creates an Integer DTP named BonusMultiplier and uses it as part of an interactive template wizard.</p><p>This is a powerful idea because the developer doesn’t need to hard-code every value.</p><h3>A Practical Template Example</h3><p>Let’s say I want to create a reusable Workforce calculation template.</p><p>Instead of creating separate rules for every calculation, I could design a template around parameters such as:</p><pre>Calculation Type<br>Multiplier<br>Entity<br>Scenario<br>Version</pre><p>The template could then contain common processing:</p><pre>def logInfo(String message) {<br>    println &quot;[INFO] ${message}&quot;<br>}<br>def validateInput(def value, String name) {<br>    if (value == null) {<br>        throw new IllegalArgumentException(<br>            &quot;${name} is required.&quot;<br>        )<br>    }<br>    return value<br>}<br>try {<br>    logInfo(&quot;Starting reusable calculation template&quot;)<br>    validateInput(calculationType, &quot;Calculation Type&quot;)<br>    validateInput(multiplier, &quot;Multiplier&quot;)<br>    // Business-specific processing<br>    logInfo(&quot;Calculation completed&quot;)<br>} catch (Exception e) {<br>    logInfo(&quot;Calculation failed: ${e.message}&quot;)<br>    throw e<br>}</pre><p>The actual DTPs are configured in the Template Designer rather than being hard-coded into the script.</p><p>That separation is important.</p><p>The <strong>template controls configuration</strong>.</p><p>The <strong>Groovy script controls behavior</strong>.</p><h3>Reuse Does Not Mean Copy and Paste</h3><p>This is something I learned through experience.</p><p>There is a difference between a reusable template and a copied script.</p><p>Suppose I have:</p><pre>Workforce Salary Rule<br>Workforce Bonus Rule<br>Workforce Merit Rule</pre><p>and all three contain 300 lines of almost identical code.</p><p>Copying the Salary rule and changing five lines isn’t really a reusable architecture.</p><p>It’s duplication.</p><p>A better approach is to identify the common behavior.</p><p>For example:</p><pre>validateInputs()<br>def editedCells = getEditedCells()<br>validateEmployees(editedCells)<br>processCalculation(editedCells)<br>executeSmartPush()<br>logCompletion()</pre><p>Now the common framework can be reused while the actual business calculation changes.</p><h3>A Reusable Groovy Utility Pattern</h3><p>A practical structure could look like this:</p><pre>/* ============================================================<br>   EPM Groovy Utility Pattern<br>   ============================================================ */<br>def logInfo(String message) {<br>    println &quot;[INFO] ${message}&quot;<br>}<br>def logWarning(String message) {<br>    println &quot;[WARNING] ${message}&quot;<br>}<br>def logError(String message) {<br>    println &quot;[ERROR] ${message}&quot;<br>}<br>def validateNotEmpty(def value, String name) {<br>    if (value == null ||<br>        value.toString().trim().isEmpty()) {<br>        throw new IllegalArgumentException(<br>            &quot;${name} cannot be empty.&quot;<br>        )<br>    }<br>    return value<br>}<br>def getEditedCells() {<br>    def cells = []<br>    operation.grid.dataCellIterator({<br>        DataCell cell -&gt; cell.edited<br>    }).each { cell -&gt;<br>        cells &lt;&lt; cell<br>    }<br>    return cells<br>}<br>def executeSmartPush(String dataMapName) {<br>    def smartPush =<br>        operation.grid.getSmartPush(dataMapName)<br>    smartPush.execute()<br>}</pre><p>Now a business rule can be much smaller:</p><pre>try {<br>logInfo(&quot;Starting Workforce process&quot;)<br>    validateNotEmpty(<br>        employeeName,<br>        &quot;Employee&quot;<br>    )<br>    def editedCells = getEditedCells()<br>    if (editedCells.isEmpty()) {<br>        logInfo(&quot;No edited cells found.&quot;)<br>        return<br>    }<br>    logInfo(<br>        &quot;Edited cells: ${editedCells.size()}&quot;<br>    )<br>    // Business calculation<br>    executeSmartPush(&quot;WorkforceReporting&quot;)<br>    logInfo(&quot;Process completed&quot;)<br>} catch (Exception e) {<br>    logError(e.message)<br>    throw e<br>}</pre><p>This is the type of structure I find easier to maintain than a large monolithic Groovy script.</p><h3>Performance: Reusability Is Not Automatically Optimization</h3><p>There is another important distinction.</p><p>A reusable script is not necessarily a high-performance script.</p><p>For example, this:</p><pre>operation.grid.dataCellIterator.each { cell -&gt;<br>    // Process<br>}</pre><p>may be perfectly appropriate for one requirement.</p><p>But if the requirement only needs edited cells, this can be more targeted:</p><pre>operation.grid.dataCellIterator({<br>    DataCell cell -&gt; cell.edited<br>}).each { cell -&gt;<br>// Process edited cell<br>}</pre><p>Oracle’s documentation provides examples of benchmarking grid iteration and comparing iteration over all cells with iteration over edited cells.</p><p>My recommendation is to make performance part of the design conversation rather than something addressed only after a rule becomes slow.</p><h3>Add Benchmarking to Your Reusable Pattern</h3><p>For troubleshooting, a simple benchmark method can be useful:</p><pre>def benchmark(String processName,<br>              Closure process) {</pre><pre>    def start = currentTimeMillis()</pre><pre>    process()</pre><pre>    def elapsed =<br>        currentTimeMillis() - start</pre><pre>    println(<br>        &quot;[PERFORMANCE] ${processName}: &quot; +<br>        &quot;${elapsed} ms&quot;<br>    )<br>}</pre><p>Then:</p><pre>benchmark(&quot;Edited Cell Processing&quot;) {</pre><pre>    operation.grid.dataCellIterator({<br>        DataCell cell -&gt; cell.edited<br>    }).each { cell -&gt;</pre><pre>        println cell.memberNames<br>    }<br>}</pre><p>Oracle’s Groovy tutorial uses currentTimeMillis() to benchmark grid iterator processing.</p><p>This is particularly useful during development and troubleshooting.</p><h3>Designing for Maintainability</h3><p>When I build reusable Groovy components, I try to follow a few simple principles.</p><h3>1. Keep methods small</h3><p>A method should ideally perform one clear task.</p><p>Good:</p><pre>getEditedCells()</pre><p>Less useful:</p><pre>processEverything()</pre><h3>2. Give methods meaningful names</h3><p>A name should tell another developer what the method does.</p><p>For example:</p><pre>executeSmartPush()</pre><p>is clearer than:</p><pre>runData()</pre><h3>3. Keep business logic separate</h3><p>Don’t bury business calculations inside generic utility methods.</p><p>The reusable component should handle the technical operation.</p><p>The business rule should describe the business process.</p><h3>4. Make errors useful</h3><p>Instead of:</p><pre>Invalid input</pre><p>provide context:</p><pre>Employee &#39;EMP1007&#39; does not have a valid Grade.</pre><p>Useful errors reduce troubleshooting time.</p><h3>5. Document assumptions</h3><p>A reusable template should tell another consultant:</p><ul><li>What it does</li><li>What it expects</li><li>What inputs it needs</li><li>What dependencies exist</li><li>Where it can be used</li><li>What limitations it has</li></ul><p>This is especially important when multiple consultants contribute to the same application.</p><h3>Don’t Build a Framework Just for the Sake of Building One</h3><p>There is a temptation to create a huge Groovy framework once you discover how powerful the APIs are.</p><p>I would avoid that.</p><p>If an application has five Groovy rules, you probably don’t need a 50-method utility library.</p><p>Start with the repetitive patterns that actually appear.</p><p>For example:</p><pre>Logging<br>Validation<br>Modified Cells<br>Smart Push<br>Performance</pre><p>Then expand the library as the application grows.</p><p>The framework should evolve from real requirements.</p><h3>Where I See the Most Value</h3><p>Reusable Groovy patterns can be applied across many Planning modules.</p><h3>Workforce</h3><ul><li>Employee validation</li><li>Salary calculations</li><li>Merit processing</li><li>Bonus processing</li><li>Modified employee data</li><li>Reporting cube pushes</li></ul><h3>Financials</h3><ul><li>Revenue calculations</li><li>Expense calculations</li><li>Allocations</li><li>Data validation</li><li>Reporting processes</li></ul><h3>Capital</h3><ul><li>Asset calculations</li><li>Depreciation-related processing</li><li>Asset validation</li></ul><h3>Projects</h3><ul><li>Project validation</li><li>Project calculations</li><li>Project data movement</li></ul><p>The business logic differs, but the underlying technical patterns can often be reused.</p><h3>Going Beyond Planning: REST APIs</h3><p>Reusable patterns become even more valuable when Groovy is used for integration.</p><p>Oracle documents both internal and external REST API use cases with Groovy.</p><p>A team could create standardized patterns around:</p><pre>Authentication<br>API connection<br>Request creation<br>Response handling<br>Error handling<br>Logging</pre><p>Then individual business rules don’t need to reinvent the entire integration pattern.</p><p>This is one of the areas where Groovy starts moving beyond “calculation scripting” and becomes an application automation capability.</p><h3>Reusable Groovy Is Also a Knowledge-Sharing Tool</h3><p>There is another benefit that isn’t immediately obvious.</p><p>A reusable template is not only a technical asset.</p><p>It is also a <strong>knowledge-sharing mechanism</strong>.</p><p>Suppose a senior EPM consultant creates a well-documented template for:</p><blockquote><em>Processing modified Planning data and pushing it to a reporting cube.</em></blockquote><p>A junior consultant can understand the pattern, use it, and eventually improve it.</p><p>Instead of knowledge staying inside one person’s laptop or one project, it becomes something the team can build on.</p><p>For EPM teams working across multiple implementations, I think this is one of the biggest advantages of standardizing reusable Groovy patterns.</p><h3>My Recommended Reusable Groovy Library</h3><p>If I were setting up a reusable library for an EPM Planning team, I would start with something like:</p><pre>EPM Groovy Library</pre><pre>01 - Logging<br>     logInfo()<br>     logWarning()<br>     logError()</pre><pre>02 - Validation<br>     validateInput()<br>     validateMember()<br>     validateGrid()</pre><pre>03 - Data Grid<br>     getEditedCells()<br>     getGridInformation()</pre><pre>04 - Calculation<br>     executeCalculation()<br>     benchmark()</pre><pre>05 - Smart Push<br>     getSmartPush()<br>     executeSmartPush()</pre><pre>06 - Jobs<br>     executeJob()<br>     validateJobStatus()</pre><pre>07 - Metadata<br>     getMember()<br>     validateMember()</pre><pre>08 - REST<br>     executeRequest()<br>     validateResponse()</pre><pre>09 - Templates<br>     Workforce Template<br>     Financials Template<br>     Data Processing Template</pre><p>I wouldn’t necessarily implement all of these on day one.</p><p>The library should grow based on actual project requirements.</p><h3>A Few Things to Keep in Mind</h3><p>There are a few practical considerations when moving reusable Groovy code between applications.</p><p><strong>Application design matters.</strong></p><p>A method that works perfectly in one application may depend on:</p><ul><li>Dimension names</li><li>Cube names</li><li>Data Maps</li><li>Forms</li><li>Smart Lists</li><li>Security</li><li>Metadata structure</li><li>Application-specific business rules</li></ul><p>So I try to make reusable code configurable rather than hard-coding application-specific assumptions.</p><p>For example:</p><pre>executeSmartPush(&quot;WorkforceReporting&quot;)</pre><p>is more reusable than hard-coding the Data Map name throughout multiple sections of a script.</p><p>Likewise, if a dimension is configurable, it can be supplied through a template parameter or DTP rather than embedded everywhere in the code.</p><h3>The Bigger Picture</h3><p>When I first started working with Groovy, my focus was mostly:</p><blockquote><em>“How can I make this requirement work?”</em></blockquote><p>With more experience, the question has changed to:</p><blockquote><em>“How can I make this requirement work in a way that the next consultant can understand, maintain, and reuse?”</em></blockquote><p>That change in mindset is important.</p><p>Writing a Groovy script that works today is one thing.</p><p>Building a reusable component that can support several future requirements is another.</p><p>Oracle’s current Groovy documentation and tutorials provide the technical foundation for this approach, including data grids and iterators, modified-data calculations, Smart Push, metadata operations, REST APIs, and Groovy Templates.</p><h3>Final Thoughts</h3><p>I don’t think every Groovy rule needs to become a framework.</p><p>Sometimes a simple 20-line script is exactly what the requirement needs.</p><p>But when the same technical pattern starts appearing repeatedly, that’s when I believe it is worth stepping back and asking:</p><p><strong>Can this become reusable?</strong></p><p>For me, reusable Groovy development comes down to three things:</p><p><strong>Write once.</strong></p><p><strong>Make it configurable.</strong></p><p><strong>Reuse where it makes sense.</strong></p><p>Oracle’s native Groovy Template capability makes this even more interesting because developers can combine reusable Groovy logic with Design-Time Prompts and interactive template configuration.</p><p>The goal isn’t to write more code.</p><p>The goal is to reduce duplicated code, improve maintainability, make troubleshooting easier, and help the entire EPM team build on what has already been developed.</p><blockquote><strong>A good Groovy script solves a requirement.</strong></blockquote><blockquote><strong>A good Groovy template can solve the same type of requirement many times.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c54c8740219e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>