sym.sdk.flow.Run¶
- class sym.sdk.flow.Run(srn: Union[sym.sdk.resource.SRN, str])¶
Bases:
sym.sdk.resource.SymResource
A
Run
represents an instance of aFlow
in progress.For example, each new access request using the sym:template:approval:1.0
Template
would generate a newRun
with data pertaining to that specific access request.Methods
dict
()Represent this resource as a dictionary.
Attributes
A dict mapping
Event
names to theUser
that created eachEvent
.A dict mapping
Event
names to the context attached to eachEvent
.An alias for this resource's slug, derived from its
SRN
.A
Channel
object, which contains information about the where theRun
's firstEvent
came from.A
SRN
object that represents the unique identifier for this resource.- property actors¶
A dict mapping
Event
names to theUser
that created eachEvent
. There will be one entry for eachEvent
in the currentRun
.For example, with a sym:approval
Flow
, after the “approve”Event
is received, the actors may look like this:{ "prompt": <User A>, "request": <User A>, "approve": <User B> }
- property contexts¶
A dict mapping
Event
names to the context attached to eachEvent
. There will be one entry for eachEvent
in the currentRun
.For example, with a sym:approval
Flow
, after the “approve”Event
is received, the contexts may look like this:{ "request": { "additional_id": "12345" } }
- dict()¶
Represent this resource as a dictionary.