Chore
Chore(name, start_time, dst_sensitivity, active, execution_mode, frequency, tasks)
Bases: TM1Object
Abstraction of TM1 Chore
Source code in TM1py/Objects/Chore.py
MULTIPLE_COMMIT = 'MultipleCommit'
class-attribute
instance-attribute
SINGLE_COMMIT = 'SingleCommit'
class-attribute
instance-attribute
active
property
body
property
body_as_dict
property
dst_sensitivity
property
writable
execution_mode
property
writable
execution_path
property
1 chore together with its executed processes Use case: building out a tree of chores and their processes (and again the processes that are called by the latter (if any)).
Returns:
| Type | Description |
|---|---|
Dict
|
dictionary containing chore name as the key and a list of process names as the value |
frequency
property
writable
name
property
writable
start_time
property
writable
tasks
property
writable
add_task(task)
construct_body()
construct self.body (json) from the class attributes
Returns:
| Type | Description |
|---|---|
str
|
String, TM1 JSON representation of a chore |
Source code in TM1py/Objects/Chore.py
deactivate()
from_dict(chore_as_dict)
classmethod
Alternative constructor
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chore_as_dict
|
Dict
|
Chore as dict |
required |
Returns:
| Type | Description |
|---|---|
Chore
|
Chore, an instance of this class |
Source code in TM1py/Objects/Chore.py
from_json(chore_as_json)
classmethod
Alternative constructor
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chore_as_json
|
str
|
string, JSON. Response of /Chores('x')/Tasks?$expand=* |
required |
Returns:
| Type | Description |
|---|---|
Chore
|
Chore, an instance of this class |