You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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.

PropertyDescriptionDefaultTypeRequired
typeStage class name-stringYes
enableEnable stage for executiontruebooleanNo
nameName for this specific stagestringNo
save_to_intermediateIf true, the result of the stage will be stored in the intermediate instead of the final sectionfalsebooleanNo
expand_resultIndicates if the result of this stage should be expanded into the final data dictionary instead of being appended as usualfalsebooleanNo
ui_onlySection specific for UI configuration that affects the process of the stageobjectNo
halt_on_exceptionIndicates if the pipeline should be interrupted in case of an exceptionfalsebooleanNo
dataDictionary to inject directly into the final responseobjectYes

Example Configuration

_manual = ManualDataInjStage(
    name='manual',
    save_to_intermediate=False,
    expand_result=False,
    data={
        'message': 'This is a manually injected data',
        'count': 10,
        'flag': True
    }
)
  • No labels