Example #1
0
 public bool CanApply(WorkflowGraph graph)
 {
     for (int k = 0; k < Table.Count; ++k)
     {
         if (graph.CanTransition(Table[k].Transition))
         {
             return(true);
         }
     }
     if (UnknownAction != null)
     {
         UnknownAction();
     }
     return(false);
 }
        protected void disconnect()
        {
            Context.DeregisterEveryFrameAction("AppDataModel_update");

            Scene.ChangedEvent    -= on_scene_changed;
            Scene.SelectedEvent   -= on_selected;
            Scene.DeselectedEvent -= on_deselected;

            SODeletedActionMap.Clear();
            SOSelectedActionMap.Clear();
            SODeselectedActionMap.Clear();

            Context  = null;
            Workflow = null;
        }
Example #3
0
 public bool Apply(WorkflowGraph graph)
 {
     for (int k = 0; k < Table.Count; ++k)
     {
         if (graph.IsInState(Table[k].State))
         {
             graph.Transition(Table[k].Transition);
             return(true);
         }
     }
     if (UnknownAction != null)
     {
         UnknownAction();
     }
     return(false);
 }
Example #4
0
 public WorkflowBuilder(WorkflowGraph g)
 {
     Graph = g;
 }
 public virtual void InitializeWorkflow(WorkflowGraph graph)
 {
     this.Workflow = graph;
 }