第05項(xiàng)目電力兩套筆記_第1頁(yè)
第05項(xiàng)目電力兩套筆記_第2頁(yè)
第05項(xiàng)目電力兩套筆記_第3頁(yè)
第05項(xiàng)目電力兩套筆記_第4頁(yè)
第05項(xiàng)目電力兩套筆記_第5頁(yè)
已閱讀5頁(yè),還剩136頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、一:項(xiàng)目第一天(系統(tǒng)框架* 一:項(xiàng)目第一天(系統(tǒng)框架* 創(chuàng)建數(shù)據(jù)1 packageimport java.util.Date; publicecTextimplementsjava.io.Serializableprivate String textID;private String textName;/測(cè)試名稱 private Date textDate;privateStringtextRemark; /測(cè)試備publicStringgetTextID()returnpublicvoidsetTextID(StringtextID)this.textID=publicStringgetTe

2、xtName()#textName VARCHAR(50), textDate DATETIME, )?xml=1.0encoding=UTF-.ElecText?xml=1.0encoding=UTF-.ElecTextidname=textIDtype=stringgeneratorpropertyname=textNametype=string propertyname=textDatetype=date ?xml=1.0encoding=UTF-!DOCTYPEhibernate-configuration-/Hibernate/HibernateConfigurationDTD3.0

3、/EN returnpublicvoidsetTextName(StringtextName)this.textName=publicDategetTextDate()returnpublicvoidsetTextDate(DatetextDate)this.textDate=publicStringgetTextRemark()returnpublicvoidsetTextRemark(StringtextRemark)this.textRemark= publicclassTestHibernatepublicvoidConfigurationconfiguration=new文Facto

4、ry sf = configuration.buildSess = sf.openSesiontr=ecText = new ElecText(); elecText.setTextDate(new Date(); propertypropertypropertyproperty!-加文件-層1.22.impl2層1.22.impl2publicclassImplextendsSupport beanproperty name=sespublicvoidsave(Tentity)erfaceextendspublic sicfinalStringSERVICE_NAME= erfacevoid

5、save(TImpl3srcspring的容器?xml=1.0encoding=UTF-beans Impl3srcspring的容器?xml=1.0encoding=UTF-beans ponent-scanbase-2:?-beanpropertybean id=cn.*4junit進(jìn)試publicclass4junit進(jìn)試publicclasspublic void save() ApplicationContextac=new4:beanproperty5:注解:切面:用業(yè)務(wù)層管理事務(wù),在業(yè)務(wù)層的代碼中Transcationalion-driven5:XMLtx:adviceid=aa

6、aop:advisoradvice-ref=aaImpl1 2 3Impl1 2 3junitpublicclassTestServicepublicvoidpublicecTextServiceImplimplementsIElecTextServiceprivatepublic void save(ElecTexecText) erfaceIElecTextServicepublicicfinalStringSERVICE_NAMEpublicvoidElecTex ecText = new ElecText(); elecText.setTextDate(new Date(); 結(jié)論:使

7、式事務(wù)處理(aop 編程的實(shí)現(xiàn),控制業(yè)務(wù)層的代碼,相當(dāng)于在代業(yè)1.elec.web.action結(jié)論:使式事務(wù)處理(aop 編程的實(shí)現(xiàn),控制業(yè)務(wù)層的代碼,相當(dāng)于在代業(yè)1.elec.web.action2Action BaseActionpublicclassBaseActionionSupportDriven,ServletRequestAware,ServletResponseAware protectedHttpServletRequestpublicecTextActionextendsBaseActionprivate ElecTexecText = this.getMprivateI

8、ElecTextServicepublic String save() return save;ApplicationContextac=IElecTextService elecTextService =ecText = new ElecText(); elecText.setTextDate(new Date(); 2 2 2 publicclassGenericTypeUtilspublicicClassgetGenericSuperClass(Classentity)ParameterizedType type =ClassentityClass=(Class)returnprotec

9、tedHttpServletResponseprivateTpublicClass entityClass = tryentity=(T) catch (Exception e) publicT()returnpublicvoidsetServletRequest(HttpServletRequestreq)this.request=publicvoidsetServletResponse(HttpServletResponseres)this.response=4web.xml4web.xml容器 ?xml=1.0encoding=UTF-!DOCTYPEstruts-/ApacheSoft

10、wareFoundation/DTDStrutsConfiguration2.3/EN constantname=struts.devMode!-設(shè)置constantname=struts.ui.themeconstantpackagename=systemnamespace=/system actionname=elecTextAction_*class=elecTextAction result 試ID 試ID publicclassImplextendsSupportClassentityClassbeanproperty publicvoidsave(Tentity)publicvoi

11、dupdate(Tentity)publicTfindObjectByID(Serializableid)publicTfindObjectByID(Serializableid)return(T)this.getHibernateTemplate().get(entityClass,publicvoiddeleteBojectByIDs(Serializable.ids)if(ids!=null&for(SerializableObject entity = this.findObjectByID(id); publicvoiddeleteObjectByCollection(Listlis

12、t)SELECT * FROM elec_text o WHERE 1=1AND o.textName LIKE %張%AND o.textRemark LIKE %張%ORDERBYo.textDateASC,o.textRemarkDESC #ServicepublicListfindCollectionByConditionNoPage(StringfinalObjectparams,Maporderby)Stringhql=selectofrom+entityClass.getSimpleName()+o where 1=1 ;Stringorderbyhql=finalStringf

13、inalHql=hql+condition+/Listlist=this.getHibernateTemplate().find(finalHql, Listlist=HibernateCallback()publicthrowsHibernateException,SQLExceptionQueryquery=if(params!=null&query.setParameter(i,returnreturnQueryquery=if(params!=null&query.setParameter(i,returnreturnprivateStringorderby(Maporderby) S

14、tringBuffer buffer = new StringBuffer(); if(orderby!=null & orderby.size()0)buffer.append(orderbyntrybuffer.append(map.getKey()+return svn* svn的文件夾中的svn.doc5myeclipse ,Eclipse Eclipse是將Tomcat服務(wù)器整合到Eclipse4:myeclipseclass Eclipse是將Tomcat服務(wù)器整合到Eclipse4:myeclipseclassEclipseclass Eclipsejsp 二:項(xiàng)目第二天(運(yùn))j

15、sp:forwardFRAMESETborder=0frameSpacing=0rows=82,*FRAMEontextPath/title.jsp= setting:= setting:isSimpleData: true, treeNodeKey: mid, treeNodeParentKey: showLine: true,root:isRoot:true, nodes: .setting,order=0TDwidth=340pxalign=centerdivulTreeclass=treeFRAMESETid=mainborder=0frameSpacing=0frameBorder=

16、0 FRAMEontextPath/left.jspframeontextPathframeBorder=0marginHeight=0marginWidth=0scrolling=noFRAMEontextPath/loading.jspprivilegeDate= mid: aa,privilegeDate= mid: aa,:isParent:name: 技術(shù)設(shè)施 tablewidth=100%border=0height=88ontextPaths tdwidth=50%height=84align=leftvalign=top leg font ontextPathelseontex

17、tPathiframeiframeelse 站點(diǎn)運(yùn)行情況IFRAME src=alermSion.jsp name=sion frameBorder=0 width=500 scrolling=auto leg font設(shè)備運(yùn)行情況IFRAMEsrc=alermDevice.jsp name=devid=dev frameBorder=0width=500scrolling=autotd (1)td內(nèi)容顯示td (1)td內(nèi)容顯示td divtddivtddiv1:jsp function refresh10() else 2jsp3jspdiv做鼠標(biāo)移動(dòng),divtd12jsp3jspdiv做

18、鼠標(biāo)移動(dòng),divtd1ontextPath3s:textarea ionRun ionRun cssStyle=width: 500px; height: 160px; functionvar ionRun=newionRlineCssStyle = font-family:arial; font-size:11px; colvar devRun = new Bs_LimitedTextarea(devRun, 2500); devRlineCssStyle = font-family:arial; font-size:11px; coldivclass=scrollStyle sysList

19、 = new ArrayLisStringhql=SELECTDISTINCTo.keywordFROMElecSystemDDLo; List list = this.getHibernateTemplate().find(hql);if(list!=null&for(ObjectElecSystemDDLelecSystemDDL=newElecSystemDDL(); returnectlist=#request.listname=keywordlistKey=keywordlistValue=keyword headerKey=jerrynew headerValue= cssStyl

20、e=width:180px cssClass=bgtribute(list,(2)pub.jsAjax(2)pub.jsAjaxPub.newXMLHttpRequest=functionnewXMLHttpRequest()varxmlreq=if (window.XMLHttpRequest) xmlreq=newXMLHttpRequest();elseif(window.ActiveXObject)tryvarreq=var handlerFunction = Pub.getReadySechange=T,action,varstrPub.getParams2Str(sForm); o

21、ntextPathjsontextPath/system/elecSyste 傳遞的參數(shù)req傳遞的參數(shù)reqparamreq:ajaxparameleid:表單Form2 returnseHandler =function getReadySeleid,responseXmlHandler) returnfunction()ife=4) ifus=200)xmlreq=newcatch(e1)tryxmlreq=newcatch(e2)returnPub.getParams2Str=functionvartryvarifreturnvarfor(varfld=0;fldobjForm.ele

22、ments.length;fld+) elt = objForm.elementsfld;strDiv=strDiv+strDiv=strDiv+catch(ex)returnreturnelsealert(HTTPerror:returndictionIndex.jspdictionIndex.jsp2個(gè)表單,1Form1,1dictionaryEdit.jsp 中 感覺(jué):異步效果,F(xiàn)orm1不動(dòng),F(xiàn)orm2Form13:jsDOMfunctionvarif(str.charAt(i)!=&str.charAt(i)!=returnfunctionvarif(str.charAt(i)!=r

23、eturnfunctionreturn技術(shù)(i:系技術(shù)(i:系 怎么使用webservice(axis2) 使用Servlet)的時(shí)候,通過(guò)過(guò)濾器或者 Servlet值,查詢完成之后可以放置到Sessoin 中,Ses中存放Map的時(shí)候,從 的時(shí)候,從 5ajax ,map* save()程結(jié)束的時(shí)候,將* 另一個(gè)線程由* save()程結(jié)束的時(shí)候,將* 另一個(gè)線程由ajax1001秒中調(diào)用 四:項(xiàng)目第四天(用戶管理1:ajaxstruts2jsonjarstruts2jsonjar (3)Actionfunctionvar jct= publicStringStringkeyword=ecS

24、ystemDDL list = return resultname=findJctUnitparam22:ajax22:ajaxectlist=#request.jctListname=jctIDheaderKey= headerValue= selectid=jctUnitIDname=jctUnitID* 參數(shù)三$(#jctUnitIDoption).remove(); if(data!=null&for(varvar ddlCode = datai.ddlCode; varddlName=datai.ddlName;var$option=1jsp 1jsp privateStringme

25、ssage; set get 方法ActionName: actionname=elecUserAction_*class=elecUserActionresultname=checkUsermessageparams:textfieldname=logonNameid=logonNamemaxlength=25divfunction checkUser(o)var logonName = $(o).val(); else $(#check).html(登錄名已經(jīng)存在); 3jsp輸入的值是否正確(正則表達(dá)式3jsp輸入的值是否正確(正則表達(dá)式 publicicvoidmain(Stringa

26、rgs)MD5keyBeanm=newfunctionvarpatternif(pattern.test(strNumber)returntrue; return false;Stringmessage=*V1.00(版本號(hào)CreateDate2013-11-19(創(chuàng)建日期Returnajax,使用struts的ajaxpublicStringStringlogonName=Stringmessage=return checkUser;存(1)jar包jar 包hibernate存(1)jar包jar 包hibernate * * * 提供EhCache !-指定使用二級(jí)緩存的類放在下面-St

27、ringmd5=(4)項(xiàng)目使用查詢緩存,在類路徑下,添加ehcache.xmlehcachediskStore(4)項(xiàng)目使用查詢緩存,在類路徑下,添加ehcache.xmlehcachediskStoreQuery hql 語(yǔ)句執(zhí)行的過(guò)程中,最后要使* *域配置二級(jí)緩存, oidoid *域配置二級(jí)緩存, oidoid 6sql * leftouterjoinon(leftjoinon:left2個(gè)表匹null 表示 onright on:2FROM elec_user aINNERJOIN on:2FROM elec_user aINNERJOINelec_systemddlbONa.sex

28、ID=b.ddlCodeANDb.keyword=INNERJOINelec_systemddlcONa.jctIDc.ddlCodeANDc.keywordINNERJOINelec_systemddldONa.isDutyd.ddlCodeANDd.keyword是否在職INNERJOINelec_systemddleONtIDe.ddlCodeANDe.keyword職位#sql語(yǔ)句如果是投影查詢,發(fā)揮ObjectList五:項(xiàng)目第五天(角色管理struts2tablecellspacing=0struts2tablecellspacing=0align=centerwidth=100%

29、cellpadding=1rules=all bordercolor=gray border=1style=BORDER-RIGHT:gray 1px solid; BORDER-TOP:gray1pxsolid;BORDER-LEFT:gray1pxsolid;WORD-BREAK:break-all; BORDER-BOTTOM:gray 1px solid; BORDER-COLLAPSE:collapse; s:if&s:setvalue=%1 !- s:ifs:setvar=flagackgroundColor = white onmouseout=this.styackground

30、Color= publicecPopedomfindPopedomListByRoleID(StringroleID)ecPopedomecPopedompopedomList=ecRolePopedom popedomListStringcondition=ando.roleID=?; Object params = roleID;Maporderby=newLinkedHashMaplist.findCollectionByConditionNoPage(condition,params, StringBufferbuffer=newif(list!=null& !- tdalign=le

31、ftwidth=82%s:setvar=flaginputtype=checkbox name=selectoper id= value= onClick=goSelect(this.id) publicecUserfindUserListByRoleID(StringroleID)ecUser list String condition = anMaporderby=newLinkedHashMap userList =ElecRole elecRole = elecRoleecUser set = elecRole.gefor(ElecRolePopedomStringpopedom*3:

32、遍歷ecPopedomlist,獲取系統(tǒng)中每個(gè)功能權(quán)限if(popedomList!=null&for(ElecPopedomreturn privatevoidsaveRolePopedom(StringroleID,Stringselectoper)Stringcondition=ando.roleID=?; Object params = roleID;ecRolePopedomlist if(selectoper!=null&for(StringStringarrays=Listlist=newif(set!=null&for(ElecUser elecUser:set) ecUser

33、userList,獲取系統(tǒng)中每個(gè)用戶*如果獲取的每個(gè)用戶和當(dāng)前角色具有的用戶匹配,設(shè)置if(userList!=null&for(ElecUserreturn 7(1)struts2validator原理:在Action要求繼承ActionSupportValidationAware void addFieldError(String fieldName, String errorMessage);privatevoidsaveUserRole(StringroleID,Stringselectuser)ElecRoleelecRole=ecUserset= ecUserset=newif(s

34、electuser!=null&for(String userID:selectuser) ElecUserelecUser=newElecUser(); ElecRolePopedomelecRolePopedom=newElecRolePopedom(); addFieldError 方法中添加錯(cuò)誤信息,如果方法中存在錯(cuò) addFieldError 方法中添加錯(cuò)誤信息,如果方法中存在錯(cuò) resultStringnameStringpasswordElecUser elecUser =this.addFieldError(error登錄名有誤!); return error;this.add

35、FieldError(error, return error;MD5keyBeanmd5keyBean=newStringmd5Password=this.addFieldError(error, return error;tribute(globle_user,#listeKeysas#assigneValue=#listeValueasfont六:項(xiàng)目第六天(系統(tǒng)登錄六:項(xiàng)目第六天(系統(tǒng)登錄2)ontextPath/image.jspname=imageNumberid=imageNumber style=cursor:hand title=點(diǎn)擊可更換 height=20 onclick=

36、checkNumberImage()/在Action 中調(diào)用SeecRole elecRoles = elecUser.geecRoles();,此時(shí)Ses setname=elecRolestable=elec_user_role2web.xml配置一個(gè)過(guò)濾器(一定要放置到struts2 過(guò)濾器的前面提供的原理:將關(guān)閉問(wèn)題:頁(yè)面加載項(xiàng)比較多,那么導(dǎo)致 ses關(guān)閉,導(dǎo)致 ses 在業(yè)務(wù)層使用Hibernate.inilized(Proxy3LogonUtils(2)3LogonUtils(2)ActionLogonUtilspubliccheckNumber(HttpServletReques

37、trequest)StringcheckNumber=return中獲StringCHECK_NUMBER_KEYreturnreturnJsfunctionvarimageNumberimageNumber.src = $pageContext.req(3)添加過(guò)濾器SystemFilterpublic(3)添加過(guò)濾器SystemFilterpublicclassSystemFilterimplementsFilterpublicvoidinit(FilterConfigconfig)throwsServletException/TODOAuto-generatedmethod的方法publ

38、icvoiddoFilter(ServletRequestreq,ServletResponseFilterChainchain)throwsIOException,ServletExceptionpublic sic void rememberMe(HttpServletRequest request, HttpServletResponseresponse,Stringname,Stringpassword)tryname=URLEncoder.encode(name,UTF-catch(UnsupportedEncodingExceptione) = (name,= Stringreme

39、berMe=if(remeberMe!=null&remeberMe.equals(yes) HttpServletRequest request = (HttpServletRequest) req; HttpServletResponseresponse=(HttpServletResponse)res;Stringpath=chain.doFilter(request,publicHttpServletRequest request = (HttpServletRequest) req; HttpServletResponseresponse=(HttpServletResponse)r

40、es;Stringpath=chain.doFilter(request,publicvoiddestroy()privatevoidrequest,name = ; password=;checked=ss!=null:nametryname=URLDecoder.decode(name,UTF-catch(UnsupportedEncodingExceptione)checkedpasswordtribute(name, name); tribute(password,password);tribute(checked,name=4name=4:jqueryZtree(1) 在 left.

41、jspontextPathscript link rel=stylesheet href=$pageContext.reqontextPath /css/zTreeStyle/zTreeStyle.css order=0TDwidth=340pxalign=centerdivpublicecPopedomList()returnpublicvoidecPopedomList)List=publicStringString popedom = (String)= setting:isSimpleData: true, treeNodeKey: mid, treeNodeParentKey: sh

42、owLine: true,root:isRoot:true, nodes: .setting,(4)Service resultparam(4)Service result(Stringpopedom)Stringcondition=ANDo.midIN(+popedom.replace(, ,)+) AND is= ?;Objectparams=Maporderby=newLinkedHashMap list =.findCollectionByConditionNoPage(condition,params, returnList=return55秒倒計(jì)時(shí)的功能Listlist=newpu

43、blicvoidinit(FilterConfigconfig)throwsServletException 的方法publicvoiddoFilter(ServletRequestreq,ServletResponseFilterChainchain)throwsIOException,ServletException HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) res;Stringpath=chain.doFilter(

44、request,response); ElecUserelecUserchain.doFilter(request,器Action,器 var i=6; var t;function到的效果,所以要清除掉 set erval()ontextPath /system/eleci= i- 1 / 秒數(shù)減少timer 層= / 每隔一秒鐘調(diào)用一次函數(shù)showTimer() t = window.setpublicvoidinit()publicntercept(ActionInvocationactioninvocation)/requestHttpServletRequestrequest=(Ht

45、tpServletRequest) tryObjectaction=Methodmethod= / Action的返回值 Stringresultnull;result=actioninvocation.invoke(); return result;catch(Exceptione)*StringerrorMsgif(einstanceofRuntimeException)(2) 在 struts.xml(2) 在 struts.xml!-自定 器 erceptorerceptor!-配器棧-erceptor-stackerceptor-refname=defaultStack!-將自定器放

46、置到默認(rèn)棧的后面-erceptor-ref!-覆蓋底層器棧對(duì)包中的所有action都有效-erceptor-refresultRuntimeExceptionre=(RuntimeException)errorMsg=tribute(errorMsg,Loglog=log.error(errorMsg, e);return/.endofpublicvoiddestroy()中struts2中struts2publicvoidinit()publicntercept(ActionInvocationactioninvocation)/requestHttpServletRequestreques

47、t=resulttryObjectaction=tryObjectaction=Methodmethod= ActionStringresult=flag=isCheckLimit(request,method); /運(yùn)行result=returnreturncatch(Exceptione)StringerrorMsgif(einstanceofRuntimeException)RuntimeExceptionre=errorMsg=tribute(errorMsg,*Logloglog.error(errorMsg, e);return/.endofpublicvoiddestroy()*

48、Logloglog.error(errorMsg, e);return/.endofpublicvoiddestroy()method)request,if(method=null) return false;ElecUserelecUserif(elecUser=null) return false;Hashtable ht =tribute(globlerole); if(ht = null)returnionLimit(mid=aa, =0) public String home()ionPresentreturnionLimitlimitStringmidlimit.mid(); /=

49、(); /returnionLimitlimitStringmidlimit.mid(); /=(); /ionLimit(mid=aa, 方法 的方法flag=/從Stringpopedomflag = true;WebApplicationContextwacIElecRoleService elecRoleService = if(ht!=null & ht.size()0) for(IteratorEntryite=Entryentry=StringroleID=flag=elecRoleService.findRolePopedomByID(roleID,)(3) !-配器棧-erc

50、eptor-stackerceptor-refname=defaultStackStringcondition=ListparamsList=newcondition+=ando.roleID=?; condition+=ando.mid=?; condition += and o.=?; Objectparams=ecRolePopedomlist flag = false; if(list!=null&list.size()0)flag=returnreturn12個(gè)方法(mid)2 限。 限。12個(gè)方法(mid)2 限。 限。 :publicElecUserfindElecUserByL

51、ogonName(Stringname)Stringcondition=ListparamsList=newcondition+=ando.logonName=?;!-將自定器放置到默認(rèn)棧的后面-erceptor-ref器-在過(guò)濾器的代碼中添加:驗(yàn)證的方法,驗(yàn)證數(shù)據(jù)庫(kù)獲取的登錄狀態(tài)的值和 s:hidden在過(guò)濾器的代碼中添加:驗(yàn)證的方法,驗(yàn)證數(shù)據(jù)庫(kù)獲取的登錄狀態(tài)的值和 list.findCollectionByConditionNoPage(condition,params,null); ElecUser elecUser = null;if(list!=null&list.size()0)

52、elecUser = list.get(0);return七:項(xiàng)目第七天1:Jbpm2七:項(xiàng)目第七天1:Jbpm2:jbpm(1)在eclipse(安裝流程設(shè)計(jì)器)javajar1115jbpm,此時(shí)編碼格式UTF-1、配置文件可以從JBPM_HOME/ex 2pertiesError: log4j.rootLogger=ERROR, stdout JPBM1、2、JBPM_HOME/lib/*.jar,不添加以下jar包:servlet-api.jar, junit.jar。其中junit.jar一定不要添加,因?yàn)槭?.8.2 版本,與使用的junit4 有3、由于 slf4j-jdk14.

53、jar、slf4j-log4j12.jar 都具有處理日志的功能,會(huì)避免出現(xiàn)去掉slf4j-jdk14.jar。的jdbc驅(qū)jar 包(4)jbpm18slf4jjdk (4)jbpm18slf4jjdk ServiceitoryServiceitoryService=ExecutionServiceexecutionService=publicvoid.hibernate.cfg.Configurationconfiguration=Factory sf = configuration.buildSes是 4UTF-8。否則可能會(huì)在部署含有中文字符的流程定義時(shí)會(huì)拋異sql 語(yǔ)法錯(cuò)誤。jdbc

54、: :/localhost:3306/ jbpm?useUnicode=true& ;characterEncoding=utf8 可防止 到數(shù)據(jù)庫(kù)的值是亂碼注 意 : 如 使 用 Dialect , 就 會(huì) 在 流 程 實(shí) 例 結(jié) 束 時(shí) 拋 異 常 : com. .jdbc.exceptions.egrityConstra ViolationException: Cannot delete or update a parent row: a foreign key constra fails (jbpm44_20101028/jbpm4_execution, CONSTRA FK_EXEC

55、_INSTANCE FOREIGN KEY (INSTANCE_) REFEREN (TaskServicetaskService=HistoryServicehistoryService=TaskServicetaskService=HistoryServicehistoryService=ManagementServicemanagementService=publicvoidString deploymentId = propublicvoids name=Stringkey= pro(1) 創(chuàng)建流程引擎的 3public(1) 創(chuàng)建流程引擎的 3publicvoidpublic voi

56、d findMyString userId = 王五;Listlist列.count();/ResultmaxResults);/據(jù)if(list!=null&sDefinition列.count();/ResultmaxResults);/據(jù)if(list!=null&sDefinitionss*throwsException*/ publicvoidviewImage()throwsdeploymentIdresourceNameInputStreamin=OutputStreamout=newopublicvoidStringOutputStreamout=newopublicvoidS

57、tringdeploymentId=*常*版本publicvoidsDefinitionlistMapmap=newLinkedHashMapString, if(list!=null&sDefinitionMapmap=newLinkedHashMappdList=if(pdList!=null&sDefinitionsspublicvoid(1)jbpm(1)jbpmsDefinition SELECT * FROM jbpm4_deploymentSELECT*FROMSELECT*FROMjbpm4_lob資源文件表,使用blobSELECT*FROMjbpm4_property# S

58、tringkeytest;sDefinition list = 象if(list!=null&sDefinitionStringdeploymentId=pd.getDeploymentId(); (1) 測(cè)試類(1) 測(cè)試類publicclasssInstanceTestsEnginesEngine=*throwsException*/ public void deploymentProsDefinitionByZip()throwsException InputStream in =ZipInputStreamzipInputStream=newString deploymentId =

59、pro public void startPro String prosDefinitionKey = spublicvoidStringuserId王五list的list=StringuserId王五list的list=詢ResultmaxResults)/&for(Task間稱publicvoidStringtaskId=publicvoidStringtaskId=*.completeTask(taskId,publicvoidStringassignee張三Listlist=詢if(list!=null&for(HistoryTaskpublicvoidsInstancehpi(1)(

60、1)publicvoidStringexecutionId=當(dāng)前活動(dòng)節(jié)點(diǎn)是當(dāng)前活動(dòng)節(jié)點(diǎn)是 (2)SELECT*FROMSELECT*FROMjbpm4_hist_procinstSELECT*FROMSELECT*FROMSELECT*FROMjbpm4_hist_actinst所有活動(dòng)的歷史表(包括任務(wù)和非任務(wù)(1)publicclasssVariablessEnginesEngine=*throwsException*/ public void deploymentProsDefinitionByZip()throwsException InputStream in =ZipInputSt

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論