kappa_sdk.user_tasks.simulation.SimulatedUserTask#
- class kappa_sdk.user_tasks.simulation.SimulatedUserTask(well, name, outputs)[source]#
User task object.
Presents a KAPPA Automate user task information object.
Attributes
SimulatedUserTask.custom_workflow_idGet the custom workflow id of the
UserTaskobject.Gets the list of the documents under this
UserTask.Gets the list of the files under this
UserTask.Gets the id of the
UserTaskobjectRetrieves the user task inputs.
Gets the name of the
UserTask.Gets the list of outputs of the
UserTask.Gets the list of the plot instances of the
UserTask.Gets the user task definition name of the
UserTaskobject.Gets the user task id (processing service) of the
UserTaskobject.Get the custom workflow id of the
UserTaskobject.Methods
SimulatedUserTask.create_plot(plot_name[, ...])Create a Kappa Automate Plot instance under the user task
Delete the User Task
SimulatedUserTask.rename(new_name)Rename the User Task
- create_plot(plot_name, pane_name=None, square_log_cycles=False, stacked_bars=False, x_label='', is_x_log=False, labels=None)[source]#
Create a Kappa Automate Plot instance under the user task
- Parameters:
plot_name (str) – Name of plot
pane_name (str | None) – Name of the pane
square_log_cycles (bool) – Whether or not use Square log cycles
stacked_bars (bool) – Whether or not use stacked bars
x_label (str) – x label
is_x_log (bool) – Whether or not use logarithmic scale for x values
labels (List[str] | None) – Add some labels to the plot
- Returns:
Plot– The new Plot instance created under the task.- Return type:
- property user_task_instance_id: None#
Gets the user task id (processing service) of the
UserTaskobject. Since we are in simulation mode it is None
- property name: str#
Gets the name of the
UserTask.
- property id: str#
Gets the id of the
UserTaskobject
- property workflow_id: str | None#
Get the custom workflow id of the
UserTaskobject. Since we are in simulation mode it is None
- property user_task_definition_name: None#
Gets the user task definition name of the
UserTaskobject.
- property inputs: None#
Retrieves the user task inputs. Returns None in simulation mode