Exemple #1
0
        public static void RunExample(Configuration confgiration)
        {
            string location = "http://location-testing";

            WorkflowEvent workflow = new WorkflowEvent("cycle_count_finished", location, DateTime.Now, null, 10, new List <string>()
            {
                "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"
            });

            try
            {
                // capture
                WorkflowApi workflowApi = new WorkflowApi(confgiration);
                Console.WriteLine("------------- Capture workflow event");
                workflowApi.CaptureWorkflowEvent(workflow);
                Console.WriteLine("captured workflow events");
            }
            catch (ApiException e)
            {
                Console.WriteLine(e);
            }

            Console.ReadKey();
        }