Exemplo n.º 1
0
        public override bool Equals(object other)
        {
            var otherAction = other as ContinueWorkflowAction;

            if (otherAction == null)
            {
                return(false);
            }
            return(_completedWorkflowItem.Equals(otherAction._completedWorkflowItem));
        }
Exemplo n.º 2
0
        private void ValidateJump()
        {
            if (_jumpedItem == null)
            {
                return;
            }
            if (_triggeringItem.Equals(_jumpedItem))
            {
                return;
            }
            var triggeringItemBranches = _triggeringItem.ParentBranches().Concat(_triggeringItem.ChildBranches());

            if (!triggeringItemBranches.Any(b => b.Has(_jumpedItem)))
            {
                throw new OutOfBranchJumpException(string.Format(Resources.Invalid_jump, _jumpedItem, _triggeringItem));
            }
        }
 private bool Equals(ScheduleWorkflowItemAction other)
 {
     return(_workflowItem.Equals(other._workflowItem));
 }