2018-10-14 10:24:36 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using Flowsharp.ActivityResults;
|
|
|
|
|
|
using Flowsharp.Models;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Flowsharp.Activities
|
|
|
|
|
|
{
|
|
|
|
|
|
public class Workflow
|
|
|
|
|
|
{
|
|
|
|
|
|
public Workflow()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Workflow(IEnumerable<IActivity> activities, IEnumerable<Connection> connections)
|
|
|
|
|
|
{
|
|
|
|
|
|
Activities = activities.ToList();
|
2018-10-14 11:49:29 +00:00
|
|
|
|
Connections = connections.ToList();
|
|
|
|
|
|
Scopes = new Stack<WorkflowExecutionScope>();
|
2018-10-14 10:24:36 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IList<IActivity> Activities { get; set; } = new List<IActivity>();
|
|
|
|
|
|
public IList<Connection> Connections { get; set; } = new List<Connection>();
|
2018-10-14 11:49:29 +00:00
|
|
|
|
public Stack<WorkflowExecutionScope> Scopes { get; set; }
|
|
|
|
|
|
public WorkflowExecutionScope CurrentScope { get; set; }
|
2018-10-14 10:24:36 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|