internal WorkflowAction FirstJoint(WorkflowItem jumptedItem) { var trigger = new TriggerWorkflowAction(_triggeringItem); trigger.SetJumpedItem(jumptedItem); return(trigger); }
internal WorkflowAction FirstJoint(IWorkflowItem beforeItem) { var workflowItem = beforeItem as WorkflowItem; Ensure.NotNull(workflowItem, nameof(beforeItem)); var trigger = new TriggerWorkflowAction(_triggeringItem); trigger.SetJumpedItem(workflowItem); return(trigger); }