EAGroovyAction
This document was generated using Claude.ai
Overview
Executes custom Groovy scripts within the entity flow framework. Provides dynamic code execution for complex business logic without requiring Java compilation.
When This Action Runs
Manual execution or automated through entity flows when custom business logic is needed that standard entity flows cannot meet.
How It Works
- Compiles Groovy script at runtime using GroovyClassLoader
- Caches compiled classes for performance optimization
- Executes script implementing EntityAction interface
- Returns results and handles compilation/execution errors
Key Parameters
Parameter 1: Groovy Script (Required) - Complete Groovy code implementing EntityAction interface
Script Requirements:
- Must implement
com.namasoft.infra.domainbase.entity.base.EntityAction - Include
doAction(),describe(), andcolumnNames()methods - Access entity via
object.getFieldValue("fieldName") - Return
Resultobject with success/error status
Database Tables Affected
- Target Entity - Can modify any fields based on script logic
- Related Entities - Can access and modify through entity relationships
- Scripts work through entity framework with validation and security enforcement
Module: core
Full Class Name: com.namasoft.infor.domainbase.util.actions.EAGroovyAction