Ejemplo n.º 1
0
        public static void OnWorkflowState(this ActionInitialising actionInitialising, string stateName)
        {
            actionInitialising.WorkflowActionEntity.ActionState = stateName;
            var actionEntity    = actionInitialising.WorkflowActionEntity;
            var workflowService = actionInitialising.WorkflowService;

            StateflowDbContext.Commands.CreateOrUpdateWorkflowAction(
                workflowService,
                actionEntity);
        }
Ejemplo n.º 2
0
 public static ActionInitialising OnWorkflowEvent(this ActionInitialising actionInitialising, string eventName)
 {
     actionInitialising.WorkflowActionEntity.ActionEvent = eventName;
     return(actionInitialising);
 }
Ejemplo n.º 3
0
 public static void OnWorkflowState(this ActionInitialising actionInitialising, Enum stateName)
 {
     OnWorkflowState(actionInitialising, stateName.ToString());
 }
Ejemplo n.º 4
0
 public static ActionInitialising OnWorkflowEvent(this ActionInitialising actionInitialising, Enum eventName)
 {
     return(OnWorkflowEvent(actionInitialising, eventName.ToString()));
 }