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
FlowRepresentableas 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
LaunchStylefrom a string.Default Implementation
Decodes a
LaunchStylefrom a string.Declaration
Swift
static func decodeLaunchStyle(named name: String) throws -> LaunchStyle -
decodeFlowPersistence(named:Default implementation) Decodes a
FlowPersistencefrom a string.Default Implementation
Decodes a
FlowPersistencefrom a string.Declaration
Swift
static func decodeFlowPersistence(named name: String) throws -> FlowPersistence
-
decodeLaunchStyle(named:Default implementation) Default Implementation
Decodes a
LaunchStylefrom a string.Declaration
Swift
public static func decodeLaunchStyle(named name: String) throws -> LaunchStyle
-
metadataFactory(launchStyle:Default implementationflowPersistence: ) Default Implementation
Creates a new instance of
FlowRepresentableMetadataDeclaration
Swift
public static func metadataFactory(launchStyle: LaunchStyle, flowPersistence: @escaping (AnyWorkflow.PassedArgs) -> FlowPersistence) -> FlowRepresentableMetadata -
decodeLaunchStyle(named:Default implementation) Default Implementation
Decodes a
LaunchStylefrom a string.Declaration
Swift
public static func decodeLaunchStyle(named name: String) throws -> LaunchStyle -
decodeFlowPersistence(named:Default implementation) Default Implementation
Decodes a
FlowPersistencefrom a string.Declaration
Swift
public static func decodeFlowPersistence(named name: String) throws -> FlowPersistence
View on GitHub
WorkflowDecodable Protocol Reference