Ejemplo n.º 1
0
        /// <summary>
        /// Jump to lambda function. Cause the workflow to fail if target activity is already active
        /// </summary>
        /// <param name="name">Lambda name.</param>
        /// <param name="postionalName">Lambda's postional name</param>
        /// <returns></returns>
        public JumpWorkflowAction ToLambda(string name, string postionalName = "")
        {
            Ensure.NotNullAndEmpty(name, nameof(name));
            var lambdaItem = _workflowItems.LambdaItem(Identity.Lambda(name, postionalName));

            return(WorkflowAction.JumpTo(_triggerItem, lambdaItem));
        }
Ejemplo n.º 2
0
        WorkflowAction IWorkflow.WorkflowAction(LambdaCompletedEvent @event)
        {
            var lambda = _allWorkflowItems.LambdaItem(@event);

            return(lambda.CompletedWorkflowAction(@event));
        }