Beispiel #1
0
 public bool TryGetFlowElement(string id, out tFlowElement elm)
 {
     elm = null;
     if (id == null)
     {
         return(false);
     }
     elm = _process.Items.FirstOrDefault(t => t.id.Equals(id));
     return(elm != null);
 }
Beispiel #2
0
 public static bool IsImplicitThrowEvent(tFlowElement item)
 {
     return(item is tImplicitThrowEvent);
 }
Beispiel #3
0
 public static bool IsStartEvent(tFlowElement item)
 {
     return(item is tStartEvent);
 }
Beispiel #4
0
 public static bool IsBoundaryEvent(tFlowElement item)
 {
     return(item is tBoundaryEvent);
 }
Beispiel #5
0
 public static bool IsCallActivity(tFlowElement item)
 {
     return(item is tCallActivity);
 }
Beispiel #6
0
 public static bool IsFlowNode(tFlowElement item)
 {
     return(item is tFlowNode);
 }
Beispiel #7
0
 public static bool IsReceiveTask(tFlowElement item)
 {
     return(item is tReceiveTask);
 }
Beispiel #8
0
 public static bool IsBusinessRuleTask(tFlowElement item)
 {
     return(item is tBusinessRuleTask);
 }
Beispiel #9
0
 public static bool IsEventBasedGateway(tFlowElement item)
 {
     return(item is tEventBasedGateway);
 }
Beispiel #10
0
 public static bool IsComplexGateway(tFlowElement item)
 {
     return(item is tComplexGateway);
 }
Beispiel #11
0
 public static bool IsGateway(tFlowElement item)
 {
     return(item is tGateway);
 }
Beispiel #12
0
 public static bool IsSubChoreography(tFlowElement item)
 {
     return(item is tSubChoreography);
 }
Beispiel #13
0
 public static bool IsChoreographyTask(tFlowElement item)
 {
     return(item is tChoreographyTask);
 }
Beispiel #14
0
 public static bool IsChoreographyActivity(tFlowElement item)
 {
     return(item is tChoreographyActivity);
 }
Beispiel #15
0
 public static bool IsTransaction(tFlowElement item)
 {
     return(item is tTransaction);
 }
Beispiel #16
0
 public static bool IsUserTask(tFlowElement item)
 {
     return(item is tUserTask);
 }
Beispiel #17
0
 public static bool IsInclusiveGateway(tFlowElement item)
 {
     return(item is tInclusiveGateway);
 }
Beispiel #18
0
 public static bool IsManualTask(tFlowElement item)
 {
     return(item is tManualTask);
 }
Beispiel #19
0
 public static bool IsParallelGateway(tFlowElement item)
 {
     return(item is tParallelGateway);
 }
Beispiel #20
0
 public static bool IsScriptTask(tFlowElement item)
 {
     return(item is tScriptTask);
 }
Beispiel #21
0
 public static bool IsDataObject(tFlowElement item)
 {
     return(item is tDataObject);
 }
Beispiel #22
0
 public static bool IsServiceTask(tFlowElement item)
 {
     return(item is tServiceTask);
 }
Beispiel #23
0
 public static bool IsDataStoreReference(tFlowElement item)
 {
     return(item is tDataStoreReference);
 }
Beispiel #24
0
 public static bool IsCatchEvent(tFlowElement item)
 {
     return(item is tCatchEvent);
 }
Beispiel #25
0
 public static bool IsSequenceFlow(tFlowElement item)
 {
     return(item is tSequenceFlow);
 }
Beispiel #26
0
 public static bool IsIntermediateCatchEvent(tFlowElement item)
 {
     return(item is tIntermediateCatchEvent);
 }
Beispiel #27
0
 public static ProcessItemType GetProcessType(tFlowElement item)
 {
     if (IsFlowNode(item))
     {
         if (IsActivity(item))
         {
             if (IsSubProcess(item))
             {
                 if (IsAdHocSubProcess(item))
                 {
                     return(ProcessItemType.AdHocSubProcess);
                 }
                 else if (IsTransaction(item))
                 {
                     return(ProcessItemType.Transaction);
                 }
                 else
                 {
                     return(ProcessItemType.SubProcess);
                 }
             }
             else if (IsTask(item))
             {
                 if (IsUserTask(item))
                 {
                     return(ProcessItemType.UserTask);
                 }
                 else if (IsBusinessRuleTask(item))
                 {
                     return(ProcessItemType.BusinessRuleTask);
                 }
                 else if (IsManualTask(item))
                 {
                     return(ProcessItemType.ManualTask);
                 }
                 else if (IsReceiveTask(item))
                 {
                     return(ProcessItemType.ReceiveTask);
                 }
                 else if (IsScriptTask(item))
                 {
                     return(ProcessItemType.ScriptTask);
                 }
                 else if (IsSendTask(item))
                 {
                     return(ProcessItemType.SendTask);
                 }
                 else if (IsServiceTask(item))
                 {
                     return(ProcessItemType.ServiceTask);
                 }
                 else
                 {
                     return(ProcessItemType.Task);
                 }
             }
             else if (IsCallActivity(item))
             {
                 return(ProcessItemType.CallActivity);
             }
         }
         else if (IsEvent(item))
         {
             if (IsCatchEvent(item))
             {
                 if (IsBoundaryEvent(item))
                 {
                     return(ProcessItemType.BoundaryEvent);
                 }
                 else if (IsIntermediateCatchEvent(item))
                 {
                     return(ProcessItemType.IntermediateCatchEvent);
                 }
                 else if (IsStartEvent(item))
                 {
                     return(ProcessItemType.StartEvent);
                 }
             }
             if (IsThrowEvent(item))
             {
                 if (IsEndEvent(item))
                 {
                     return(ProcessItemType.EndEvent);
                 }
                 else if (IsImplicitThrowEvent(item))
                 {
                     return(ProcessItemType.ImplicitThrowEvent);
                 }
                 else if (IsIntermediateThrowEvent(item))
                 {
                     return(ProcessItemType.IntermediateThrowEvent);
                 }
             }
         }
         else if (IsChoreographyActivity(item))
         {
             if (IsCallChoreography(item))
             {
                 return(ProcessItemType.CallChoreography);
             }
             else if (IsChoreographyTask(item))
             {
                 return(ProcessItemType.ChoreographyTask);
             }
             else if (IsSubChoreography(item))
             {
                 return(ProcessItemType.SubChoreography);
             }
         }
         else if (IsGateway(item))
         {
             if (IsComplexGateway(item))
             {
                 return(ProcessItemType.ComplexGateway);
             }
             else if (IsEventBasedGateway(item))
             {
                 return(ProcessItemType.EventBasedGateway);
             }
             else if (IsExclusiveGateway(item))
             {
                 return(ProcessItemType.ExclusiveGateway);
             }
             else if (IsInclusiveGateway(item))
             {
                 return(ProcessItemType.InclusiveGateway);
             }
             else if (IsParallelGateway(item))
             {
                 return(ProcessItemType.ParallelGateway);
             }
         }
     }
     else if (IsDataObject(item))
     {
         return(ProcessItemType.DataObject);
     }
     else if (IsDataObjectReference(item))
     {
         return(ProcessItemType.DataObjectReference);
     }
     else if (IsDataStoreReference(item))
     {
         return(ProcessItemType.DataStoreReference);
     }
     else if (IsSequenceFlow(item))
     {
         return(ProcessItemType.SequenceFlow);
     }
     throw new ArgumentException("Unknown ProcessItemType of " + item.GetType().Name);
 }
Beispiel #28
0
 public static bool IsAdHocSubProcess(tFlowElement item)
 {
     return(item is tAdHocSubProcess);
 }
Beispiel #29
0
 public static bool IsEndEvent(tFlowElement item)
 {
     return(item is tEndEvent);
 }