Class CodeScriptFactory
Namespace: Casewhere.Runtime.DSL.Script
Assembly: Casewhere.Runtime.dll
public class CodeScriptFactory : ICodeScriptFactory
Inheritance
Implements
Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Extension Methods
ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<CodeScriptFactory>(CodeScriptFactory)
Constructors
CodeScriptFactory(IDslCompilerContextFacade, IExpressionCompilingService, IDslRuleTranslator, IEngineApi, IScriptComposer)
public CodeScriptFactory(IDslCompilerContextFacade dslCompilerContextFacade, IExpressionCompilingService compilingService, IDslRuleTranslator dslTranslator, IEngineApi engineApi, IScriptComposer scriptComposer)
Parameters
dslCompilerContextFacade IDslCompilerContextFacade
compilingService IExpressionCompilingService
dslTranslator IDslRuleTranslator
engineApi IEngineApi
scriptComposer IScriptComposer
Methods
CreateDOLogicRuleCodeScript(string, object)
Create code script from validation rule definition.
public CodeScript CreateDOLogicRuleCodeScript(string script, object data)
Parameters
script string
data object
Returns
CreateMappingCodeScript(string, object)
Create script to mapping import data to DO property
public CodeScript CreateMappingCodeScript(string script, object mapValue)
Parameters
script string
mapValue object
Returns
HavingContext(WorkflowContext)
public ICodeScriptFactory HavingContext(WorkflowContext context)
Parameters
context WorkflowContext