The ManualDataInjStage is a simple stage that allows you to inject a dictionary defined in data, directly into the pipeline flow. The injected dictionary will end up in the final response, or if the save_to_intermediate property is set to true, it will be stored in the intermediate response.
If the expand_result property is set to true, the data will be stored directly in the root of the final or intermediate response instead of inside a key with the stage name.
Property | Description | Default | Type | Required |
---|---|---|---|---|
type | Stage class name | - | string | Yes |
enable | Enable stage for execution | true | boolean | No |
name | Name for this specific stage | string | No | |
save_to_intermediate | If true, the result of the stage will be stored in the intermediate instead of the final section | false | boolean | No |
expand_result | Indicates if the result of this stage should be expanded into the final data dictionary instead of being appended as usual | false | boolean | No |
ui_only | Section specific for UI configuration that affects the process of the stage | object | No | |
halt_on_exception | Indicates if the pipeline should be interrupted in case of an exception | false | boolean | No |
data | Dictionary to inject directly into the final response | object | Yes |
_manual = ManualDataInjStage( name='manual', save_to_intermediate=False, expand_result=False, data={ 'message': 'This is a manually injected data', 'count': 10, 'flag': True } )