EntityState Class
Entity State.
Used to communicate the state of the entity back to the durable extension
Constructor
EntityState(results: List[OperationResult], signals: List[Signal], entity_exists: bool = False, state: str | None = None)
Parameters
| Name | Description |
|---|---|
|
results
Required
|
|
|
signals
Required
|
|
|
entity_exists
|
Default value: False
|
|
state
|
Default value: None
|
Methods
| to_json |
Convert object into a json dictionary. |
| to_json_string |
Convert object into a json string. |
to_json
to_json_string
Convert object into a json string.
to_json_string() -> str
Returns
| Type | Description |
|---|---|
|
The instance of the object in json string format |
Attributes
results
Get list of results of the entity.
Returns
| Type | Description |
|---|---|
|
The results of the entity |