kappa_sdk.user_tasks.Redefinition#

class kappa_sdk.user_tasks.Redefinition(mode, date=None, old_context=None)[source]#

The redefinition options of the user task.

Note

Should not be instantiated directly.

Attributes

Redefinition.date

Gets the date from which the user task is redefined (optional, used with 'other' mode).

Redefinition.mode

Gets the redefinition mode (start, current, other).

Redefinition.old_context

Gets the old context of the user task before redefinition.

Methods

Parameters:
__init__(mode, date=None, old_context=None)[source]#
Parameters:
Return type:

None

property mode: RedefinitionModeEnum#

Gets the redefinition mode (start, current, other).

property date: datetime | None#

Gets the date from which the user task is redefined (optional, used with ‘other’ mode).

property old_context: Dict[str, Any]#

Gets the old context of the user task before redefinition.