Exemplo n.º 1
0
 public static void ExecuteOn_A_Through_CreateStateMachine(XComponent.SimpleComponent.UserObject.CreateStateMachine createStateMachine, XComponent.SimpleComponent.UserObject.Workflow workflow, object object_InternalMember, Context context, ICreateStateMachineCreateStateMachineOnAWorkflowSenderInterface sender)
 {
     workflow.LastUpdateDate = DateTime.Now;
     workflow.FromTransition = "CreateStateMachine";
     workflow.Id             = createStateMachine.Id;
     sender.AB(context);
 }
Exemplo n.º 2
0
        public static void ExecuteOn_D_Through_BD(XComponent.SimpleComponent.UserObject.BD bD, XComponent.SimpleComponent.UserObject.Workflow workflow, object object_InternalMember, Context context, IBDBDOnDWorkflowSenderInterface sender)
        {
            workflow.LastUpdateDate = DateTime.Now;
            workflow.FromTransition = "BD";

            if (Random.Next(1, 1000) % 2 == 0)
            {
                sender.DC(context);
            }
            else
            {
                sender.DE(context);
            }
        }
Exemplo n.º 3
0
        public static void ExecuteOn_C_Through_DC(XComponent.SimpleComponent.UserObject.DC dC, XComponent.SimpleComponent.UserObject.Workflow workflow, object object_InternalMember, Context context, IDCDCOnCWorkflowSenderInterface sender)
        {
            workflow.LastUpdateDate = DateTime.Now;
            workflow.FromTransition = "DC";

            if (Random.Next(1, 1000) % 2 == 0)
            {
                sender.CD(context);
            }
            else
            {
                sender.CE(context);
            }
        }
Exemplo n.º 4
0
        public static void ExecuteOn_B_Through_AB(XComponent.SimpleComponent.UserObject.AB aB, XComponent.SimpleComponent.UserObject.Workflow workflow, object object_InternalMember, Context context, IABABOnBWorkflowSenderInterface sender)
        {
            workflow.LastUpdateDate = DateTime.Now;
            workflow.FromTransition = "AB";

            if (Random.Next(1, 1000) % 2 == 0)
            {
                sender.BC(context);
            }
            else
            {
                sender.BD(context);
            }
        }