public static TransitionInstanceDto[] fromListOfTransitionInstance(TransitionInstance[] instances) { TransitionInstanceDto[] result = new TransitionInstanceDto[instances.Length]; for (int i = 0; i < result.Length; i++) { result[i] = fromTransitionInstance(instances[i]); } return(result); }
public static TransitionInstanceDto fromTransitionInstance(TransitionInstance instance) { TransitionInstanceDto result = new TransitionInstanceDto(); result.id = instance.Id; result.parentActivityInstanceId = instance.ParentActivityInstanceId; result.activityId = instance.ActivityId; result.activityName = instance.ActivityName; result.activityType = instance.ActivityType; result.processInstanceId = instance.ProcessInstanceId; result.processDefinitionId = instance.ProcessDefinitionId; result.executionId = instance.ExecutionId; return(result); }
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); }