Skip to main content

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

Class XmlWorkflowParser

Base workflow parser, which parses not parsed process scheme serialized to XML to the object model of a scheme of a process ProcessDefinition

Inheritance

↳ object

    ↳ WorkflowParser<XElement>

        ↳ XmlWorkflowParser

Implements

IWorkflowParser<XElement>

Inherited Members

WorkflowParser<TSchemeMedium>.SerializeToString(ProcessDefinition)

WorkflowParser<TSchemeMedium>.Parse(WorkflowRuntime, TSchemeMedium, SchemeParsingType)

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

MemberwiseClone()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.Parser

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public class XmlWorkflowParser : WorkflowParser<XElement>, IWorkflowParser<XElement>

Methods

ParseTimers(XElement)

Parses timers from not parsed scheme in theirs object model

Declaration
public override List<TimerDefinition> ParseTimers(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMediumNot parsed scheme
Returns
TypeDescription
List<TimerDefinition>List of <xref href="OptimaJet.Workflow.Core.Model.TimerDefinition" data-throw-if-not-resolved="false"></xref> objects

ParseActors(XElement)

Parses actors from not parsed scheme in theirs object model

Declaration
public override List<ActorDefinition> ParseActors(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMediumNot parsed scheme
Returns
TypeDescription
List<ActorDefinition>List of <xref href="OptimaJet.Workflow.Core.Model.ActorDefinition" data-throw-if-not-resolved="false"></xref> objects

ParseLocalization(XElement)

Parses localization items from not parsed scheme in theirs object model

Declaration
public override List<Translation> ParseLocalization(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMediumNot parsed scheme
Returns
TypeDescription
List<Translation>List of <xref href="OptimaJet.Workflow.Core.Model.Translation" data-throw-if-not-resolved="false"></xref> objects

ParseParameters(XElement, SchemeParsingType)

Parses parameters from not parsed scheme in theirs object model

Declaration
public override List<ParameterDefinition> ParseParameters(XElement schemeMedium, SchemeParsingType schemeParsingType = SchemeParsingType.Strict)
Parameters
TypeNameDescription
XElementschemeMediumNot parsed scheme
SchemeParsingTypeschemeParsingTypeType of parsing strict or soft. Uses only for upload operations where we need softer scheme check
Returns
TypeDescription
List<ParameterDefinition>List of <xref href="OptimaJet.Workflow.Core.Model.ParameterDefinition" data-throw-if-not-resolved="false"></xref> objects

ParseCommands(XElement, List<ParameterDefinition>)

Parses commands from not parsed scheme in theirs object model

Declaration
public override List<CommandDefinition> ParseCommands(XElement schemeMedium, List<ParameterDefinition> parameterDefinitions)
Parameters
TypeNameDescription
XElementschemeMediumNot parsed scheme
List<ParameterDefinition>parameterDefinitionsList of parsed parameters <xref href="OptimaJet.Workflow.Core.Model.ParameterDefinition" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
List<CommandDefinition>List of <xref href="OptimaJet.Workflow.Core.Model.CommandDefinition" data-throw-if-not-resolved="false"></xref> objects

ParseComments(XElement)

Declaration
public override List<CommentDefinition> ParseComments(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMedium
Returns
TypeDescription
List<CommentDefinition>

GetCalendarName(XElement)

Declaration
public override string GetCalendarName(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMedium
Returns
TypeDescription
string

ParseActivities(XElement)

Parses activities from not parsed scheme in theirs object model

Declaration
public override List<ActivityDefinition> ParseActivities(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMediumNot parsed scheme
Returns
TypeDescription
List<ActivityDefinition>List of <xref href="OptimaJet.Workflow.Core.Model.ActivityDefinition" data-throw-if-not-resolved="false"></xref> objects

GetExecutionTimeout(XElement)

Gets execution timeout for activity

Declaration
public override ActivityTimeout GetExecutionTimeout(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMedium
Returns
TypeDescription
ActivityTimeoutExecution timeout <xref href="OptimaJet.Workflow.Core.Model.ActivityTimeout" data-throw-if-not-resolved="false"></xref>

GetIdleTimeout(XElement)

Gets idle timeout for activity

Declaration
public override ActivityTimeout GetIdleTimeout(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMedium
Returns
TypeDescription
ActivityTimeoutIdle timeout <xref href="OptimaJet.Workflow.Core.Model.ActivityTimeout" data-throw-if-not-resolved="false"></xref>

GetExceptionsHandlers(XElement)

Gets exceptions handler for activity

Declaration
public override List<ActivityExceptionsHandler> GetExceptionsHandlers(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMedium
Returns
TypeDescription
List<ActivityExceptionsHandler>Exceptions handler

ParseCodeActions(XElement)

Parses code actions from not parsed scheme in theirs object model

Declaration
public override List<CodeActionDefinition> ParseCodeActions(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMediumNot parsed scheme
Returns
TypeDescription
List<CodeActionDefinition>List of <xref href="OptimaJet.Workflow.Core.Model.CodeActionDefinition" data-throw-if-not-resolved="false"></xref> objects

ParseTransitions(XElement, List<ActorDefinition>, List<CommandDefinition>, List<ActivityDefinition>, List<TimerDefinition>)

Parses transitions from not parsed scheme in theirs object model

Declaration
public override List<TransitionDefinition> ParseTransitions(XElement schemeMedium, List<ActorDefinition> actorDefinitions, List<CommandDefinition> commandDefinitions, List<ActivityDefinition> activityDefinitions, List<TimerDefinition> timerDefinitions)
Parameters
TypeNameDescription
XElementschemeMediumNot parsed scheme
List<ActorDefinition>actorDefinitionsList of parsed actors <xref href="OptimaJet.Workflow.Core.Model.ActorDefinition" data-throw-if-not-resolved="false"></xref>
List<CommandDefinition>commandDefinitionsList of parsed commands <xref href="OptimaJet.Workflow.Core.Model.CommandDefinition" data-throw-if-not-resolved="false"></xref>
List<ActivityDefinition>activityDefinitionsList of parsed activities <xref href="OptimaJet.Workflow.Core.Model.ActivityDefinition" data-throw-if-not-resolved="false"></xref>
List<TimerDefinition>timerDefinitionsList of parsed timers <xref href="OptimaJet.Workflow.Core.Model.TimerDefinition" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
List<TransitionDefinition>List of <xref href="OptimaJet.Workflow.Core.Model.TransitionDefinition" data-throw-if-not-resolved="false"></xref> objects

GetSchemeCode(XElement)

Gets the code of the scheme from not parsed scheme

Declaration
public override string GetSchemeCode(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMediumNot parsed scheme
Returns
TypeDescription
stringCode of the scheme

GetCanBeInlined(XElement)

Declaration
public override bool GetCanBeInlined(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMedium
Returns
TypeDescription
bool

GetLogEnabled(XElement)

Declaration
public override bool GetLogEnabled(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMedium
Returns
TypeDescription
bool

GetDesignerSettings(XElement)

Gets designer settings from not parsed scheme

Declaration
public override DesignerSettings GetDesignerSettings(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMediumNot parsed scheme
Returns
TypeDescription
DesignerSettingsDesigner settings

GetConditionInversion(XElement)

Declaration
public static bool GetConditionInversion(XElement element)
Parameters
TypeNameDescription
XElementelement
Returns
TypeDescription
bool

Parse(WorkflowRuntime, string, SchemeParsingType)

Returns object model of the scheme of a process

Declaration
public override ProcessDefinition Parse(WorkflowRuntime workflowRuntime, string scheme, SchemeParsingType schemeParsingType = SchemeParsingType.Strict)
Parameters
TypeNameDescription
WorkflowRuntimeworkflowRuntime
stringschemeString representation of not parsed scheme
SchemeParsingTypeschemeParsingType
Returns
TypeDescription
ProcessDefinitionProcessDefinition object

SerializeToSchemeMedium(ProcessDefinition)

Declaration
public override XElement SerializeToSchemeMedium(ProcessDefinition processDefinition)
Parameters
TypeNameDescription
ProcessDefinitionprocessDefinition
Returns
TypeDescription
XElement

GetSchemeTags(XElement)

Declaration
public override List<string> GetSchemeTags(XElement schemeMedium)
Parameters
TypeNameDescription
XElementschemeMedium
Returns
TypeDescription
List<string>

GetCommonUsings(XElement)

Declaration
public override string GetCommonUsings(XElement element)
Parameters
TypeNameDescription
XElementelement
Returns
TypeDescription
string

Extension Methods