Nama ERP DocsNama ERP Docs
Home
Namasoft.com
Data Model
GitHub
Home
Namasoft.com
Data Model
GitHub
  • Home

    • Search
    • Guides

      • Entity Flows
      • الفواتير والضرائب والخصومات
      • Supply Chain
      • e-commerce integration (Magento)
      • .
    • Examples
    • Reprocessing Transactions
    • Frequently Asked Questions
    • AI Generated Entity Flows Documentation

      • Core

        • DeleteRelatedEntityAction
        • EAAllowUseAsFromDocOfAField
        • EAAltCodeValidator
        • EAAttachReportResultToRecord
        • EAAutoCollectSignAndSentEInvoice
        • EAAutoEscalateApprovalToFallBackEmployee
        • EAAutoEscalateApprovalToSupervisor
        • EAAutoSendEInvoice
        • EAAutomaticGenerateEntityFromEntityAction
        • EAAutomaticGenerateEntityFromEntityActionWithApproval
        • EACacheEvicter
        • EACalcCurrencyRate
        • EACalcCurrencyRateInDetails
        • EACheckAndUpdateLinkAtOnlinePaymentTransactionSysEntry
        • EACheckDailyBackupOnGoogleDrive
        • EAClearGoogleDriveTrash
        • EACloseFiscalPeriodsInRange
        • EACodeValidator
        • EACopyEmptyAccountsFromBag
        • EADeleteFromAnotherServer
        • EADeleteFromQuery
        • EADeleteOldFiles
        • EADetailsRemover
        • EAEmptifyTomcatTemp
        • EAErrorIfQueryNotMatched
        • EAExecuteUpdateQuery
        • EAExecuteUpdateQueryOnDifferentDatasource
        • EAExportAttachments
        • EAFieldsValuesCalculator
        • EAForceApplyInstallmentEffects
        • EAGenerateDraftEntityFromEntityAction
        • EAGenerateDraftEntityFromEntityActionNoFlush
        • EAGenerateEntityFromEntityAction
        • EAGenerateEntityFromEntityActionNoFlush
        • EAGenerateEntityFromEntityActionNoFlushWithApproval
        • EAGenerateEntityFromEntityActionWithApproval
        • EAGenerateKNetPaymentURLs
        • EAGenerateMyFatoorahPaymentURLs
        • EAGroovyAction
        • EAGuessEntityFromNames
        • EAIgnoringNotFoundTargetFieldsValuesCalculator
        • EAJsonRecordExporter
        • EALoyalityEarnReward
        • EAMakeCreationDateAlwaysAfter
        • EAMakeCreationDateAlwaysBefore
        • EAMakeCreationDateAlwaysBetween
        • EAMakeCreationDateInValueDate
        • EANamaCloudBackupPrepare
        • EAOpenFiscalPeriodsInRange
        • EAPostGoPayOfflinePayment
        • EAPreventChangingFields
        • EAPreventFromDocOfUsageAgain
        • EAPreventUpdateDetailedRemarkLines
        • EAPreventUseAsFromDocOfAField
        • EAPrintFormToPrinter
        • EAPrintReportToPrinter
        • EARecommitFromQuery
        • EARefreshCriticalErrors
        • EARefreshGoogleDriveOrMailToken
        • EARegenAccEffects
        • EARegenAccFromQuery
        • EAReviseUnReviseFromQuery
        • EARevokeApproval
        • EARunEntityFlow
        • EARunEntityFlowFromQuery
        • EARunManualNotification
        • EARunManualNotificationFromQuery
        • EARunTaskSchedule
        • EASQLToCSVEmail
        • EASQLToCSVFile
        • EASaveDraftsFromQuery
        • EASaveRecordsFromQuery
        • EASaveToAnotherServer
        • EASaveToAnotherServerUsingJSON
        • EAScaleImage
        • EAScaleMasterFileImage
        • EASendHttpRequestByTempo
        • EASetCreationDateToEndOfDay
        • EASetCreationDateToStartOfDay
        • EASetFieldByTemplate
        • EASortFields
        • EAWathqAddressFetcher
        • EAWathqBasicInfoFetcher
        • EAWathqCommercialInfoFetcher
        • EAWordTemplate
        • SQLDraftImporter
        • SQLDraftImporterFromDifferentDataSource
        • SQLImporter
        • SQLImporterFromDifferentDataSource
        • Field Maps in Nama ERP - Complete Guide (AI-Generated by Claude.ai)
        • .
      • Accounting Module
      • AI Module
      • Contracting Module
      • CRM Module
      • EGTax Reader Module
      • Freight Management System Module
      • Hospital Management System Module
      • HR Module
      • e-commerce Integration Module
      • Manufacturing Module
      • POS Module
      • Real Estate Module
      • Service Center Module
      • Supply Chain Module
      • .
    • Release Notes

      • 2016
      • 2017
      • 2018
      • 2019
      • 2020
      • 2021
      • 2022
      • 2025
      • .
    • Video Tutorials

      • Supply Chain Videos
      • Report Wizard Videos
      • Human Resources Videos
      • .

EAAutomaticGenerateEntityFromEntityAction

This document was generated using Claude.ai

Overview

Automatically generates related entities from source entities and handles their deletion when the source entity is deleted. Provides complete lifecycle management for related entity generation.

When This Action Runs

Automatically on entity save/commit and delete operations. Creates entities after save, deletes them after source deletion. Runs without manual intervention (isAutomaticForced = true).

How It Works

  1. Detects event type - post-delete or post-commit
  2. Routes to handler - deletion uses DeleteRelatedEntityAction
  3. Creates entities - uses EAGenerateEntityFromEntityAction for creation
  4. Maintains relationships - ensures data integrity throughout lifecycle

Key Parameters

Uses same parameters as EAGenerateEntityFromEntityAction:

  • Parameter 1: Target Type (Required) - Entity type to create (e.g., CreditNote)
  • Parameter 2: Finder SQL (Required) - Query to find existing entity
  • Parameter 3: Field Map (Required) - Field mapping expressions
  • Parameter 4: Update Only (Optional) - Only update existing entities
  • Parameter 5: Inverse Copy (Optional) - Copy fields back to source
  • Parameter 6: Run Entity Flow Per Each Line (Optional) - Process collections
  • Parameter 7: Insert Only (Optional) - Only create new entities
  • Parameter 8: Apply When Query (Optional) - Conditional processing
  • Parameter 9: Group Details By (Optional) - Group collection items
  • Parameter 10: Run Only If (Optional) - Execution condition

Example Field Map:

code=code
fromDoc=$this
customer=customer
amount=money.total

Database Tables Affected

  • Source Entity - Triggers automatic action on save/delete
  • Target Entity - Created on commit, deleted on source deletion
  • Reference Fields - Maintain relationships between entities

Important Warnings

⚠️ Automatic Execution

  • Cannot be disabled once configured (isAutomaticForced = true)
  • Executes on every save/delete operation
  • May trigger additional entity actions

⚠️ Data Integrity

  • Related entity deletion may fail if dependencies exist
  • Operations occur within entity transaction scope
  • Failures affect source entity operations

⚠️ Configuration Requirements

  • All parameters must be valid for both creation and deletion
  • Finder SQL must return correct entity IDs
  • Field maps must be compatible with target entity

Related Actions

  • EAGenerateEntityFromEntityAction
  • DeleteRelatedEntityAction
  • EAGenerateEntityFromEntityActionWithApproval
  • EAAutomaticGenerateEntityFromEntityActionWithApproval

Module: core

Full Class Name: com.namasoft.infor.domainbase.util.actions.EAAutomaticGenerateEntityFromEntityAction

Edit On github
Last Updated:: 7/27/25, 7:19 PM
Prev
EAAutoSendEInvoice
Next
EAAutomaticGenerateEntityFromEntityActionWithApproval