Exemplo n.º 1
0
 public static ActivityInstanceDto[] fromListOfActivityInstance(ActivityInstance[] instances)
 {
     ActivityInstanceDto[] result = new ActivityInstanceDto[instances.Length];
     for (int i = 0; i < result.Length; i++)
     {
         result[i] = fromActivityInstance(instances[i]);
     }
     return(result);
 }
Exemplo n.º 2
0
        public static ActivityInstanceDto fromActivityInstance(ActivityInstance instance)
        {
            ActivityInstanceDto result = new ActivityInstanceDto();

            result.id = instance.Id;
            result.parentActivityInstanceId = instance.ParentActivityInstanceId;
            result.activityId               = instance.ActivityId;
            result.activityType             = instance.ActivityType;
            result.processInstanceId        = instance.ProcessInstanceId;
            result.processDefinitionId      = instance.ProcessDefinitionId;
            result.childActivityInstances   = fromListOfActivityInstance(instance.ChildActivityInstances);
            result.childTransitionInstances = TransitionInstanceDto.fromListOfTransitionInstance(instance.ChildTransitionInstances);
            result.executionIds             = instance.ExecutionIds;
            result.activityName             = instance.ActivityName;
            return(result);
        }