﻿using System;
using System.Linq;
using System.Activities;
using System.Activities.Statements;
using System.Collections;
using System.Collections.Generic;

namespace FindPathWF
{

    class Program
    {
        static void Main(string[] args)
        {
            if (args.Length <= 1)
            {
                Console.WriteLine("Error! Invalid input parameters.");
                return;
            }

            // create dictionary with input arguments for the workflow
            IDictionary<string, object> input = new Dictionary<string, object>
            {
                {"GraphFilePath", args[0]},
                {"DispatchingMomentsFilePath", args[1]},
                {"PairsFilePath", args[2]},
                {"OutputFileName", args[3]},
                {"IsGraphUndirected", args[4]}
            };

            Activity workflow1 = new Workflow1();
            WorkflowInvoker.Invoke(workflow1, input);
        }
    }
}
