/// <summary> /// creates a new <see cref="WorkflowExecutionController"/> /// </summary> /// <param name="logger">access to logging</param> /// <param name="executionservice">access to workflow execution service</param> /// <param name="compiler">compiles workflow data for execution</param> /// <param name="taskservice">access to task objects</param> public WorkflowExecutionController(ILogger <WorkflowExecutionController> logger, IWorkflowExecutionService executionservice, IWorkflowCompiler compiler, ITaskService taskservice) { this.logger = logger; this.executionservice = executionservice; this.compiler = compiler; this.taskservice = taskservice; }
/// <summary> /// creates a new <see cref="WorkflowExecutionService"/> /// </summary> /// <param name="logger">access to logging</param> /// <param name="taskservice">access to task information</param> /// <param name="importprovider">access to host imports</param> /// <param name="workflowservice">provides workflow data</param> /// <param name="workflowcompiler">compiled workflow data to executable instances</param> public WorkflowExecutionService(ILogger <WorkflowExecutionService> logger, ITaskService taskservice, IMethodProviderService importprovider, IWorkflowService workflowservice, IWorkflowCompiler workflowcompiler) { this.logger = logger; this.taskservice = taskservice; this.importprovider = importprovider; this.workflowservice = workflowservice; this.workflowcompiler = workflowcompiler; }
/// <summary> /// creates a new <see cref="System.Threading.Tasks.TaskScheduler"/> /// </summary> /// <param name="logger">access to logging</param> /// <param name="configuration">access to configuration</param> /// <param name="scheduledtaskservice">access to scheduled task data</param> /// <param name="workflowexecutor">executes workflows</param> /// <param name="scriptexecutor">executes scripts</param> /// <param name="workflowcompiler">compiler for workflow data</param> public TaskScheduler(ILogger <TaskScheduler> logger, IConfiguration configuration, IScheduledTaskService scheduledtaskservice, IWorkflowExecutionService workflowexecutor, IScriptExecutionService scriptexecutor, IWorkflowCompiler workflowcompiler) { this.logger = logger; this.configuration = configuration; this.scheduledtaskservice = scheduledtaskservice; this.workflowexecutor = workflowexecutor; this.scriptexecutor = scriptexecutor; this.workflowcompiler = workflowcompiler; }
/// <summary> /// creates a new <see cref="WorkableExecutor"/> /// </summary> /// <param name="logger">used for logging in workflow</param> /// <param name="workflowservice">access to workflow data</param> /// <param name="compiler">compiled workflows</param> /// <param name="executor">executes compiled workflows</param> /// <param name="name">name of workflow to execute</param> /// <param name="revision">workflow revision (optional)</param> public LuaWorkableExecutor(WorkableLogger logger, IWorkflowService workflowservice, IWorkflowCompiler compiler, IWorkflowExecutionService executor, string name, int?revision) { this.logger = logger; this.workflowservice = workflowservice; this.compiler = compiler; this.executor = executor; this.name = name; this.revision = revision; }
/// <summary> /// creates a new <see cref="ScriptIdMethod"/> /// </summary> /// <param name="workflowname">name of workflow</param> /// <param name="revision">revision of workflow to execute</param> /// <param name="workflowservice">access to workflow data</param> /// <param name="executor">executor used to execute workflow</param> /// <param name="compiler">compiles workflow data for execution</param> public WorkflowNameMethod(string workflowname, int?revision, IWorkflowService workflowservice, IWorkflowExecutionService executor, IWorkflowCompiler compiler) : base(executor, compiler) { this.workflowname = workflowname; this.revision = revision; this.workflowservice = workflowservice; }
/// <summary> /// creates a new <see cref="ScriptIdMethod"/> /// </summary> /// <param name="workflowid">id of workflow</param> /// <param name="revision">revision of workflow to execute</param> /// <param name="workflowservice">access to workflow data</param> /// <param name="executor">executor used to execute workflow</param> /// <param name="compiler">compiles workflow data for execution</param> public WorkflowIdMethod(long workflowid, int?revision, IWorkflowService workflowservice, IWorkflowExecutionService executor, IWorkflowCompiler compiler) : base(executor, compiler) { this.workflowid = workflowid; this.revision = revision; this.workflowservice = workflowservice; }
/// <summary> /// creates a new <see cref="WorkflowMethod"/> /// </summary> /// <param name="executor">executor used to execute workflow</param> /// <param name="compiler">compiles workflow data for execution</param> protected WorkflowMethod(IWorkflowExecutionService executor, IWorkflowCompiler compiler) { this.executor = executor; this.compiler = compiler; }