// Si la actividad devuelve un valor, se debe derivar de CodeActivity<TResult> // y devolver el valor desde el método Execute. protected override void Execute(CodeActivityContext context) { // Obtenga el valor de tiempo de ejecución del argumento de entrada Text int workflowID = context.GetValue(this.WorkflowID); ActivityDataModel nextActivity = WorkflowBO.GetInstance().GetNextWorkflowActivity(workflowID); context.SetValue(Activity, nextActivity); }
public ActionResult ActivityChildrenField(int id) { int count = WorkflowBO.GetInstance().GetActivityCount(id); ChildrenFieldUIModel model = new ChildrenFieldUIModel() { ID = id, Count = count, ClassName = "Activity" }; return(View("ChildrenField", model)); }
public ActionResult Edit(int id) { return(View(WorkflowBO.GetInstance().Get(id))); }
public ActionResult Create(WorkflowDataModel workflow) { WorkflowBO.GetInstance().Create(workflow); return(RedirectToAction("Index")); }
// // GET: /ManageWorkflow/ public ActionResult Index() { return(View(WorkflowBO.GetInstance().GetAll())); }