get

get($num_task,&$path,&$type,&$date,&$time,&$count,&$active,&$comments,&$add_params); - get task data with the specified number in the script schedule

The function accepts parameters as input:

  • $num_task – task number
  • $path – path to the script being executed (received parameter)
  • $type – task type (received parameter)
  • $date – date (received parameter)
  • $time – time (received parameter)
  • $count – number of runs (received parameter)
  • $active – whether the task is active (received parameter)
  • $comments – comments (received parameter)
  • $add_params – additional information for the selection task (available from 4.10.6)

    After testing, the function returns the result of its work to the script :
  • true – completed successfully
  • true – failed

    PHP example: window->".basename(__FILE__)."
    "; //1 echo "1.Get the parameters of the given task:"; echo $scheduler->get(2, $path _, $type, $date, $time, $count, $active, $comments, $add_param).":
    "; echo "path =".$path_; echo " ntype =".$type; echo " ndate =".$date; echo " ntime =".$time; echo " ncount =".$count; echo " nactive =".$active; echo " ncomments =".$comments; echo " nadd_param =".$add_param; //end echo "

    "; //Quit $app->quit(); ?>
    Python example: # Additional paths import sys sys.path.insert(0, '../../../Templates PY/') xhe_host = "127.0.0.1:7010" from xweb_human_emulator import * # Start echo("
    scheduler.xxxxxxxxx
    ") # 1 echo("1.Get the parameters of the given task:") path_, type, date, time_, count, active, comments, add_param = scheduler.get(2) echo(scheduler.get(2), ":
    ") echo("path =" + path_) echo(" type = "+ type) echo(" date = "+ date) echo(" time = "+ time_) echo(" count = "+ count) echo(" active = "+ active) echo(" comments = "+ comments) echo(" add_param = "+ add_param) # end echo("

    ") # Quit app.quit()
    C# example: #region using using System; using System.Diagnostics; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading; using XHE; using XHE.XHE_DOM; using XHE.XHE_System; using XHE.XHE_Window; using XHE.XHE_Web; #endregion class Program: XHEScript { static void Main(string [] args) { //init XHE server = "127.0.0.1:7043"; InitXHE(); //Start echo("
    scheduler.clear_tab_content
    "); //variables describing the task string path = ""; int type = -1; string date = ""; string time = ""; int count = -1; bool active = false; string comments = ""; //1 step echo("1.Get the parameters of the given task:"); echo(scheduler.get(0, ref path, ref type, ref date, ref time, ref count, ref active, ref comments) + ":
    "); echo("path =" + path); echo(" ntype =" + type); echo(" ndate =" + date); echo(" ntime =" + time); echo(" ncount =" + count); echo(" nactive =" + active); echo(" ncomments =" + comments); //end echo("

    "); app.quit(); } }
    Java Script example: //connect the object to control the emulator, if not already connected xhe_host = "127.0.0.1:7011"; echo = require("../../../Templates JS/xweb_human_emulator.js"); //Start echo("
    window.get
    "); //1 step echo("1.Get the parameters of the given task:"); var task = new Array(7); echo(scheduler.get(0, task) + ":
    "); //get from the array - task data var path_, type, date, time, count, active, comments; path_ = task [0]; type = task [1]; date = task [2]; time = task [3]; count = task [4]; active = task [5]; comments = task [6]; //display task data echo("path =" + path_); echo(" ntype =" + type); echo(" ndate =" + date); echo(" ntime =" + time); echo(" ncount =" + count); echo(" nactive =" + active); echo(" ncomments =" + comments); //end echo("

    "); //Quit app.quit();