10 include_once (
"FDL/Class.Doc.php");
19 $tid = GetHttpVars(
"tid");
21 header(
'Content-type: text/xml; charset=utf-8');
23 $action->lay->set(
"CODE",
"KO");
25 if ($tea !=
"yes")
return;
28 include_once (
"FDL/Class.TaskRequest.php");
30 $ot = new \Dcp\TransformationEngine\Client(
getParam(
"TE_HOST") ,
getParam(
"TE_PORT"));
33 $action->lay->set(
"tid",
$info[
"tid"]);
34 $action->lay->set(
"status",
$info[
"status"]);
35 $action->lay->set(
"engine",
$info[
"engine"]);
36 switch (
$info[
"status"]) {
38 $statusmsg = _(
"File:: Processing");
42 $statusmsg = _(
"File:: Waiting");
46 $statusmsg = _(
"File:: converted");
50 $statusmsg = _(
"File:: failed");
54 $statusmsg =
$info[
"status"];
57 $action->lay->set(
"statusmsg", $statusmsg);
58 $action->lay->set(
"message",
$info[
"comment"]);
59 $action->lay->set(
"CODE",
"OK");
62 $action->lay->set(
"warning",
$err);
getParam($name, $def="")
must be in core or global type
getfiletransstatus(Action &$action)
if($file) if($subject==""&&$file) if($subject=="") $err