WorkflowDecodable
public protocol WorkflowDecodable
Aspects of the described FlowRepresentable
needed to dynamically generate metadata from the Workflow Data Scheme. Only types conforming to WorkflowDecodable
will be able to be decoded from data.
-
The name of the
FlowRepresentable
as used in the Workflow Data Scheme.Declaration
Swift
static var flowRepresentableName: String { get }
-
Creates a new instance of
FlowRepresentableMetadata
.Declaration
Swift
static func metadataFactory(launchStyle: LaunchStyle, flowPersistence: @escaping (AnyWorkflow.PassedArgs) -> FlowPersistence) -> FlowRepresentableMetadata
-
decodeLaunchStyle(named:
Default implementation) Decodes a
LaunchStyle
from a string.Default Implementation
Decodes a
LaunchStyle
from a string.Declaration
Swift
static func decodeLaunchStyle(named name: String) throws -> LaunchStyle
-
decodeFlowPersistence(named:
Default implementation) Decodes a
FlowPersistence
from a string.Default Implementation
Decodes a
FlowPersistence
from a string.Declaration
Swift
static func decodeFlowPersistence(named name: String) throws -> FlowPersistence
-
decodeLaunchStyle(named:
Default implementation) Default Implementation
Decodes a
LaunchStyle
from a string.Declaration
Swift
public static func decodeLaunchStyle(named name: String) throws -> LaunchStyle
-
metadataFactory(launchStyle:
Default implementationflowPersistence: ) Default Implementation
Creates a new instance of
FlowRepresentableMetadata
Declaration
Swift
public static func metadataFactory(launchStyle: LaunchStyle, flowPersistence: @escaping (AnyWorkflow.PassedArgs) -> FlowPersistence) -> FlowRepresentableMetadata
-
decodeLaunchStyle(named:
Default implementation) Default Implementation
Decodes a
LaunchStyle
from a string.Declaration
Swift
public static func decodeLaunchStyle(named name: String) throws -> LaunchStyle
-
decodeFlowPersistence(named:
Default implementation) Default Implementation
Decodes a
FlowPersistence
from a string.Declaration
Swift
public static func decodeFlowPersistence(named name: String) throws -> FlowPersistence