private void InitializeDefault(IWorkflow workflow) { _input = (item) => WorkflowHistoryEvents.WorkflowStartedEvent().Input; _timeout = item => null; _completedAction = e => e.DefaultAction(workflow); _failedAction = e => e.DefaultAction(workflow); _timedoutAction = e => e.DefaultAction(workflow); _schedulingFailedAction = e => e.DefaultAction(workflow); _startFailedAction = e => e.DefaultAction(workflow); _onFalseTrigger = _ => IsStartupItem() ? WorkflowAction.Empty : new TriggerActions(this).FirstJoint(); }
internal ActivityItem(Identity identity, IWorkflow workflow) : base(identity, workflow) { _onCompletionAction = c => c.DefaultAction(workflow); _onFailedAction = c => c.DefaultAction(workflow); _onTimedoutAction = t => t.DefaultAction(workflow); _onCancelledAction = c => c.DefaultAction(workflow); _onCancellationFailedAction = c => c.DefaultAction(workflow); _onFailedSchedulingAction = c => c.DefaultAction(workflow); _inputFunc = a => WorkflowHistoryEvents.WorkflowStartedEvent().Input; _taskListFunc = a => null; _whenFunc = a => true; _onFalseAction = _ => IsStartupItem() ? WorkflowAction.Empty : new TriggerActions(this).FirstJoint(); _priorityFunc = a => null; _timeoutsFunc = a => new ActivityTimeouts(); }