Class SplitArrayAction
- java.lang.Object
-
- com.arassec.igor.core.model.BaseIgorComponent
-
- com.arassec.igor.core.model.action.BaseAction
-
- com.arassec.igor.module.misc.action.util.BaseUtilAction
-
- com.arassec.igor.module.misc.action.util.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.
-
-
Field Summary
-
Fields inherited from class com.arassec.igor.module.misc.action.util.BaseUtilAction
DEFAULT_TIME_UNIT, DEFAULT_TIMESTAMP_FORMAT
-
Fields inherited from class com.arassec.igor.core.model.action.BaseAction
active, numThreads
-
Fields inherited from class com.arassec.igor.core.model.BaseIgorComponent
id
-
-
Constructor Summary
Constructors Constructor Description SplitArrayAction()Creates a new component instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class com.arassec.igor.core.model.action.BaseAction
clone, complete, getJobId, getJsonPathConfiguration, getName, getNumThreads, getString, isActive, isQuery, isSimulation, reset, setActive, setJsonPathConfiguration, setName, setNumThreads
-
Methods inherited from class com.arassec.igor.core.model.BaseIgorComponent
getCategoryId, getId, getTypeId, getUnEditableProperties, initialize, setId, shutdown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.arassec.igor.core.model.IgorComponent
getCategoryId, getId, getTypeId, getUnEditableProperties, initialize, setId, shutdown
-
-
-
-
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.
-
-