Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

The form of the ExtensionResult constructor when instantiated in the context of Dynamic Command, is as follows:

Constructor Signature

(rc = 0, message = '', output = False, output_data = None, output_name = None, call_frame = None, **kwargs)

Parameters

rc : int, optional

This parameter represents the return code of the Dynamic Command operation and determines whether the Extension task instance is perceived as completing as Success or Failed by the Controller.
A value of 0 indicates success. All other values indicate an error condition and result in a status of Failed in the Controller. The non-zero value used to represent the error condition is implementation defined and therefore left up to the extension developer.

The ExtensionResult class sets a default value of 0.

message : str, optional

This parameter allows the extension to pass a completion message back to the Controller. If rc is set to 0, the message will be considered informational and will be logged by the Controller.
If rc is non-zero, the message will be considered an error message and will be displayed to the user on the task instance form.

The default value is an empty string.

output : bool, optional

This parameter specifies if the command produced output that should be persisted and displayed under the task instance Output tab in the Controller task instance associated with the dynamic command invocation.

The default value is False.

output_data : str, optional

This parameter specifies the data that will be returned to the Controller for the command execution. It is interpreted as a UTF-8 encoded text object.

...

The default value is None.

output_name : str, optional

This attribute is used to provided a custom name for the associated output data. The output_name (if provided) will be used in the presentation of the output_data by the Controller.

The default value is None.

call_frame : frame, optional

Frame of a function call where previous activity of interest occured.

...

Note

The form of the ExtensionResult constructor when instantiated in the context of Choice Command, is as follows:

Constructor Signature

(rc = 0, message = '', values = None, call_frame = None, **kwargs)

Parameters

rc : int, optional

This parameter represents the return code of the 'choice' operation and determines whether the command is perceived as completing with success or failure by the Controller. A value of 0 indicates success. All other values indicate an error condition and will be ignored by the Controller for form field population. However, the Controller will log the commnd response. The non-zero value used to represent the error condition is implementation defined and therefore left up to the extension developer.

The ExtensionResult class sets a default value of 0 to the rc attribute.

message : str, optional

This parameter allows the extension to pass a completion message back to the Controller. The message will be logged by the Controller.

The default value is an empty string.

values : list, optional

This parameter specifies a list of string values to be returned to the Controller and used to populate the associated dynamic choice field on the Extension task form.

The default value is an empty list.

call_frame : frame, optional

frame of the function call where previous activity of interest occured, by default None

Note

The form of the ExtensionResult constructor when instantiated in the context of Extension Start, is as follows:

Constructor Signature

(rc = 0, message = '', output_fields = None, unv_output = None, call_frame = None, **kwargs)

Parameters

rc : int, optional

This parameter represents the return code of the extension_start operation. The associated Universal Task instance in the Controler can use this value to determine the completion status of the Extension instance. The value is implementation defined and therefore left up to the extension developer.

The ExtensionResult class sets a default value of 0.

message : str, optional

This parameter allows the extension to pass a completion message back to the Controller. If rc is set to 0, the message will be considered informational and will be logged by the Controller.
If rc is non-zero, the message will be considered an error message and will be displayed to the user on the task instance form.

The default value is an empty string.

output_fields : dict, optional

Dictionary containing output fields.

The default None.

unv_output : str, optional

The value for this parameter is considered the payload of the task execution. It appears on the task instance Output tab as Universal output type.

The default value is None.

call_frame : frame, optional

Frame of a function call where previous activity of interest occured.

...