kappa_sdk.user_tasks.simulation.EventPublisherSimulated#
- class kappa_sdk.user_tasks.simulation.EventPublisherSimulated(*args, **kwargs)[source]#
Event publishing simulation.
Note
Should not be instantiated directly.
Methods
EventPublisherSimulated.publish(from_date, ...)Simulates an event publishing.
- publish(from_date, to_date, value)[source]#
Simulates an event publishing.
Simulates publishing of an event associated with the currently running User Task by doing.. nothing (except for parameter type-checking).
- Parameters:
from_date (datetime) – The date when the event started.
to_date (datetime) – The date when the event has finished.
value (str) – Any additional information that should be published with this User Task event.
- Raises:
TypeError – If parameters have unexpected types.
- Return type:
None