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
Syntaxpublic interface IWorkflowParser<TSchemeMedium> where TSchemeMedium : class
Methods
Parse(WorkflowRuntime, TSchemeMedium, SchemeParsingType)
Returns object model of the scheme of a process
DeclarationProcessDefinition Parse(WorkflowRuntime workflowRuntime, TSchemeMedium schemeMedium, SchemeParsingType schemeParsingType = SchemeParsingType.Strict)
| Type | Name | Description |
|---|---|---|
| WorkflowRuntime | workflowRuntime | |
| {TSchemeMedium} | schemeMedium | Not parsed scheme |
| SchemeParsingType | schemeParsingType | Type of parsing strict or soft. Uses only for upload operations where we need softer scheme check |
| Type | Description |
|---|---|
| ProcessDefinition | ProcessDefinition object |
Parse(WorkflowRuntime, string, SchemeParsingType)
Returns object model of the scheme of a process
DeclarationProcessDefinition Parse(WorkflowRuntime workflowRuntime, string scheme, SchemeParsingType schemeParsingType = SchemeParsingType.Strict)
| Type | Name | Description |
|---|---|---|
| WorkflowRuntime | workflowRuntime | |
| string | scheme | String representation of not parsed scheme |
| SchemeParsingType | schemeParsingType | Type of parsing strict or soft. Uses only for upload operations where we need softer scheme check |
| Type | Description |
|---|---|
| ProcessDefinition | ProcessDefinition object |
SerializeToSchemeMedium(ProcessDefinition)
Serializes object model of the scheme to not parsed scheme
DeclarationTSchemeMedium SerializeToSchemeMedium(ProcessDefinition processDefinition)
| Type | Name | Description |
|---|---|---|
| ProcessDefinition | processDefinition | ProcessDefinition object |
| Type | Description |
|---|---|
| {TSchemeMedium} | Not parsed scheme |
SerializeToString(ProcessDefinition)
Serializes object model of the scheme to string
Declarationstring SerializeToString(ProcessDefinition processDefinition)
| Type | Name | Description |
|---|---|---|
| ProcessDefinition | processDefinition | ProcessDefinition object |
| Type | Description |
|---|---|
| string | String representation of not parsed scheme |