CrushMFT Documentation

Task variables#

In the fields of a job's tasks, a name in braces is replaced by a value when the task runs: {name} is the name of the file in hand, {now} the time. How they work, with examples, is in Variables.

This page is the index: every variable that the pages of this wiki describe, 101 of them, by the alphabet, with the page that has the detail. The variables of the server itself, which also work in jobs, are in Server variables.

Kinds of variable#

Kind Examples Described in
the file in hand {name}, {path}, {size}, {url} Variables: the file in hand
the run {scheduleName}, {job_id}, {items_count} Variables: the run
errors {task_error} and its relatives Variables: errors
dates and times {now}, {yyyy}, {MM}, {dd} Variables: dates and times
what a task hands on each task's own, such as the answer of an HTTP call the task's page, under "What it hands on"
the user of an event {user_name} and every field of the user Variables: the user of an event
your own whatever a UserVariable task sets Variables of your own

Any field of the item can be used as a variable by its name, also those a task added. To see what an item holds at some point of a job, write {all} into a mail or a log line there, or use the test in Variables: trying a variable.

Jump to: A B C D E F H I J L M N O P R S T U V W Y

0-9#

Variable Is Described in
{_MM} when the transfer of the file ended (events) Variables

A#

Variable Is Described in
{amount} 250.00 FileParser task

B#

Variable Is Described in
{bias} pull-up, pull-down or disable RaspberryPi task
{body} of the message PopImap task

C#

Variable Is Described in
{customer} ACME FileParser task

D#

Variable Is Described in
{D} day of the year Variables
{dd} day Variables
{dns_challenge_domain} the name the record is for Let's Encrypt by DNS
{dns_challenge_token} the value to put into the TXT record Let's Encrypt by DNS
{drive} dh or dl RaspberryPi task

E#

Variable Is Described in
{EEE} Fri, Friday Variables
{EEEE} Fri, Friday Variables
{ext} the ending, with its dot Variables, Execute task

F#

Variable Is Described in
{fetched} Equals Jump task
{from} the sender's address PopImap task
{from_prefix} the part of it before the @ PopImap task
{full_log} the log of this run so far, the last megabyte of it: for the mail that reports a failure Variables

H#

Variable Is Described in
{header_date} from the message's headers PopImap task
{header_message_id} from the message's headers PopImap task
{header_received} the path the message took, and the sender's address where the headers say it PopImap task
{header_reply_to} from the message's headers PopImap task
{header_return_path} from the message's headers PopImap task
{header_source_ip} the path the message took, and the sender's address where the headers say it PopImap task
{header_x_forwarded_for} the path the message took, and the sender's address where the headers say it PopImap task
{header_x_originating_ip} the path the message took, and the sender's address where the headers say it PopImap task
{HH} Less Than Jump task
{hostname} the name of the machine Variables
{http_response_code} 200, 404 … HTTP task
{http_response_log} the body of the answer HTTP task
{http_response_message} the text beside the code HTTP task

I#

Variable Is Described in
{item_count} how many items the list has Variables
{items_count} how many items the list has Variables, Jump task
{iteration} the count of tries, in a task that retries Variables

J#

Variable Is Described in
{job_id} the id of this run Variables

L#

Variable Is Described in
{line} the whole line FileParser task
{loop_elapsed} how long the loop has been running Loop task
{loop_first} true in the first and in the last pass Loop task
{loop_index} the pass, from 0 Loop task
{loop_last} true in the first and in the last pass Loop task
{loop_number} the pass, from 1 Loop task
{loop_total} how many passes there will be, where that is known: for each item and for a number of times Loop task

M#

Variable Is Described in
{mail_index} the number of the message in this run PopImap task
{mail_type} whether the file is an attachment or the body PopImap task
{md5} the file's checksum, where a task worked it out Variables
{millis} the time as milliseconds Variables
{MM} month, 01-12 Variables
{MM_} when the transfer of the file began (events) Variables
{MMM} Nov, November Variables
{MMMM} Nov, November Variables

N#

Variable Is Described in
{name} the file's name Variables, Execute task
{now} the time as milliseconds Variables

O#

Variable Is Described in
{order} 1001 FileParser task

P#

Variable Is Described in
{parent_path} the folder Variables
{parent_url} the address of the folder Variables
{path} the folder and name on that server Variables
{pin} the GPIO number RaspberryPi task
{pin_list} all pins to read, as separate arguments RaspberryPi task
{pins} all pins to read, as 17,27 RaspberryPi task
{protocol} the kind of address Variables
{pull} pu, pd or pn RaspberryPi task

R#

Variable Is Described in
{real_parent_path} for file:// items, the path as the operating system writes it Variables, Execute task
{real_path} for file:// items, the path as the operating system writes it Variables, Execute task
{row} 1 FileParser task

S#

Variable Is Described in
{schedule_name} the job's name Variables
{scheduleName} the job's name Variables
{scheduleNote} the job's note Variables
{session_log} the log of the user's session, the last megabyte of it Variables
{size} the size in bytes, and as "1.2 MB" Variables, Jump task
{size_formatted} the size in bytes, and as "1.2 MB" Variables
{stem} the name without its last ending Variables, Execute task
{subject} of the message PopImap task

T#

Variable Is Described in
{task_error} the error of the task that failed last Variables, Jump task
{task_error_name} the name of the task that failed last Variables
{task_error_names} the names of all tasks that failed, with commas Variables
{task_errors} all errors of the run so far, one per line Variables
{taskName} the name of the task that is running Variables
{the_file_error} the speed of the transfer, and the error if it failed The event editor
{the_file_name} name and folder of a file, inside <LINE> The event editor
{the_file_path} name and folder of a file, inside <LINE> The event editor
{the_file_size} its size in bytes, and as a readable size such as "1.2 MB" The event editor
{the_file_size_formatted} its size in bytes, and as a readable size such as "1.2 MB" The event editor
{the_file_speed} the speed of the transfer, and the error if it failed The event editor
{thread_dump} what every thread of the server is doing, for the support Variables
{time} the time as milliseconds Variables
{type} FILE or DIR Variables

U#

Variable Is Described in
{u} day of the week as a number Variables
{url} the whole address. A password in it is left out. Variables, The event editor
{user_email} from the user's account Variables, UsersList task
{user_first_name} from the user's account Variables, UsersList task
{user_ip} where they came from, and how Variables
{user_last_name} from the user's account Variables, UsersList task
{user_name} the login name. For a name like an e-mail address, {user_name_at0} is the part before the @ and {user_name_at1} the part after. Variables, UsersList task
{user_phone} from the user's account Variables, UsersList task
{user_protocol} where they came from, and how Variables
{user_time} the time the event ran The event editor

V#

Variable Is Described in
{value} 1 or 0 RaspberryPi task

W#

Variable Is Described in
{w} week of the year, of the month Variables
{W} week of the year, of the month Variables
{working_dir} the server's folder Variables

Y#

Variable Is Described in
{yy} year Variables
{yyyy} year Variables

Functions#

A value can be changed on the way: cut, replaced, counted with. Those are functions: Task functions.

Where this list comes from#

The index is gathered from the pages of this wiki: the variables page and the page of every task. A variable that a task sets and its page does not name is not here; {all} shows such a one on a real run.