Referencing flow variables in custom scripts
PreviousReferencing flow variables in a process flowNextReferencing flow & meta variables in mapping transformations
Last updated
Was this helpful?
Was this helpful?
<?php
/**
* Handler function.
*
* @param array $data [
* 'payload' => (string|null) the payload as a string|null
* 'variables' => (array[string]string) any variables as key/value
* 'meta' => (array[string]string) any meta as key/value
* ]
*/
function handle($data)
{
$data['flow']['variables']['customerID'] = 1234567;
return $data;
}