/// <inheritdoc/> public StartProcessor(ILoggerFactory loggerFactory, IWorkflowRuntimeContext context, IWorkflowActivityProcessorFactory activityProcessorFactory, IOptions <ApplicationOptions> options, V1WorkflowActivity activity, StartDefinition start) : base(loggerFactory, context, activityProcessorFactory, options, activity) { this.Start = start; }
/// <summary> /// Determines whether or not the specified <see cref="StartDefinition"/> references an existing <see cref="StateDefinition"/> /// </summary> /// <param name="workflow">The <see cref="WorkflowDefinition"/> to validate</param> /// <param name="start">The <see cref="StartDefinition"/> to check</param> /// <returns>A boolean indicating whether or not the specified <see cref="StateDefinition"/> exists</returns> protected virtual bool ReferenceExistingState(WorkflowDefinition workflow, StartDefinition start) { return(workflow.TryGetState(start.StateName, out _)); }