Class SplitArrayAction

  • All Implemented Interfaces:
    Action, IgorComponent

    public class SplitArrayAction
    extends BaseUtilAction
    Action that converts a JSON-Array into multiple data items with a single JSON-Object containing one of the old values from the array.
    • Constructor Detail

      • SplitArrayAction

        public SplitArrayAction()
        Creates a new component instance.
    • Method Detail

      • process

        public List<Map<String,​Object>> process​(Map<String,​Object> data,
                                                      JobExecution jobExecution)
        Converts a JSON-Array at the configured position and returns multiple data items from it. Each data item contains only a single value from the array at the old array's position.
        Parameters:
        data - The data the action will work with.
        jobExecution - The job execution log.
        Returns:
        Data items for each array element.