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

Convert object into a json dictionary.

to_json() -> Dict[str, Any]

Returns

Type Description

The instance of the class converted into a json dictionary

to_json_string

Convert object into a json string.

to_json_string() -> str

Returns

Type Description
str

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

signals

Get list of signals to the entity.

Returns

Type Description

The signals of the entity