agent.domain module

class agent.domain.ProcessData(submission_id, process_id, trigger, results)

Bases: object

Represents data associated with a (possibly multi-step) process.

As steps are completed, their return values are appended to results.

add_result(result)

Add a result from a successful step.

Return type

None

get_last_result()

Get the result of the most recent successful step.

Return type

Any

class agent.domain.Trigger(event=None, before=None, after=None, actor=None, params=<factory>)

Bases: object

Represents a trigger for a process.

This will usually be an Event, but may also be directly triggered by an actor (e.g. manually starting a process via an UI).

actor = None
after = None
before = None
event = None