Performing an Action with execaction - Command Line Only
Use this procedure if you want to perform an action for a business class by specifying all of the needed information in a single command.
For more information on all of the available command line parameters and options, see the "execaction" topic in the Infor Landmark Technology Utility Reference Guide
To perform an action with execaction - command line only
- Gather the information needed to define the action to be executed. This will vary depending on the business class and action involved. At a minimum, you will need the data area, the business class, the name of the action, and all of the fields required by the action.
- At the Landmark command line, type
execaction [-e [l|g]] dataarea busclass action [-H host] [-P port] [-f file | -i] [--form | --formname formName]] [-z timeZone] [-S | -F] [--fields | --sched ] fieldname=value [...] [-v displayoptions] [--poll pollFrequency [pollCallMax]] [--sessionkeys key=value [...]]Program Option Description dataareaThe data area the action applies to. busclassThe business class the action applies to. actionThe action to be performed. -a actionNameThe name of the action (for use in data file). -b businessClassThe business class name (for use in data file). -e l|gAllows you to control how the repository is loaded. The default is g(for grid). Ifgis specified, thenexecactionuses the repository already loaded in the grid, resulting in better performance. Iflis specified, the repository is loaded to the local client, which can be time-consuming for large applications.-f fileThe data file to use.
Note:If the business class and action are not specified at the command line, you must specify them in the file.
See Input Data Files for execaction for more detail on how to construct the data file for the
execactionutility.-hShow syntax. -H hostSpecify the grid host. You generally do not need to set this as the execactionutility finds the grid host on its own.-P portSpecify the grid port. You generally do not need to set this as the execactionutility finds the grid port on its own.-iInteractive mode. In interactive mode, you will be prompted for a value for each field. You can enter a space to send a blank value, enter a return to send the default value, or enter a specific value. -sInclude schedule view fields (valid only with --showfields).-SForce scheduled execution event if normally a foreground action. -FForce foreground execution event if a scheduled action. -z timeZoneUse to specify a time zone when scheduling a task. --formGet fields based on the default form. --formName formNameGet fields based on the specified form. --fields fields...Field name/value pairs required by the action. --sched fields...Specify schedule field name/value pairs in order to schedule the processing of the action. You can view the schedule fields by using the --showfieldsand-soptions.--poll pollFrequency [pollCallMax]]Specify the poll frequency and the maximum number of poll calls.
Polling is only valid for an action that is submitted to the background.
The default poll frequency is five seconds and the default maximum number of poll calls is -1, which represents unlimited calls. If
--pollis not specified, the default is to not poll. If only--pollis specified, it will poll every five seconds. It will do this until the action completes or only failures. If all arguments are specified (for example,--poll 10 20), polling will happen every specified number of seconds but will stop and fail if all actions have not been completed (or only failures remain) and the system has polled the specified number of times.Return codes:
-
0 (Success) - If multiple actions were run in a single execaction call (via file or interactive), all completed.
-
1 (Failed) - If multiple actions were run in a single execaction call (via file or interactive), the first failed.
-
2 (Failed with Completed) - If multiple actions were run in a single execaction call (via file or interactive), some completed before one failed and aborted.
-
3 (Complete with Errors) - Polling was done on a background group. The group cannot move on because only failures remain. Some may have completed.
-
4 (Poll Time Out ) - Polling was done on a background group and a maximum number of poll attempts was specified and exceeded before the background group completed or failed.
-
5 (Poll Failed) - Polling was done on a background group but here was an error with the polling process. The system could not determine the state of the background group.
--sessionkeysExecute with context key/value pairs ( key=value key=value ...), for example, context.asofdate="2130931".-v displayoptionserrorlevel,tracelevel, andverbosespecified in any order, where:-
errorlevel= {n}one | {f}atal | {e}rror | {w}arning (warning is the default) -
tracelevel= 0:6 where 0 is no message and 6 is everything -
verbose= whether to display exception stacktrace
-