Predefined Variables in AutoScript for Agents
When calling an Agent of any type, into its AutoScript, there are variable that the system has already defined and gave values to them. Those are:
_UserName {...string}
_ComputerName {..string}
_Procedure {...numeric (the id of procedure)}
_CurrentDate {...string }
_CurrentHour {...string hh:mm:ss}
_TraversingHour {...numeric 1..24)
_TraversingWeek {...numeric (week of the year)}
_CurrentDate_Num {...numeric (for today)}
_TraversingHour_Num {...numeric (between 0 and 1)}
_CurrentYear_Num {...numeric (year 2010, 2011 etc)}
_CurrentMonth_Num {...numeric 1..12}
_CurrentMonthDay_Num {...numeric 1..31}
_CurrentYearDay_Num {...numeric 1..365 or 366}
_CurrentWeekDay_Num {...numeric 1..7}
_DayName {...string}
_MonthName {...string}
_Today {....numeric today}
_Tomorow {...numeric tomorow}
_DayAfterTomorow {...numeric day after tomorow}
In cases when the system fires a business rule (when-endwhen) construct, then there are some other variables defined (inside the rule)
fired_hour {1..24}
fired_week {week of year}
fired_date {date as number}
fired_year {2010, 2011,...}
fired_month {1..12}
fired_monthday {1..31}
fired_yearday {1..366}
fired_weekday {1..7}
fired_dayname
fired_monthname