done all according to Answer before
<?php
require_once 'include/utils/utils.php';
require 'modules/com_vtiger_workflow/VTEntityMethodManager.inc';
$emm = new VTEntityMethodManager($adb);
#addEntityMethod("Module", "LABEL", "FILENAME", "FUNCTION_NAME");
$emm->addEntityMethod("Accounts", "Update Account","modules/Accounts/updateAccountData.php", "updateAccountData");
?>
2- This file was executed by http://IP/registerworkflow.php
and i can see Update Account in custom Script
3- create simple function
<?php
function updateAccountData($entity){
$file = '/tmp/people.txt';
$current = file_get_contents($file);
$current .= "John Smith\n";
file_put_contents($file, __LINE__.':'.print_r($current, true)."\r\n");
}
?>
4-file /tmp/people.txt was created by me and 777 chmod
5- email send was added to test workflow is executed
(so first step execute Update Account function second email )
But strange is that i can reseive imail but script not put data to a test file