kappa_sdk.user_tasks.EventPublisher#

class kappa_sdk.user_tasks.EventPublisher(*args, **kwargs)[source]#

Event publisher.

Note

Should not be instantiated directly.

Methods

EventPublisher.publish(from_date, to_date, value)

Publishes an event.

publish(from_date, to_date, value)[source]#

Publishes an event.

Publishes an event associated with the currently running User Task. Does not publish if run in simulation mode.

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

__init__(*args, **kwargs)#