Package io.serverlessworkflow.api
Class WorkflowWriter
java.lang.Object
io.serverlessworkflow.api.WorkflowWriter
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
workflowAsBytes
(Workflow workflow, WorkflowFormat format) static String
workflowAsString
(Workflow workflow, WorkflowFormat format) static void
writeWorkflow
(OutputStream output, Workflow workflow, WorkflowFormat format) static void
writeWorkflow
(Writer output, Workflow workflow, WorkflowFormat format) static void
writeWorkflow
(Path output, Workflow workflow) static void
writeWorkflow
(Path output, Workflow workflow, WorkflowFormat format)
-
Method Details
-
writeWorkflow
public static void writeWorkflow(OutputStream output, Workflow workflow, WorkflowFormat format) throws IOException - Throws:
IOException
-
writeWorkflow
public static void writeWorkflow(Writer output, Workflow workflow, WorkflowFormat format) throws IOException - Throws:
IOException
-
writeWorkflow
- Throws:
IOException
-
writeWorkflow
public static void writeWorkflow(Path output, Workflow workflow, WorkflowFormat format) throws IOException - Throws:
IOException
-
workflowAsString
- Throws:
IOException
-
workflowAsBytes
- Throws:
IOException
-