예제 #1
0
        public void Sdate_Refresh(object sender, StoreRefreshDataEventArgs e)
        {
            List <IWorkItem> iwis = RuntimeContextExamples.GetRuntimeContext().getWorkflowSession().findMyTodoWorkItems(this.User.Identity.Name);

            Sdate.DataSource = iwis;
            Sdate.DataBind();
        }
예제 #2
0
        public void Sdate_Refresh(object sender, StoreRefreshDataEventArgs e)
        {
            List <IWorkItem> iwis = RuntimeContextExamples.GetRuntimeContext().PersistenceService.FindHaveDoneWorkItems(this.User.Identity.Name);

            Sdate.DataSource = iwis;
            Sdate.DataBind();
        }
        public void Sdate_Refresh(object sender, StoreRefreshDataEventArgs e)
        {
            IPersistenceService ips = RuntimeContextExamples.GetRuntimeContext().PersistenceService;
            string username         = this.User.Identity.Name;

            if (username == "admin")
            {
                username = "";
            }
            List <IProcessInstance> pis = ips.FindProcessInstanceListByCreatorId(username, "", 100, 0);

            foreach (IProcessInstance item in pis)
            {
                ((ProcessInstance)item).RuntimeContext = ips.RuntimeContext;
            }
            Sdate.DataSource = pis;
            Sdate.DataBind();
        }
예제 #4
0
 public void query_Click(object sender, AjaxEventArgs e)
 {
     Sdate.DataSource = RuntimeContextExamples.GetRuntimeContext().DefinitionService.GetAllLatestVersionsOfWorkflowDefinition();
     Sdate.DataBind();
 }