/*
require_once($_ENV['JIVENV']['funcFiles']['updDutyDuties']['filePath']);

$arg['id'] = %id%;
$arg['user_id'] = "";

$updDuty = updDutyDuties($arg);
$out['dutyUpdate'] = $updDuty;



require_once($_ENV['JIVENV']['funcFiles']['getDutyDuties']['filePath']);

$functionOut = json_decode(getDutyDuties(%id%), TRUE);
//print_r ($functionOut);
$dutyObj = $functionOut['rows'][0];
$services = $dutyObj['task'];

//$signObj['meta']['duty_duties'][$services] = %id%;
// $visitObj['object'] = $workorderObj['object'];
// $visitObj['services'] = $workorderObj['services'];
// $visitObj['client_id'] = $workorderObj['client_id'];

$dutyMeta = $dutyObj['meta'];
// print_r ($dutyMeta);

$signId = $dutyMeta['sign_workorders'][$services]['id'];
$woMeta['duty_duties'][$services]['id'] = %id%;
$woMetaOut = setMeta ('sign_workorders', $signId , $woMeta, true);

$visitId = $dutyMeta['action_visits']['id'];
$avMeta['duty_duties'][$services]['id'] = %id%;
$avMetaOut = setMeta ('action_visits', $visitId , $avMeta, true);

$_ENV['JIVENV']['woMetaOut'] = $woMeta;
$_ENV['JIVENV']['avMetaOut'] = $avMeta;
$changed = $avMetaOut;
*/