resolveParamsData example

$context = $flow->getContext();

        $appFlowActionData = $this->getAppFlowActionData($appFlowActionId);

        if (empty($appFlowActionData)) {
            return [];
        }

        $additionData = $this->businessEventEncoder->encodeData($flow->data()$flow->stored());
        $data = [...$flow->getConfig(), ...$additionData];

        $configData = $this->resolveParamsData($flow->getConfig()$data$context$appFlowActionId);
        /** @var array<string, mixed> $data */
        $data = [...$configData, ...$additionData];

        /** @var string $parameterData */
        $parameterData = $appFlowActionData['parameters'];
        /** @var array<string, string> $parameters */
        $parameters = array_column(json_decode($parameterData, true, 512, \JSON_THROW_ON_ERROR), 'value', 'name');

        /** @var string $headersData */
        $headersData = $appFlowActionData['headers'];
        /** @var array<string, string> $headers */
        
$context = $flow->getContext();

        $appFlowActionData = $this->getAppFlowActionData($appFlowActionId);

        if (empty($appFlowActionData)) {
            return [];
        }

        $additionData = $this->businessEventEncoder->encodeData($flow->data()$flow->stored());
        $data = [...$flow->getConfig(), ...$additionData];

        $configData = $this->resolveParamsData($flow->getConfig()$data$context$appFlowActionId);
        /** @var array<string, mixed> $data */
        $data = [...$configData, ...$additionData];

        /** @var string $parameterData */
        $parameterData = $appFlowActionData['parameters'];
        /** @var array<string, string> $parameters */
        $parameters = array_column(json_decode($parameterData, true, 512, \JSON_THROW_ON_ERROR), 'value', 'name');

        /** @var string $headersData */
        $headersData = $appFlowActionData['headers'];
        /** @var array<string, string> $headers */
        
Home | Imprint | This part of the site doesn't use cookies.