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
Type | Name | Description |
---|
XElement | schemeMedium | Not parsed scheme |
Returns
Type | Description |
---|
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
Type | Name | Description |
---|
XElement | schemeMedium | Not parsed scheme |
Returns
Type | Description |
---|
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
Type | Name | Description |
---|
XElement | schemeMedium | Not parsed scheme |
Returns
Type | Description |
---|
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
Type | Name | Description |
---|
XElement | schemeMedium | Not parsed scheme |
SchemeParsingType | schemeParsingType | Type of parsing strict or soft. Uses only for upload operations where we need softer scheme check |
Returns
Type | Description |
---|
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
Type | Name | Description |
---|
XElement | schemeMedium | Not parsed scheme |
List<ParameterDefinition> | parameterDefinitions | List of parsed parameters <xref href="OptimaJet.Workflow.Core.Model.ParameterDefinition" data-throw-if-not-resolved="false"></xref> |
Returns
Type | Description |
---|
List<CommandDefinition> | List of <xref href="OptimaJet.Workflow.Core.Model.CommandDefinition" data-throw-if-not-resolved="false"></xref> objects |
Declaration
public override List<CommentDefinition> ParseComments(XElement schemeMedium)
Parameters
Type | Name | Description |
---|
XElement | schemeMedium | |
Returns
Type | Description |
---|
List<CommentDefinition> | |
GetCalendarName(XElement)
Declaration
public override string GetCalendarName(XElement schemeMedium)
Parameters
Type | Name | Description |
---|
XElement | schemeMedium | |
Returns
ParseActivities(XElement)
Parses activities from not parsed scheme in theirs object model
Declaration
public override List<ActivityDefinition> ParseActivities(XElement schemeMedium)
Parameters
Type | Name | Description |
---|
XElement | schemeMedium | Not parsed scheme |
Returns
Type | Description |
---|
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
Type | Name | Description |
---|
XElement | schemeMedium | |
Returns
Type | Description |
---|
ActivityTimeout | Execution 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
Type | Name | Description |
---|
XElement | schemeMedium | |
Returns
Type | Description |
---|
ActivityTimeout | Idle 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
Type | Name | Description |
---|
XElement | schemeMedium | |
Returns
Type | Description |
---|
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
Type | Name | Description |
---|
XElement | schemeMedium | Not parsed scheme |
Returns
Type | Description |
---|
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
Type | Name | Description |
---|
XElement | schemeMedium | Not parsed scheme |
List<ActorDefinition> | actorDefinitions | List of parsed actors <xref href="OptimaJet.Workflow.Core.Model.ActorDefinition" data-throw-if-not-resolved="false"></xref> |
List<CommandDefinition> | commandDefinitions | List of parsed commands <xref href="OptimaJet.Workflow.Core.Model.CommandDefinition" data-throw-if-not-resolved="false"></xref> |
List<ActivityDefinition> | activityDefinitions | List of parsed activities <xref href="OptimaJet.Workflow.Core.Model.ActivityDefinition" data-throw-if-not-resolved="false"></xref> |
List<TimerDefinition> | timerDefinitions | List of parsed timers <xref href="OptimaJet.Workflow.Core.Model.TimerDefinition" data-throw-if-not-resolved="false"></xref> |
Returns
Type | Description |
---|
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
Type | Name | Description |
---|
XElement | schemeMedium | Not parsed scheme |
Returns
Type | Description |
---|
string | Code of the scheme |
GetCanBeInlined(XElement)
Declaration
public override bool GetCanBeInlined(XElement schemeMedium)
Parameters
Type | Name | Description |
---|
XElement | schemeMedium | |
Returns
GetLogEnabled(XElement)
Declaration
public override bool GetLogEnabled(XElement schemeMedium)
Parameters
Type | Name | Description |
---|
XElement | schemeMedium | |
Returns
GetDesignerSettings(XElement)
Gets designer settings from not parsed scheme
Declaration
public override DesignerSettings GetDesignerSettings(XElement schemeMedium)
Parameters
Type | Name | Description |
---|
XElement | schemeMedium | Not parsed scheme |
Returns
Type | Description |
---|
DesignerSettings | Designer settings |
GetConditionInversion(XElement)
Declaration
public static bool GetConditionInversion(XElement element)
Parameters
Type | Name | Description |
---|
XElement | element | |
Returns
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
Type | Name | Description |
---|
WorkflowRuntime | workflowRuntime | |
string | scheme | String representation of not parsed scheme |
SchemeParsingType | schemeParsingType | |
Returns
Type | Description |
---|
ProcessDefinition | ProcessDefinition object |
SerializeToSchemeMedium(ProcessDefinition)
Declaration
public override XElement SerializeToSchemeMedium(ProcessDefinition processDefinition)
Parameters
Type | Name | Description |
---|
ProcessDefinition | processDefinition | |
Returns
Declaration
public override List<string> GetSchemeTags(XElement schemeMedium)
Parameters
Type | Name | Description |
---|
XElement | schemeMedium | |
Returns
Type | Description |
---|
List<string> | |
GetCommonUsings(XElement)
Declaration
public override string GetCommonUsings(XElement element)
Parameters
Type | Name | Description |
---|
XElement | element | |
Returns
Extension Methods