FlowRepresentableMetadata
open class FlowRepresentableMetadata
Data about a FlowRepresentable.
Discussion
Every time a Workflow is created, the defining characteristics about a FlowRepresentable are stored in the FlowRepresentableMetadata to be used later.
-
Preferred
LaunchStyleof the associatedFlowRepresentable.Declaration
Swift
public private(set) var launchStyle: LaunchStyle { get } -
Preferred
FlowPersistenceof the associatedFlowRepresentable; set whenFlowRepresentableMetadatainstantiates an instance.Declaration
Swift
public private(set) var persistence: FlowPersistence? { get } -
Creates an instance that holds onto metadata associated with the
FlowRepresentable.Declaration
Swift
public convenience init<FR: FlowRepresentable>(_ flowRepresentableType: FR.Type, launchStyle: LaunchStyle = .default, flowPersistence: @escaping (AnyWorkflow.PassedArgs) -> FlowPersistence)Parameters
flowRepresentableTypespecific type of the associated
FlowRepresentable.launchStylethe style to use when launching the
FlowRepresentable.flowPersistencea closure passing arguments to the caller and returning the preferred
FlowPersistence. -
Creates an instance that holds onto metadata associated with the
FlowRepresentable.Declaration
Swift
public init<FR: FlowRepresentable>(_ flowRepresentableType: FR.Type, launchStyle: LaunchStyle = .default, flowPersistence: @escaping (AnyWorkflow.PassedArgs) -> FlowPersistence, flowRepresentableFactory: @escaping (AnyWorkflow.PassedArgs) -> AnyFlowRepresentable)Parameters
flowRepresentableTypespecific type of the associated
FlowRepresentable.launchStylethe style to use when launching the
FlowRepresentable.flowPersistencea closure passing arguments to the caller and returning the preferred
FlowPersistence.flowRepresentableFactorya closure used to generate an
AnyFlowRepresentablefrom theFlowRepresentabletype.
View on GitHub
FlowRepresentableMetadata Class Reference