Examples of IProcessInstance


Examples of org.fireflow.engine.IProcessInstance

                      //1、首先签收
                      wi.claim();
                     
                      //2、然后设置流程变量
                      //在实际业务中,申请人应该需要填写一个表单,在这个简单的测试中就省略了……
                      IProcessInstance processInstance =
                        ((TaskInstance)wi.getTaskInstance()).getAliveProcessInstance();
                      processInstance.setProcessInstanceVariable("applicant",
                          CurrentUserAssignmentHandler.APPLICANT);//申请人
                      processInstance.setProcessInstanceVariable("leaveDays",
                          LEAVE_DAYS);//请假天数
                     
                      //3、结束WorkItem
                      //结束workItem会触发流程实例向下一个环节流转,
                      wi.complete();
View Full Code Here

Examples of org.fireflow.engine.IProcessInstance

                      //1、首先签收
                      wi.claim();
                     
                      //2、然后设置流程变量
                      //在实际业务中,审批人应该需要填写一个表单,在这个简单的测试中就省略了……
                      IProcessInstance processInstance =
                        ((TaskInstance)wi.getTaskInstance()).getAliveProcessInstance();
                      processInstance.setProcessInstanceVariable("approvalFlag",
                          APPROVAL_FLAG);//审批意见
                     
                      //3、结束WorkItem
                      //结束workItem会触发流程实例向下一个环节流转,
                      //由于下一个环节是ToolTask,流程引擎会自动调用其ApplicationHandler.
View Full Code Here

Examples of org.fireflow.engine.IProcessInstance

                String deleteHql4Token = "delete from org.fireflow.kernel.impl.Token";

                Query query4ProcessInstance = arg0.createQuery(selectHql4ProcessInstance);
                List processInstanceList = query4ProcessInstance.list();
                for (int i=0;processInstanceList!=null && i<processInstanceList.size();i++){
                    IProcessInstance procInst = (IProcessInstance)processInstanceList.get(i);
                    arg0.delete(procInst);
                }
//                Query query4ProcessInstance = arg0.createQuery(deleteHql4ProcessInstance);
//                query4ProcessInstance.executeUpdate();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.