Table of Contents

Class RuntimeComponentCreator

Namespace: Casewhere.Runtime.Engine.Services
Assembly: Casewhere.Runtime.dll

public abstract class RuntimeComponentCreator

Inheritance

objectRuntimeComponentCreator

Derived

RuntimeButtonComponentCreator, RuntimeCanvasComponentCreator, RuntimeCustomHTMLComponentCreator, RuntimeFieldLabelComponentCreator, RuntimeFormDataComponentCreator, RuntimeHiddenFieldComponentCreator, RuntimeIconPickerComponentCreator, RuntimeLabelComponentCreator, RuntimeMonacoEditorComponentCreator, RuntimePdfViewerComponentCreator, RuntimeWidgetContainerComponentCreator, RuntimeWordEditorComponentCreator

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<RuntimeComponentCreator>(RuntimeComponentCreator)

Constructors

RuntimeComponentCreator(IDataClassRepository, IWorkflowRuntime, IList<IComponentStateCreator>)

public RuntimeComponentCreator(IDataClassRepository dataClassRepository, IWorkflowRuntime workflowRuntime, IList<IComponentStateCreator> componentStateCreators)

Parameters

dataClassRepository IDataClassRepository

workflowRuntime IWorkflowRuntime

componentStateCreators IList<IComponentStateCreator>

Fields

_componentStateCreators

protected readonly IList<IComponentStateCreator> _componentStateCreators

Field Value

IList<IComponentStateCreator>

_dataClassRepository

protected readonly IDataClassRepository _dataClassRepository

Field Value

IDataClassRepository

Methods

Accept(Type)

public abstract bool Accept(Type type)

Parameters

type Type

Returns

bool

Create(WorkflowContext, FormActivityDefinition, FormComponent, IList<FormDataSourceObject>, RuntimeComponent)

public RuntimeComponent Create(WorkflowContext workflowContext, FormActivityDefinition formActivityDefinition, FormComponent formComponent, IList<FormDataSourceObject> dataSourceObjects, RuntimeComponent parentRuntimeComponent = null)

Parameters

workflowContext WorkflowContext

formActivityDefinition FormActivityDefinition

formComponent FormComponent

dataSourceObjects IList<FormDataSourceObject>

parentRuntimeComponent RuntimeComponent

Returns

RuntimeComponent

CreateDataBindingProperties(RuntimeComponent, ComponentDataBinding, IList<FormDataSourceObject>)

protected virtual IList<DataBindingProperty> CreateDataBindingProperties(RuntimeComponent runtimeComponent, ComponentDataBinding dataBinding, IList<FormDataSourceObject> dataSourceObjects)

Parameters

runtimeComponent RuntimeComponent

dataBinding ComponentDataBinding

dataSourceObjects IList<FormDataSourceObject>

Returns

IList<DataBindingProperty>

CreateDataBindingProperty(RuntimeComponent, ComponentDataBinding, FormDataSourceObject)

protected virtual DataBindingProperty CreateDataBindingProperty(RuntimeComponent runtimeComponent, ComponentDataBinding dataBinding, FormDataSourceObject dataSourceObject)

Parameters

runtimeComponent RuntimeComponent

dataBinding ComponentDataBinding

dataSourceObject FormDataSourceObject

Returns

DataBindingProperty

CreateDataSourceProperty(RuntimeComponent, DataSourceDataBinding, FormDataSourceObject)

protected virtual DataSourceProperty CreateDataSourceProperty(RuntimeComponent runtimeComponent, DataSourceDataBinding dataBinding, FormDataSourceObject dataSourceObject)

Parameters

runtimeComponent RuntimeComponent

dataBinding DataSourceDataBinding

dataSourceObject FormDataSourceObject

Returns

DataSourceProperty

CreateWorkflowVariableProperty(RuntimeComponent, VariableDataBinding, FormDataSourceObject)

protected virtual WorkflowVariableProperty CreateWorkflowVariableProperty(RuntimeComponent runtimeComponent, VariableDataBinding dataBinding, FormDataSourceObject dataSourceObject)

Parameters

runtimeComponent RuntimeComponent

dataBinding VariableDataBinding

dataSourceObject FormDataSourceObject

Returns

WorkflowVariableProperty

GetPropertyDataType(string, string)

protected Type GetPropertyDataType(string dataClassName, string propertyName)

Parameters

dataClassName string

propertyName string

Returns

Type

GetValue(RuntimeComponent, ComponentDataBinding, FormDataSourceObject)

protected virtual JToken GetValue(RuntimeComponent runtimeComponent, ComponentDataBinding dataBinding, FormDataSourceObject dataSourceObject)

Parameters

runtimeComponent RuntimeComponent

dataBinding ComponentDataBinding

dataSourceObject FormDataSourceObject

Returns

JToken

IsValidDataBinding(FormComponent)

protected bool IsValidDataBinding(FormComponent formComponent)

Parameters

formComponent FormComponent

Returns

bool

SetComponentData(RuntimeComponent, IList<FormDataSourceObject>)

protected virtual void SetComponentData(RuntimeComponent runtimeComponent, IList<FormDataSourceObject> dataSourceObjects)

Parameters

runtimeComponent RuntimeComponent

dataSourceObjects IList<FormDataSourceObject>

SetComponentStates(RuntimeComponent)

protected abstract void SetComponentStates(RuntimeComponent runtimeComponent)

Parameters

runtimeComponent RuntimeComponent

TryAddComponentState(RuntimeComponent, Type)

protected bool TryAddComponentState(RuntimeComponent runtimeComponent, Type componentType)

Parameters

runtimeComponent RuntimeComponent

componentType Type

Returns

bool