Skip to content

Add new EntityMapperTaskPlugin for context-to-entity mapping #53

@Zorin95670

Description

@Zorin95670

Description:

Introduce a new plugin named EntityMapperTaskPlugin (code name: emtp) to enable mapping values from the execution context into an entity.

This plugin should allow flexible configuration to extract data from the context and assign it to corresponding entity fields.

Proposed Configuration:

task:
  - name: X
    type: entity-mapper
    mapping:
      id: '{{context.response.id}}'

Requirements:

  • Implement a new task plugin identified by type: entity-mapper
  • Support mapping of context values using template expressions (e.g. {{context.response.id}})
  • Allow multiple field mappings within the mapping object
  • Ensure compatibility with existing task execution flow

Expected Behavior:

  • During task execution, the plugin reads values from the context
  • Applies the defined mappings
  • Populates the target entity with the resolved values

Notes:

  • Code name for internal reference: emtp
  • Consider extensibility for future mapping transformations if needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions