Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Interface IWorkflowParser<TSchemeMedium>

Interface of a workflow parser, which parses not parsed process scheme OptimaJet.Workflow.Core.Model.SchemeDefinition%601 to the object model of a scheme of a process ProcessDefinition

Namespace: OptimaJet.Workflow.Core.Parser

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public interface IWorkflowParser<TSchemeMedium> where TSchemeMedium : class

Methods

Parse(WorkflowRuntime, TSchemeMedium, SchemeParsingType)

Returns object model of the scheme of a process

Declaration
ProcessDefinition Parse(WorkflowRuntime workflowRuntime, TSchemeMedium schemeMedium, SchemeParsingType schemeParsingType = SchemeParsingType.Strict)
Parameters
TypeNameDescription
WorkflowRuntimeworkflowRuntime
{TSchemeMedium}schemeMediumNot parsed scheme
SchemeParsingTypeschemeParsingTypeType of parsing strict or soft. Uses only for upload operations where we need softer scheme check
Returns
TypeDescription
ProcessDefinitionProcessDefinition object

Parse(WorkflowRuntime, string, SchemeParsingType)

Returns object model of the scheme of a process

Declaration
ProcessDefinition Parse(WorkflowRuntime workflowRuntime, string scheme, SchemeParsingType schemeParsingType = SchemeParsingType.Strict)
Parameters
TypeNameDescription
WorkflowRuntimeworkflowRuntime
stringschemeString representation of not parsed scheme
SchemeParsingTypeschemeParsingTypeType of parsing strict or soft. Uses only for upload operations where we need softer scheme check
Returns
TypeDescription
ProcessDefinitionProcessDefinition object

SerializeToSchemeMedium(ProcessDefinition)

Serializes object model of the scheme to not parsed scheme

Declaration
TSchemeMedium SerializeToSchemeMedium(ProcessDefinition processDefinition)
Parameters
TypeNameDescription
ProcessDefinitionprocessDefinitionProcessDefinition object
Returns
TypeDescription
{TSchemeMedium}Not parsed scheme

SerializeToString(ProcessDefinition)

Serializes object model of the scheme to string

Declaration
string SerializeToString(ProcessDefinition processDefinition)
Parameters
TypeNameDescription
ProcessDefinitionprocessDefinitionProcessDefinition object
Returns
TypeDescription
stringString representation of not parsed scheme

Extension Methods