public ActionResult WorkflowImage(string instanceID)
        {
            JavaScriptSerializer serializer = new JavaScriptSerializer();

            ViewBag.Result = serializer.Serialize(WorkflowInstance.GetInstance(instanceID));

            DataTable dt = WorkflowServiceProvider.OfType <IWorkflowActor>().GetRecord(instanceID);

            ViewBag.Record = Newtonsoft.Json.JsonConvert.SerializeObject(dt);

            return(View());
        }
        public void GenerateWFViewData(string WFID)
        {
            List <WorkflowStructure> workflowXmlList = WorkflowServiceProvider
                                                       .OfType <IWorkflowDesignService>()
                                                       .GetWorkflowStructureList();

            List <SelectListItem> fileList = new List <SelectListItem>();

            foreach (WorkflowStructure item in workflowXmlList)
            {
                fileList.Add(new SelectListItem {
                    Text = item.APPELLATION, Value = item.IDENTIFICATION, Selected = (item.IDENTIFICATION == WFID)
                });
            }
            ViewData["WFiles"] = fileList;
        }
 public JsonResult GetConfigs()
 {
     return(JsonWrapper(WorkflowServiceProvider
                        .OfType <IWorkflowConfiguration>()
                        .GetWorkflowConfigs()));
 }