DevelopmentandCustomization目录DevelopmentandCustomization......................................................................................1Development.......................................................................................................................2InstallandBuildtheProject......................................................................................2HowtoDownloadandRuntheuEngineStandalone........................................2HowtoruntheuEngine-web.......................................................................2Afterbuildingdefaultcompanyproject,changescanbeapplied..............3Thepropertiesofuengine.properties..........................................................4Customizationfunctions.............................................................................................51.CustomizeWorkitemHandlers(WIH)........................................................5HowWIHworks...........................................................................................7HowtoApplyWorkitemHandler................................................................72.CustomizeActivityType............................................................................11Howtoaddanactivitytype.......................................................................12Waystotestnewactivitytypes.................................................................143.CustomizeOrganizationChart.................................................................161.Rolemappingclass...............................................................................172.RoleResolutionContextclass..............................................................203.LoginMechanism................................................................................244.OrganizationChartBrowser..............................................................244.Metaworks/UIGenerationFramework...................................................251.TypeDeclaration.................................................................................262.AutomaticUICreation–InputFormTypeUse................................263.Consistentdataentrymethod-Inputter..........................................334.Consistentvalidatemethod-Validator..............................................375.FieldAttributeUse..............................................................................385.MetaworksImplementationprocessdesigncustomization.....................401.ActivityTypeDesignTimeCustomizing............................................402.ProcessVariableObjectExtensibility................................................423.RoleObjectExtensibility....................................................................44Tips.Runthe‘ProcessDesigner’testviaeclipse...................................47DevelopmentInstallandBuildtheProjectHowtoDownloadandRuntheuEngineStandaloneVisitthispage,“apidoc”,usethe“javadoc”insteadhsqldbHypersonicDatabaseisgivendefaultMETA-INFMetaworksdirectoryasaDatabasedevelopmenttoolsrcuEngineprojectdirectorysrc/build.xmlUsefulcommandsaresupportedbyAnttoolwasTomcatdirectorygivenbystandardWASwas/bin/startup.batUsefulscriptsforexecutingTomcatHowtoruntheuEngine-webRun“runServer.bat”inthe“hsqldb/demo”directory.(hsqldbexecution)Run“startup.bat”inthe“was/bin”directory.(Tomcatexecution)Visitthepage,“test”IDforEnglishversion,cf.“test_ko”forKoreanversion,accesscanbepermitted.ForuEngineStandaloneversion,standardUIandactivitiesaresupported.Youcanalsomakechangesonthembyaddingandupdatingthefunctionsasyouwish.[Note]uEngineServerissuccessfullytestedonJRE1.5orhigherversions,However,youneedJRE1.6orhigherversionsfor“ProcessDesigner”(SwingIndependentClientApplication)execution.Iftheserverisnotworkingproperly,pleaseaddthefollowingscriptinthetopof“startup.bat”file.setJAVA_HOME=jre1.5orjdk1.5location[Note]Inthecaseoftherelativedirectorypathissue,datafilescouldnotbefound.Pleaseaddthefollowingscriptinthetopof“startup.bat”file.CdTheabsolutedirectorypathof“was¥bin”Afterbuildingdefaultcompanyproject,changescanbeapplied“defaultcompany”directoryistheplacewhereyoucanapplyadditionaldevelopment.Sourcecodechangesandadditionscanbeappliedbyusing“Ant”.uEnginecustomizingmethodswillbeexplainedinthenextchapter,forthistime,weperformhowtobuildtheuEngineproject.Thefollowingsshouldbeconfigured,beforecompiling“Ant”.C:\setJAVA_HOME=C:\ProgramFiles\Java\jdk1.5.0C:\setUENGINE_HOME=C:\uengine_standaloneC:\path%PATH%;C:\apache-ant-1.7.0\binAndthen,executethe“ant”commandinthe“uEngine_standalone¥src¥”directory.Inadditiontothat,executethe“ant”commandinthe“defaultcompany”directory,thefollowingscreenbelowwillappear,anditbecomesthelatestversion.C:¥uEngine_standalone¥defa