Home
Workflow Stystem User Manual
Contents
1. 1 Engine database 2 User Management 3 Edit Custom Properties 3 1 1 To create a new user the Administrator or user with Admin rights selects Administrator gt User Management Fig 4 Dee pE ee ga Bees ee ee ce LO o WDR 409 ee ee are ere ee c Shenae feces me kae Chat Be o Sea ones Cus Lise ia eee NU pees pa Pll Gages abe Warko Process Conaola apwan Ca Sanj erkenm bed Armie ER Rm 5 DLL sd dhucadusmim Fee Pie rudem manm Fig 4 July 2007 7 CollabCAD Workflow User Manual 3 1 2 Select dsrlm jiap 1 under Selected Realm A new page appears Fig 5 3 1 3 Select the tab Users under the Datasource realm Darsa nn een PS A ENTE i Od omnem enti Bauch wears O pem icaancan er Oy y O aaaaa T ami os Bas a Legs E Tes s ter 7b ei B firas Fig 5 3 1 4 Select New user Enter valid input in the form and click on the create button Fig 6 Workilow Process Console Lialamu k is pe is T gry Frat ra a nai E 8 Deere Foren emer i n ii oa 9 a en lil omm ur m i i ace Hj f July 2007 CollabCAD Workflow User Manual 3 2 Listing Users In the Datasource Realm select List Users Fig 5 to list all users as shown in Fig 7 dm bir yee fe Bpeckmoarws Toole bein Ce Cj CO EF QE O rera seca perro se iaman iL deret at epe NEN einean aremania ia ur Trid as Lj razmmm Damanik
2. NOTE In the xform s field name there should be no space e g your name gt is the wrong approach It should be your_name In the X form in Fig 50 the asterix indicated against the text fields implies that these are to be compulsory filled 8 4 5 Select To Do Activityl Fig 51 Fig 51 July 2007 34 CollabCAD Workflow User Manual 8 4 6 Click on start icon The following GUI comes up Fig 52 tibi es EIL Tiziana tivi orm bis kk inp Fare campiniesi aaner Sum Fig 52 8 4 7 Select the submit button to bring up the following GUI Fig 53 Workflow Process Console cere Acier tree Peet ji Hi See mmiri mired 5 Fig 53 8 5 Viewing JSP Files Through Bonita 8 5 1 User has to create jsp files and the put them in the following directory C CollabCAD tools WorkflowJOnAS 4 8 4 BSOA_base work webapps jonas single ctxroot In the example Report jsp is created This file is hyperlinked with two jsp files DetailedView jsp and SortedView jsp July 2007 35 CollabCAD Workflow User Manual Jsp code for Report jsp is as follows lt html gt lt body gt lt table align center border 1 gt lt tr gt lt td gt lt hI1 gt lt center gt View of the following pages certer td tr tr td center a href DetailedView jsp gt View Detailed data amp nbsp amp nbsp a center td tr td center a href SortedView jsp gt View Sorted data am
3. aage a mumnmi n om ieie Do ms ae pu deel i ets ua bee m acd ee Im z it iesu L be LII t 1E r Ie Hommmccum om ome kam ims Fig 29 July 2007 20 CollabCAD Workflow User Manual 4 Setup activity For JMS 4 1 In the Navigational tree select Operator gt Setup Fig 30 ij ia Tg iil j li ao N i Fig 30 4 2 Select the Modify button Fig 31 4 3 Confirm the modification by clicking on the Confirm button lu B gm pend ili nij iij Fig 31 July 2007 21 CollabCAD Workflow User Manual 5 Log Details User can check and search Log Details of the workflow process 5 1 In the navigational tree select Operator gt Logs Fig 32 P pm ymm lt lt umm ich RN LA QU esci ice emt d ue HIR s ie amamma m ya cem Ragumi xo mamas arn ma dun Mjrrem nas mmus forsan scutum Fig 32 5 2 Click on any line of the log table to display details of that line July 2007 22 CollabCAD Workflow User Manual 6 Trace Details User can check and search the trace details of processes 6 1 Select Operator gt Traces from the Navigational tree Fig 33 Fig 33 6 2 Click a line of the traces table to display details of that trace line July 2007 23 CollabCAD Workflow User Manual 7 History Details User can check the History of process instances 7 1 Select Operator gt History from the Navig
4. remark varchar 60 WITHOUT OIDS ALTER TABLE testing OWNER TO postgres 8 2 ProEd Action Connectors The action class system allows an activity in a ProEd project to execute a simple easily constructed java class on the workflow server without having to create a full blown hook class This facilitates the use of existing classses that are already able to perform some desired function as well as accessing web services The terms Actions Action Classes and connectors have all been used to refer to this system ProEd creates a HookScript entry in the generated XPDL This is type of hook is referred to as an InterHook The HookScript is sort of a wrapper invoking the desired functionality of the specified action class passing information from the activity and returning values The HookScript is created from a user configurable template and is based on the activity context the action class and the setting selected in the Add Action dialog In addition there is a user configurable properties file located on the server associated with each action class providing additional information to ProEd This allow ProEd to enhance the user interface by providing such things as meaningful parameter names parameter descriptions and pre defined lists of parameter value options July 2007 26 CollabCAD Workflow User Manual 8 2 1 File Structure of Action Class System The action class system uses three types of files a Action classes lt ac
5. http java sun com 2se 1 5 0 Select J2SE v1 4 2 J2SE v1 5 SDK for servers and JRE for clients 1 2 2 Set your environment variable SJAVA HOME JDK 1 54 home eg JAVA HOME c jdk1 5 for Windows jdk1 5 for Linux July 2007 3 CollabCAD Workflow User Manual 2 Running the Workflow Module 2 1 Server Management 2 1 1 Environment settings The Administrator needs to make the following Environmental settings 2 1 1 1 JONAS ROOT Jonas version home eg C CollabCAD tools Workflow JOnAS 4 8 4 for Windows CollabCAD tools Workflow JOnAS 4 8 4 for Linux 2 1 1 2 ANT HOME jakarta ant home eg C CollabCAD tools Workflow apache ant 1 6 4 for Windows CollabCAD tools Workflow apache ant 1 6 4 for Linux 2 1 1 3 BONITA HOME Bonita home install directory eg C CollabCAD tools Workflow bonita v3 0 bonita for Windows CollabCAD tools Workflow bonita v3 0 bonita for Linux 2 1 1 4JONAS BASE Jonas version home For Linux eg SJONAS ROOT BSOA base For Windows eg JONAS ROOT BSOA_ base 2 1 1 5 Change the location of the file bonitaLog xml in the file JONAS BASE conf log4j properties 2 1 1 6 Change the location of the file repository xml in the file JONAS BASE conf repository properties 2 1 1 7 PATH variable setting For Linux e g SJONAS ROOT bin unix ANT _HOME bin JAVA HOME bin For Windows e g JONAS ROOT bin nt ANT HOME bin JIAVA_HOME bin 2 1 2 Application Server 2 1 2 1
6. GUI in Fig 39 comes up Fig 39 8 3 3 Select Attributes tab and then Add The following GUI Fig 40 comes up The user has to enter the attribute Name and choose its Type elem July 2007 29 CollabCAD Workflow User Manual 8 3 4 After entering the attributes name the following GUI Fig 41 comes up Fig 41 8 3 5 Select the Edit Xform option It will lead to the following GUI Fig 42 Fig 42 July 2007 30 CollabCAD Workflow User Manual 8 3 6 The user has to select any text box e g sn and right click The following GUI Fig 43 comes up The user has to set Data type Required Relevant Readonly and Constraints according to requirement Fig 43 The user can save by selecting the Okay option Close the XForm Editor GUI 8 3 7 Select Add Activity Step 3 5 3 Enter the name of the activity and assign the participant for this activity by selecting New Participant In the example we have created Activity1 which is shown in Fig 44 July 2007 31 CollabCAD Workflow User Manual 8 3 8 By New Participant option user can define the participant for that activity Against Filter select HUMAN and then select any user from the list that pops up Fig 45 tL mens ot HEH I be II s Fig 45 8 3 9 In Fig 44 select the tab Actions and select Add Select from the list for
7. Lm T A 7 Bhl Eu M arch umera ER Pees imi iim emm m F deem Fig 7 3 3 Deleting Users In step 3 2 Fig 7 user Admin can delete any user by selecting the user and by clicking on the button Remove Users This will lead to the following confirmation page Fig 8 Ene Ein ies Cin Beier tracts e n Tien ls Hittin co EJ amp or te rtp ier athost GO0O ap Acirmiri Wisi ome i o Mandriva Mandriva Store s mManariea Cha lores Mandria entire LJ PSE Tippa T T Fe St ergine feri m bremen A Jepi Pert aye eed Fig 8 Clicking Confirm button will delete the selected user July 2007 CollabCAD Workflow User Manual 3 4 Profiles of Users 3 4 1 In Fig 5 of step 3 1 we can select the tab labeled as Profiles This shows different profile names for the users Fig 9 Ene o gai ee Ge Beka Tei fee CS DI AR 29 QJ te mos aiming E AA eee oS fo cs apart ce PAR erp Goad RR Series Com Bhat tem Binit cv dai reum order us Garr pape Wiorkh iow Pinocees Cones Mal L hye eee TET Fig 9 3 4 2 Select JIAPADMINISTRATOR A list of the users appears Admin User can edit or view the details of any user Fig 4 a His pe owes aoe ieee jee CO EG GS C CJ fi te meanest BEMBE niei ese Mene imi e e Jes EL LE IN LL Emrine ihi cm ei pape ere eee ro ie Cpt ceed esi Woarkhilow Precese Caneole vn Se ees LE ree Svea eS m
8. Rabe beer wevirerr Mea menm gre nea nor Tenaris p Honen baaa x _ et tk ih iia epe Donat vm prt ef rame maara pected un ccm con pn ion Chenier tip HOLS SPO 3 0 203 057 RR n ane Harta of Tero Larrea lem b See pau e as A M eae LET 40 oon ede eei Ae m Meco ne or la fees Cone Fig 55 8 5 4 Selecting View Sorted Data will bring up the following GUI Fig 56 Fig 56 8 5 5 User can view a particular user s data Select a user from combo box and select Submit Query The particular user s data will be shown Fig 57 axl woND nO op TT Boa DOT PLAE O ema a 6 esos Hrm erembor eb amo zo an 25 Bodan Tp part of rese maral reserved modi Fig 57 July 2007 39 CollabCAD Workflow User Manual 9 Case Study Setting Deadline to an Activity 9 1 Invoking Hook in a Workflow Hooks are java procedures that can be added to Process or Activity execution The example given below shows how to set deadline of an activity in a workflow project Create a workflow with an activity Step 8 1 7 In Fig 44 select the tab Hook In the Hook menu select the add button Next choose a hook from the combo box and select a radio button under the For internal forms and click OK button 9 1 1 Creating a Hook Program Hooks are java classes and have to implement the NodeHookI interface NodeHookI is located in the package hero hook Basically a hook contains two functional methods redefined in each hook body getMetadata
9. Start JOnAS server from command line using the command jonas start 2 1 2 2 Stop JOnAS server from command line using the command Jonas stop July 2007 CollabCAD Workflow User Manual 2 1 3 Web Interface 2 1 3 1 Connect to the Bonita Web Interface which is available at http hostname portnumber jiapAdmin where hostname and portnumber are that used by the Administrator default portnumber is 9000 to start the jonas server Use Login bsoa in password bsoa 2 2 Mail Configuration July 2007 The administrator is required to reconfigure the following in JONAS ROOT conf MailSessionl properties mail from from address gt mail lt protocol gt host lt hostname mail lt protocol gt port lt portname gt An example of the file MailSessionl properties is provided for reference below THHEBHHBREHHHEBHHHRHHHHIR Required properties THHEBHHBBHHHBBHHHRHHHHER Factory Name Type mail factory name Mail mail factory type javax mail Session FREE Optional properties Each line can be removed THEHHHHHHHHHHHHHHHHBHBHE Authentication tmail authentication username lt my username gt mail authentication password lt my password gt Session properties mail debug lt true false gt mail from lt p kumar nic in gt mail mime address strict lt true false gt mail host lt my mail hostname gt mail store protocol lt pop3 gt mail transport protocol lt smtp gt
10. executeQuery select from testing where plnr s P gt lt br gt lt br gt lt br gt lt TABLE BORDER 1 align center gt lt TR gt lt TH gt SN lt TH gt lt TH gt WONO lt TH gt lt TH gt NOJ lt TH gt lt TH gt NOP lt TH gt lt TH gt QTY lt TH gt lt TH gt DOA lt TH gt lt TH gt DOT lt TH gt lt TH gt PLNR lt TH gt lt TH gt Remarks lt TH gt lt TR gt lt while resultset next 96 lt TR gt lt TD gt lt resultset getDouble 1 96 td TD lt resultset getString 2 96 TD TD lt resultset getString 3 96 TD TD lt resultset getString 4 96 TD TD lt resultset getDouble 5 gt lt TD gt lt TD gt lt resultset getString 6 96 TD TD lt resultset getString 7 96 TD lt TD gt lt resultset getString 8 96 TD TD lt resultset getString 9 gt lt TD gt lt TR gt lt 96 lt TABLE gt lt gt lt form gt lt BODY gt lt HTML gt 8 5 2 Enter http localhost 9000 Report jsp in the address bar Fig 54 See ee e oh o cm fe rug Paewi Hizk Ub c eee iPad Gee c4 Aio cimo m9 espe a poy in cam A i G Friiti Geant Pars Sars LEY Whew of the Fasllassw mags peas Fig 54 July 2007 38 CollabCAD Workflow User Manual 8 5 3 Selecting View Detailed Data will bring up the following GUI Fig 55 Selecting data From a
11. getString 8 96 TD lt TD gt lt resultset getString 9 96 TD lt TR gt lt 96 lt TABLE gt lt BODY gt lt HTML gt Jsp code for Sorted View jsp is as follows lt page import java sql Yo gt 96 page import java util gt lt Class forName org postgresql Driver 96 lt Vector v new Vector o gt lt HTML gt lt HEAD gt lt TITLE gt Selecting data From a table lt TITLE gt lt HEAD gt lt BODY gt HI Existing user Details lt H1 gt form namez frm action SortedView jsp gt lt Connection connection DriverManager getConnection jdbc postgresql test postgres postgres Statement statement connection createStatement ResultSet resultset statement executeQuery select distinct plnr from testing 00 font colorz 006600 size 4 Existing users lt while resultset1 next 96 TR lt v addElement new String resultset1 getString plnr 96 lt TR gt lt 96 lt select name title gt lt for int i 0 i lt v size i m gt lt align center gt lt option gt lt v elementAt i gt lt option gt lt o gt lt select gt lt input type submit name btn valu submit gt 96 String s null gt lt s request getParameter title if s null equals s gt lt ResultSet resultset null 96 July 2007 37 CollabCAD Workflow User Manual lt resultset statement
12. is implemented as an J2EE application and is released under LGPL license Bonita implements the Workflow Management Coalitions s XPDL XML Process Definition Language Traditional workflow features like dynamic user roles resolution activity performer and sequential execution are also supported Processes are created and executed programmatically via EJB 2 or Web services API s processes can also be dynamically updated at Runtime Main Benefits Improve the efficiency of collaborative work with Bonita a team shares a common view of the current tasks each individual can have real time awareness about what is going on Reduce costs and risks by automating person to person and system to system processes Processes can span over organizations and geographical locations Handle efficiently unexpected situations Bonita allows you to securely and dynamically modify the definition of a running process in order to take into account events that were not planned Take benefit from several qualities of services that the integration with a J2EE application server provides These qualities of services include transactions role based authentication and life cycle management connection with external information systems 1 2 Prerequisites 1 2 1 You need to have JDK 1 4 JDK 1 5 Server or JRE 1 4 JRE 1 4 Client installed You may download JDK 1 4 2 from http java sun com products archive j2se 1 4 2 index html Or You may download JDK 1 5 from
13. n s executeQuery select MAX sn from testing if n next July 2007 27 CollabCAD Workflow User Manual a n getInt 1 1 else a l s executeUpdate INSERT INTO testing values a s t Integer parseInt qty date of accept remarks 4 conn close System out println SUCCESSFUL INSERTION catch Exception es System out println es mim The code for Insert properties is follow insert params String sn String wono String name_of_job String name_of_project String qty String date_of_accept String target_date String pinr String remarks insert sn paraminfo First Input String insert wono paraminfo Second Input String insert name_of_job paraminfo Third Input String insert name_of_project paraminfo Fourth Input String insert qty paraminfo Fifth Input String insert date_of_accept paraminfo Sixth Input String insert target_date paraminfo Seventh Input String insert plnr paraminfo Eight Input String insert remarks paraminfo Nineth Input String 8 3 Creating the XForm twono c name of job name of project target_date ninm 8 3 1 User has to create a Workflow Project where he can either define the Properties of Project or individually to an Activity The example creates a workflow called Test fm qm eee fees ease jie t amp 3 beii Fig 38 July 2007 28 CollabCAD Workflow User Manual 8 3 2 On Right Clicking and selecting Properties the
14. server 8 3 2 1 Create a source java file It must be within the package hero hook 8 3 2 2 Copy the java source file into the directory BONITA HOME src resources hooks hero hook 8 3 2 3 Go to SBONITA HOME directory and enter ant deployHook DhookClass lt name of the java source file gt In the example ant deployHook DhookClass DeadlineTesting July 2007 41 CollabCAD Workflow User Manual 9 2 Create a Project 9 1 1 User has to create a project and add activities at least two and assign to the users In the example a project Deadline_latest is created It consists of two activities namely acti and act2 and the participants are caduserl and caduser2 Fig 58 Fig 58 9 1 2 To set a deadline for activity act1 eg 19 06 2007 right click on act1 and select properties Select add under Deadline The GUI Fig 59 comes up and the user has to set deadline of the activity either by selecting the date or the duration In the Exception text field add the hook name The hook template is given later Note In the example if act1 is not completed before 19 06 2007 by caduserl1 it will automatically be assigned to caduser2 because of the hook java program 9 1 3 Import the Deadline latest project by selecting Designer gt Import XPDL July 2007 42 CollabCAD Workflow User Manual 9 3 Instantiate the Project 9 2 1 Select User gt Start gt Deadline_latest
15. 1 0 and click on the start icon 9 2 2 Login as user caduser2 In Fig 60 two nodes act1 and act2 are active under To Do gt Deadline latest G Qj t C ae RT oer mi oe LE UD UL FR TCI Co T he A etic Warrririus Shore Mamrririam Chute 1 Beige Ewpertk of Marcities Oring Gir tres cats mine om Opec Workilow Proce Fig 60 9 2 3 On selecting node act1 the following GUI Fig 61 comes up Pin Bam guns Se es jum D O KB G Lom mnm t nesas Umm pam Geese Pee Fig 61 9 2 4 In Fig 6l click on start icon a message Activity actl of process Deadline latest 1 was successfully started is shown Repeat the process for the node act2 July 2007 43 CollabCAD Workflow User Manual 10 Configuration of Database If you are using the JOnAS embedded database i e HSQLDB then you don t have to do any thing To configure other databases Open the config files for your favorite database Name of Database properties e g PostgreSQL1 properties from the JOnAS 4 8 4 conf folder Edit this file Enter the data source configuration according to your setup datasource name bonita datasource url jdbc postgresql localhost 5432 workflow datasource classname org postgresql Driver datasource username postgres datasource password mypassword datasource mapper rdb postgres Copy the database driver jar file to the JOnAS 4 8 4 lib ext folder You can get the latest database jar driver from your d
16. CollabCAD Workflow User Manual CollabCAD Workflow System User Manual July 2007 1 CollabCAD Workflow User Manual INDEX Contents Chapter 1 Introduction And Prerequisites Chapter 2 Running The Workflow Module 2 1 Server Management 2 1 1 Environment Setting 2 1 2 Application Server 2 1 3 Web Interface 2 2 Mail Configuration Chapter 3 Creating a Workflow 3 1 Creating Users 3 2 Listing Users 3 3 Deleting Users 3 4 Profiles of Users 3 5 Creating a Workflow Project 3 6 Importing The Project 3 7 Instantiate Project 3 8 Viewing the List of Running Activities 3 9 Accessing the TO DO List 3 10 Viewing the List of Done Activities 3 11 View and Deletion of Process 3 12 Start Deploy Undeploy a Process 3 13 Deletion Termination of the Instances Chapter 4 Setup Activity For JMS Chapter 5 Log Details Chapter 6 Trace Details Chapter History Details Chapter 8 Case Study Using XForm 8 1 Database Requirements 8 2 ProEd Action Connectors 8 3 Creating the XForm 8 4 Importing a Project 8 5 View JSP files through Bonita Chapter 9 Case Study Setting Deadline to an Activity 9 1 Invoking Hook in a Workflow 9 2 Create a Project 9 3 Instantiate a Project Chapter 10 Configuration of Database July 2007 Page No Ab A CA 21 22 23 24 26 26 28 33 35 40 42 43 44 CollabCAD Workflow User Manual 1 1 Introduction Bonita is a workflow BPM solution for handling long running user oriented workflows Bonita
17. Type Click in the parameter box and the select the radio button Attribute parameter value and the value from the combo box Repeat for the other attributes Finally click on ok and save it Fig 46 i gul E SERIE l Lp mama I D o WEHEENI E 1 x Ren e E Acron prr arteries E Function insert T h Src Siring attribute sn First Input String E ween Shing air ibi wont Semon inp Sing a no Siring attire nor Third i S ring nope String attribute nop Fourth Input Sirimg qs Sing atl rien ghe Hih Ing Sir irg rina ire atc ieee oio Sissi bass Sr laus L Adal poni amelie valus Vind pas amas ea value Afiriburim parameter value j i July 2007 32 CollabCAD Workflow User Manual 8 4 Importing a Project 8 4 1 Login with id bsoa Select Designer gt Import XPDL Fig 47 a or ee Yr Lo OR is a bas E Le ed Worktiow Process Console ene uim Fig 47 8 4 2 Browse for the file and then select Import Fig 48 Workflow Process Console Fig 48 8 4 3 Logout and relogin Userid NK password NK Select User gt Start gt Test 1 0 Fig 49 Workflow Process Console July 2007 33 CollabCAD Workflow User Manual Fig 49 8 4 4 Click on the start icon A form comes up where user enters valid data and then selects the submit button Fig 50 Worhilow Process Console Tre eir we ub reo Fig 50
18. and the function related to the hook type Note Before Deployment of a Hook java program it must be compiled Refer to section 9 1 2 for hook loading compiling and deployment The example given below shows how to how to set deadline of an activity in a workflow project The code of DeadlineTesting java is given below package hero hook import hero util HeroHookException import hero interfaces BnNodeLocal import hero interfaces Constants import hero interfaces ProjectSession import hero interfaces ProjectSessionHome import hero interfaces ProjectSessionUtil import hero interfaces import java text DateFormat import java text ParseException import java text SimpleDateFormat import java util ArrayList import java util public class DeadlineTesting implements hero hook NodeHookl public String getMetadata return Constants Nd BEFORETERMINATE public void create Object b BnNodeLocal p throws HeroHookException public void afterStart Object b BnNodeLocal p throws HeroHookException public void afterTerminate Object b BnNodeLocal n throws HeroHookException public void onCancel Object b BnNodeLocal n throws HeroHookException public void anticipate Object b BnNodeLocal n throws HeroHookException public void beforeStart Object b BnNodeLocal p throws HeroHookException public void beforeTerminate Object b BnNodeLocal n throws HeroHookException July 2007 40 CollabCAD Workflow Us
19. atabase vendor s site Configure it on your application server with your database i e in BONITA_HOME build xml update your driver name In JOnAS 4 8 4 conf jonas properties add the bonita datasource name jonas service dbm datasources eg bonita PostgreSQL In JOnAS 4 8 4 conf a3servers xml set the hostname value localhost by default at line server id 0 name S0 hostname localhost This value must be the same as what you ve defined in BONITA HOME ant properties In JOnAS 4 8 4 conf carol properties set the value of jrmp URL carol jrmp url rmi localhost 1099 Make sure that the host name and port name values must be the same as what you ve defined in BONITA_HOME ant properties file for bonita host and jrmp port properties In JOnAS 4 8 4 conf jaas config add the following lines bonita Use the resource dsrlm 1 org objectweb jonas security auth spi J ResourceLoginModule required resourceName dsrlm 1 Use the login module to propagate security to the JOnAS server org objectweb jonas security auth spi ClientLoginModule required July 2007 44 CollabCAD Workflow User Manual bonita policy org objectweb jonas security auth spi JResourceLoginModule required resourceName dsrlm 1 Use the login module to propagate security to the JOnAS server org objectweb jonas security auth spi ClientLoginModule required J This ends your configuration Now you have to compile Bonita so that it
20. ational tree Fig 34 pate THE HU i Fig 34 Bre es eee Ge 7 2 Select the particular process instance e g CollabCAD Template Fig 35 DO i Q oo diem Are ore ee er re tee hr ie EL eres Giese Rete cham oo Seinen deweth oe iacere Condom LS Un bee coeds bere Foe m anre beari fiae Price Conc be if LETS 3 L4 ahh a am I i wong ni Fig 35 7 3 Here for each instance one XML file will be shown The user can select particular instance XML file to view the details as shown in Fig 36 July 2007 24 CollabCAD Workflow User Manual i el il LLLI Teese rv M un iit d uris NT dnos SPSS 6 DG GG m a m ew Fig 36 Here all the Activities executor and Start date will be shown as a list 7 4 The user can see the details of a particular activity Fig 37 oreo Peace Crem doen Fig 37 July 2007 25 CollabCAD Workflow User Manual 8 Case Study Using XForm 8 1 Database Requirements In this case study the postgresql database has been used Username and Password are postgres postgres A table called testing with database test has been created The description for the table testing is given below CREATE TABLE testing sn numeric 5 2 NOT NULL wono varchar 20 noj varchar 60 nop varchar 15 qty numeric 6 2 doa varchar 20 dot varchar 20 plnr varchar 16
21. e have CollabCAD Template in text box Name and on clicking OK button a project with the name CollabCAD Template will be created Fig 13 Ba p pme pe panam juam Ro Q O o og 2S Ses we Bie bhis mem Pere oe rm Grm i Pisses EEEH ctm d Fii Duns TTi Fig 13 3 5 3 In the ProEd Project window go to the workflow toolbar and select Add Activity symbol Now on clicking mouse on template window a new GUI will appear where user need to enter correct values in different fields like Design in field Name Description etc Fig 14 gua mam paa es eee epee July 2007 12 CollabCAD Workflow User Manual 3 5 4 Now user has to add particular user to this activity So he has to select the button New Participants On clicking this button the following GUI will appear Fig 15 bar demi Bede Prereei Doi bie od ou e 1 oRrirr threes ieee iier Hol z i mee mer Faire n Fig 15 3 5 5 The user has to select existing participant from the combo box Existing Participants or he can enter new name in the field New Participant In our example we have created Users are cadadmin caduserl and caduser2 We created three activities Design Assigned to user caduserl Review Assigned to user caduser2 and Submit Assigned to user cadadmin 3 5 6 User can also assign deadline to a activity by selecting the button Add under the label Deadline In the example we have en
22. er Manual public void onReady Object b BnNodeLocal n throws HeroHookException public void onDeadline Object b BnNodeLocal n throws HeroHookException ProjectSession prjSession String projectName relation System out println Deadline Testing Programs Get the project context try projectName n getBnProject getName ProjectSessionHome projectHome ProjectSessionHome ProjectSessionUtil getHome prjSession projectHome create prjSession initProject projectName Date dNow new Date SimpleDateFormat dfl new SimpleDateFormat dd MM yyyy System out println the system time is dNow System out println get_actl prjSession getNodeDeadline act1 DateFormat df new SimpleDateFormat dd MM yyyy Date dateLi df parse 20 06 2007 prjSession setNodeDeadline act1 dateLi getTime prjSession setNodeRole act caduser2 System out println get act2 prjSession getNodeDeadline act2 prjSession getNodeDeadline act2 System out println inside try block of ONDEADLINE y catch Exception e System out println inside catch block of ONDEADLINE y e printStackTrace System out println after catch block of ONDEADLINE y 9 1 2 Hook Loading Compiling and Deployment Hooks are stored on the file system as standard java classes It is necessary to load the code that has been written into the application
23. gets integrated with the JOnAS application server For this open a command prompt and go to Bonita home directory and issue the ant command This will compile Bonita with JOnAS Now it s time to start Bonita with the application server Then open a command prompt and go the Bonita home directory and issue the ant initDB command This will initialize the Bonita environment 4 10 To access the Bonita workflow system open a web browser and type the URL http localhot 901 1 bonita Here you can create new users and the users will be created in the postgresql database in the table bnuser inside your database July 2007 45
24. he To do list through User gt To do Fig 23 Eis Git Yes Ga jjnremawm Tech ioe Er AATE KE 06 RUE me memeh eak apima arara rin Fig 23 under Action 3 9 2 In Fig 23 user caduser1 has to start the activity by clicking the start icon 3 9 3 Click the node User Done 3 10 Viewing the list of Done Activities Select User gt Done in left panel of the browser to view a list of the Done Activities Fig 24 Kim quem ee piim O Oo or a j be ee ee ee m erm rim uje i c mmmwhina o markisa wes os marissa Dhim Seems oS eis Jim geese son ce Pee coger LIN lo Workflow Prontas Consol LE I Wed lan L2 TRA DA MIT Ear ee ai cm rua ROT Fig 24 July 2007 17 CollabCAD Workflow User Manual 3 11 View and Deletion of Process User can View and Delete the activities after login successfully 3 11 1 Select Designer gt Process Models Fig 25 to view the process details TN CR i o OL QE l epa ee ee Rm sah TREE Se See oe Gn Wgrrus cma amus d wees comes Fig 25 3 11 2 Selecting CollabCAD Template in our example will give details of a project as in Fig 26 Se Hw BS D EENH bee ee Ca eres am es o ee modd G Medos hE 6 een pees um Tees emm D ndm oa Wordlow Process Coneole Fig 26 In Fig 11 click on the link Delete under the label Action to delete the process July 2007 18 CollabCAD Workflow User Manual 3 12 S
25. mail user lt username gt For each protocol imap pop3 smtp Ovveride default values defined aboved mail lt protocol gt class lt class name gt mail smtp host 192 168 1 1 mail smtp port 25 mail lt protocol gt user lt username for a specific protocol gt CollabCAD Workflow User Manual 3 Creating a Workflow Refer to Bonita User Guide PDF for more details 3 1 Creating Users This facility is available at _http hostname portnumber jiiapAdmin in the Address Bar The login page Fig 1 appears Login with existing user bsoa bsoa ie bm e km oar xm dm Q Q g Q uh erm me nena m mma i i Pai ee e Beh bee cei ae Qe Gee ee ee eee pN Ge _ Benita Inm 1 Fig 1 The workflow process page will appears The left panel tree structure shows the following nodes a Administer b Designer C Operator d User These are the possible roles Fig 2 s dum ms aures dese deg G O 49 Qi riuesmasamast eee m ujna EL omeubing Eas mre SRS Dio ee Kapari 5 MagsRias ruis Die Bess oam nba Fists cores mu due rmm MI Workflow Process Console Fig 2 July 2007 6 CollabCAD Workflow User Manual A screenshot of the expanded tree with details is given in Fig 3 a CTRCT 07 E C3 LO CP doe QE o rampe secum mere omo f n cH rm the Has KZ era Deere dois Workin Process Console Fig 3 The Administrator has the following options
26. me bite 4 oi cs ii amp am beni pr ee ul smt Baler ef coe pi ies Wu LSS imm Hee F Pasi Dus oe Maree tani errr Ae etel CH i e i Workhllew Process Conaola IL i orsa Fig 20 July 2007 15 CollabCAD Workflow User Manual 3 7 Instantiate Project Project can be instantiated by following steps 3 7 1 Click on User gt Start gt CollabCAD Template 1 0 in left panel of the browser It leads to the page in Fig 21 3 7 2 Project will be instantiated on clicking Start Fig 21 Green button hie dubi wee Lea Beer tee dirie D Lo ep ee ma DO plaid erred cree ie Une Ex m mantis SF Rate inen SE hub os eet Seja Onda Dee Wines ieee PP ie coe Leith arts UA i Mb remm imi dizi same E BER SY ee eee hae AE ie deum im um jearen pees ee eee ceded eee i oe eet Deo E Fig 21 3 8 Viewing the list of Running Activities Click on User gt Running gt CollabCAD Template The process instance details are displayed Fig 22 Ee ri e que demum Dumie tists ca gt GL Ce Ge ACIE rani rac san m Fir A lap nin pee ae rb i gi nti tose o M s rili lei Bose Aandi Chas amp Miia Peer o Saris Cie COLE Les tae oe Fae ireen senate ND noi raro Hi Demy res Worktiow Process Console PURE Fiy rend raa ee iieii eT Denn Fig 22 July 2007 16 CollabCAD Workflow User Manual 3 9 Accessing the To Do list 3 9 1 On login User can see t
27. nagre f quen rece eee rete beer pede wem Meises roti aa ae Loir CY FE T nd pieces o y peer Ll mm UD ee M KG ner SPA eT FLALT CHA Fig 10 July 2007 10 CollabCAD Workflow User Manual 3 4 3 To edit the user account select a particular user e g bsoa from Member User Name Fig 11 rea ar ie Ge ponbm ka Jea pain C3 e 53 O QU G Bite ne inet in diaper marin r c rrr ote Softee EL Worktiow Process Console Eba lii ISI remit sos pma ea m meee e SS eer Y bom oe T Je MATOH Joe quA En aon z ay pirum sericea EE I Fansa dle amm FE Fig 11 User can edit User mail Roles and Password of user 3 5 Creating a Workflow Project 3 5 1 For creating a Project in Workflow Administrator user has to select Designer gt Workflow Editor Proed Fig 12 A new window will appear ProEd window Eilis krt o view Er bookmarks Inch bel Cm GP CX 6 P ranunodacalhost ao cro acid cim rv Sees comata c Sendra 3 Heira Shore 0 Mandriws Oika Mantes Experto 5 Manira Online ILS WXabree ca Workflow Process Con E Ae hi 9 Impari SPOL m Chnarmane i User Fig 12 July 2007 ll CollabCAD Workflow User Manual 3 5 2 Select File menu in the ProEd window and click on new A new GUI will appear where user has to enter the correct value In our example w
28. p nbsp amp nbsp a center td lt tr gt lt table gt lt body gt lt html gt Jsp code for Detailed View jsp is as follows lt page import java sql Yo gt lt Class forName org postgresql Driver 96 lt HTML gt lt HEAD gt lt TITLE gt Selecting data From a table lt TITLE gt lt HEAD gt lt BODY gt lt H1 gt Selecting data From a Table lt H1 gt lt Connection connection DriverManager getConnection mon non jdbc postgresql test postgres postgres Statement statement connection createStatement ResultSet resultset statement executeQuery select from testing 96 lt TABLE BORDER 1 gt TR lt TH gt SN lt TH gt lt TH gt WONO lt TH gt lt TH gt NOJ lt TH gt lt TH gt NOP lt TH gt lt TH gt QTY lt TH gt lt TH gt DOA lt TH gt lt TH gt DOT lt TH gt lt TH gt PLNR lt TH gt lt TH gt Remarks lt TH gt lt TR gt lt while resultset next 96 lt TR gt lt TD gt lt resultset getDouble 1 96 td lt TD gt lt resultset getString 2 gt lt TD gt lt TD gt lt resultset getString 3 gt lt TD gt lt TD gt lt resultset getString 4 96 TD July 2007 36 CollabCAD Workflow User Manual lt TD gt lt resultset getDouble 5 gt lt TD gt lt TD gt lt resultset getString 6 96 TD TD lt resultset getString 7 96 TD lt TD gt lt resultset
29. tart Deploy Undeploy a Process 3 12 1 From the Navigational tree select Operator gt Process Models Fig 27 ELS y pe ao poa 3 a ce ee am o er e o be bm o TONO c ot P Lon mud acp co EMO eee ee M bees eee ee ee em tr dm Cee TOT ti i i f i iii Fig 27 3 12 2 Select Start undeploy symbol undeploy the process under column Action to deploy or 3 12 3 Select process name e g CollabCAD Template under Name In Fig 28 the details of the process in the workflow are described The user can deploy or undeploy the process by clicking the start or undeploy symbol pee dem pmo eee ja e i OU 0 O CD i rmm Reid Sees dm s Mmemmum o Hemena Garr v Heima b dirai per emtee P bm saia eee rora Come Workilpw Popes Congole E Deqan ran B mic mu ipe Tem Ere u a come Peon sb ese sat rta Sein erum fimi A mn immi oie mirer DE Tes ma B IN im a F Fig 28 July 2007 19 CollabCAD Workflow User Manual 3 13 Deletion Termination of the Instances In the Navigational tree select Operator gt Process instances User can terminate or delete instances by clicking on the respective symbol on against each instance name under column Action Fig 29 vum G G m oca s Rm ma Sheers Wesce fe ee et eee Ger Gees cum ema J rame cunis ram m gt r lit i m
30. tered deadline date of different users cadadmin caduser1 caduser2 Fig 16 Fig 16 July 2007 13 CollabCAD Workflow User Manual The complete workflow is shown in Fig 17 Fig 17 3 5 7 Save the workflow in the name of CollabCAD Template 1 0 xpdl from File gt Save menu We can save the project to both Local File System and workflow repository Fig 18 July 2007 14 CollabCAD Workflow User Manual 3 6 Importing a Workflow User needs to bring the project to its workflow database so that other users can work on it This can be accomplished by importing the project 3 6 1 In the browser window of workflow select Designer gt Import XPDL Browse the xpdl file from the local system User can also import the project file from the repository by clicking the tab Import from workflow repository Now click on the Import button Fig 19 ie pii Yew Go orimaita Tula Heip D e E O QE ae i mepocahan gooniaparwei nme da em IL sie Mandian m c MAandresa Chih Mantis Espert 1i baie foes Ecl oum Minen dos Frisim c x Worklilow Process Console E Prepi ermal ei 3b Liner empor APOL impan imm wnei sepsin y WHHL de ra mes iram eed lim uia o PRorenicim Erf Cual CAE ewe d Todo a o Dene Fig 19 3 6 2O0n successful import a message will be shown as Process CollabCAD Template 1 0 was successfully added Fig 20 s ST NU Die eee err de
31. tion gt class The class implementing the desired business logic b Properties files lt action gt properties Provide additional information to ProEd such as parameter names and descriptions c Template files lt action gt template or default template A template for creating a HookScript entry of the lt project gt xpdl file used to access the action class from within the Workflow server 8 2 2 Directory Hierarchy All action class system files are located on the workflow server in the action directory located at lt JONAS BASE gt bonitaScripts action directory Create a separate sub directory for each action type For example the files Insert java and Insert properties are put in the folder Testing The Insert java file needs to be compiled e g For Window Go to JONAS BASE bonitaScripts action Testing For Linux Go to SJONAS BASE bonitaScripts action Testing run javac Insert java gt Code for of Insert java is given below package action Testing import java sql import java util public class Insert int a public void insert String sn String wono String name of job String name of project String qty String date of accept String target date String plnr String remarks try String url jdbc postgresql Nocalhost 5432 test Class forName org postgresql Driver Connection conn DriverManager getConnection url postgres postgres Statement s conn createStatement ResultSet
Download Pdf Manuals
Related Search
Related Contents
g \ `\ 597/ \<\ i Sony XS-W5721 Marketing Specifications Z-Wave In-Wall Single Switch Manual Bluestork BS-MROAD mice Canon MP11DX Owners Manual for ophthalmic instruments 要求水準書(PDF) Copyright © All rights reserved.
Failed to retrieve file