PowerFolder Workflow Server Version 0.5 Test Drive (4)

xiaoxiao2021-03-06  72

2.3 SubmitInvoice submit invoices 2.3.1 Situation scenario Company employees must fill out a purchase request if they want new supplies of pencils, paper, and toner. A purchase request total under $ 10 should be approved automatically, otherwise someone from the accounting department must Also Approve. Pencils Cost $ 0.50 Each, Paper COSTS $ 0.07 Each, And Toner Costs $ 5.99 Each. When the company needs to provide new pencils, paper and clips, they must fill in a purchase request. Purchase requests below $ 10 will be automatically approved, otherwise someone else must be approved. The pencil is $ 0.5 per piece, with a paper per piece, a clip of $ 5.99.

Accounting Chan Change The Quantities of Purchase Requests Costing $ 10 or more. Finance department can change the number of purchases that spend $ 10 and above.

2.3.2 Preparation Preparation

2.3.2.1 Overview Overview 1) IF The PowerFolder Server Has Not Been Started, Start It Now. If the PowerFolder server has not started, start it. 2) Log INTO The PowerFolder Console Login Enter PowerFolder Console 3) Undeploy All Scripts and Web Pages Uninstall all scripts and pages 4) Deploy The Following Script and Web Pages. Publish the following scripts and pages. Script: Script - SubmitInvoice

Web Pages: Page - AdjustInvoice- ApproveInvoice- EnterInvoice- SubmitInvoice- ViewInvoices

2.3.2.2 How-To what to do - Starting the PowerFolder Server If you configured environment variable 'JAVA_HOME' during installation, just double-click 'run_with_tomcat.bat' in Windows Explorer Otherwise, open a command console and make sure the environment variable.. 'JAVA_HOME' is set to base directory of the Java installation. start the PowerFolder server by going to the directory then go to the 'jboss' subdirectory then again go to the 'bin' subdirectory. Run program 'run_with_tomcat.bat'. start PowerFolder server. If you configure the environment variable Java_home during installation, just double-click Run_With_Tomcat.bat in resource management. Otherwise, open a command console, design environment variables Java_home to the root directory of Java installation. To launch the PowerFolder server, move to the installation directory, to the JBoss subdirectory, to the bin subdirectory, run the program run_with_tomcat.bat. . - Logging into the PowerFolder Console Open a web browser and go to the address 'http: // localhost: 8080 / powerfolder / login' Enter 'admin' for the user name and password, then press 'Login' to log into the PowerFolder.. Console: Open a browser, go to address 'http: // localhost: 8080 / powerfolder / login', enter admin as user name and password, press the Login button.

-.. Undeploying scripts and web pages To undeploy scripts, from the PowerFolder Console open 'Administer' then open 'Scripts' Check the boxes next to the scripts you want to undeploy under the section 'Deployed Scripts' then click 'Remove Checked Scripts' . to undeploy web pages, from the PowerFolder Console open 'Administer' then open 'Web Pages'. Check the boxes next to the web pages you want to undeploy under the section 'Deployed Web Pages' then click 'Remove Checked Web Pages'. Uninstall all scripts and pages. To uninstall the script, open Administer from the PowerFolder console, then open Scripts. In the 'Deployed Scripts' section, select the selection box in front of the script you want to uninstall, and then click 'Remove Checked Scripts'. In order to uninstall the page, open the Administer from the PowerFolder console, then open the web pages. Select the page you want to unload in the deployed web paged section, then click 'Remove Checked Web Pages'. -.. Deploying scripts and web pages To deploy scripts, from the PowerFolder Console open 'Administer' then open 'Scripts' Check the boxes next to the scripts you want to deploy under the section 'Available Scripts' then click 'Deploy Checked Scripts' .- to deploy web pages, from the PowerFolder Console open 'Administer' then open 'Web Pages'. Check the boxes next to the web pages you want to deploy under the section 'Available Web Pages' then click 'Deploy Checked Web Pages' Publish scripts and pages. To publish the script, open Administer from the PowerFolder console, then open Scripts. In the Available Scripts section, select the script you want to publish, then click 'Deploy Checked Scripts'. To publish a web page, from Administer, open Web Pages. Select the page you want to publish from the Available Web Pages section, then click 'Deploy Checked Web Pages'. 2.3.3 Technical Overview Technology Overview

2.3.3.1 Diagram flowchart 2.3.3.2 Workflow Steps Workflow Step

1) Submitinvoice - this is where the process starts. If The Purchase Request Is over $ 10, Go to 'NotifyAccounting'. OtherWise, Go To 'AutoApprove'.SubmitInvoice - This is where the process is started. If the purchase request exceeds 10 US dollars, move to 'NotifyAcCounting', responsible, move to 'autoApprove'.

2) Notifyaccounting - Tell Accounting That Is Has A Specification Change To Approve.NotifyAccounting - Tell the finance department to have a specification change to be approved.

3) ApproveInvoice -. Wait here until Manufacturing approves Once this wait has been externally released (via web page), print a message to indicate that the purchase request has been approved.ApproveInvoice- wait before approving the financial sector. Once this is waiting to be released from the external release (via the web page), print a message will be printed to explain the request has been approved.

4) AutoApprove - Print A Message To Indicate That The Purchase Request Has BEEN Approved WITHOUT ACCOUNTIS INPUT.AUTOAPPROVE - Print One message indicates that the purchase request has been approved without the input of the financial department.

5) End - this is where the process ends.end - this is where the process is over.

2.3.3.3 User Interface User Interface 1) AdjustInvoice - Allows The Accounting Department To Change The Quantities of a Purchase Request Before Approving.AdjustInvoice - Allows the financial department to change the number of purchases before approved.

2) ApproveInvoice - Approve The Revised Purchase Order.ApproveInvoice - Approved the modified purchase order.

3) ENTERINVOICE - Allow The User To Submit A Purchase Request for New Quantities of Pencils, Paper, And Toner.EnterInvoice - Allows to submit a request for purchasing pencils, paper and clips.

4) Submitinvoice - Response Page That Appers WHEN A User Submits a Purchase Request. SubmitInvoice - When the user submits a response page after a purchase request. This is the page of the startup process

5) ViewInvoices - display all purchase requests that require Accounting's approval ($ 10 or more) From here, an accountant can choose one and optionally change its quantities before approving ViewInvoices -.. Show a purchase request all the necessary financial approval of ($ 10 or more many). From this financial personnel, you can choose a request to change its quantity before approved. 2.3.4 Usage Use 1) Open a browser (preferably different than the on with PowerFolder Console) and go to 'http: // localhost: 8080 / ViewInvoices.jsp'. Note the '.jsp' - all web pages in PowerFolder end WITH '.JSP' WHEN Deployed. You Should Not See Any Purchase Orders in Accounting's Inbox. Open a browser (better with the PowerFolder console), to 'http: // localhost: 8080 / startprint10times.jsp'. page , Pay attention to ".jsp", in PowerFolder, all web pages are ended in JSP after publishing.

2) from the Web Browser, Go to 'http: // localhost: 8080 / Enterinvoice.jsp'. Enter 2, 2, and 1 next to the boxes 'Pencils', 'Paper', and 'Toner', Respectively. THEN Click 'Submit Invoice'. The Total for this Purchase Order Is Under $ 10. From the web browser, to http: // localhost: 8080 / enterinvoice.jsp, the text next to 'Pencils', 'Paper', and 'Toner' In the box, 2, 2, 1, respectively. Click Submit Invoice. The total price of this purchase order is less than $ 10.

3) Go Look at the command console running 'run_with_tomcat.bat'. You Should See THIS PURCHASE ORDER WAS Automatically Approved. The command line console of running run_with_tomcat.bat is observed. You will see this purchase order has been automatically approved.

4) From the web browser, go to 'http: // localhost: 8080 / ViewInvoices.jsp' You should still not see any purchase orders in Accounting's inbox from a web browser to http:.. // localhost: 8080 / ViewInvoices .jsp, you can't see any purchase orders in the inbox of the Finance Department.

5) From the Web Browser, Go to 'http: // localhost: 8080 / Enterinvoice.jsp'. Enter 3, 1, and 2 next to the boxes 'Pencils', 'Paper', and 'Toner', Respectively. THEN Click 'Submit Invoice'. The Total for this Purchase Order Is over $ 10. From a web browser, to http: // localhost: 8080 / enterinvoice.jsp, the text next to 'Pencils', 'Paper', and 'Toner' 3, 1, 2 in the box, respectively. Then click Submit Invoice '. This purchase order has a total price of more than $ 10. 6) Go Look At the Command Console Running 'Run_With_tomcat.bat'. You Should See That Accounting Was Notified. The command line console of running run_with_tomcat.bat is observed. You can see that the Finance Department has been notified.

7) from the Web Browser, Go to 'http: // localhost: 8080 / viewinvoices.jsp'. You Should See The Newly Entered Purchase ORDER. Click The Button (Ignore The Strange ID) Next To It. From a web browser, To http: // localhost: 8080 / viewinvoices.jsp. You can see the newly entered purchase order. Click the button next to it (ignore the strange ID number).

8) Change the Quantity of 'Pencils' from 3 to 5. Then Click 'Approve'. Change the number of Pencils from 3 to 5, click Approve

9) Go look at the command console running 'run_with_tomcat.bat'. You should see that Accounting has approved this purchase order and its total has changed to reflect the new quantities. Run_with_tomcat.bat observe the operation of the command-line console. You can see that the finance department has approved this purchase order and his total number reflects the new number of modifications. 2.3.5 Results The results Go to the PowerFolder console and open 'Administer'. Under the 'Existing Workflows' section click the 'Find Workflows' button. PowerFolder moved to the console, open 'Administer'. In 'Existing Workflows' portion, Click the 'Find Workflows' button.

Now that you are at the 'PowerFolder Query Workflows' web page, change the contents of' Query 'to' * APP * = 'SubmitInvoice' '(note that you should surround SubmitInvoice with single quotes) and' Output 'to' * ID *, * App *, * status * '(Pay attention to letter case!), Then click' Submit '. Now you are in the PowerFolder Workflow Query page, change' query 'content is' * App * = 'submitinvoice' '(Note that you should surround the submitinvoice) and' output 'content is' * id *, * app *, * status *', pay attention to the case of the characters and do not use any spaces, then click 'submit' (submitted) .You should see two listings - the workflow that was'. AutoApprove'd and the one that required accounting's approval The listing should contain a unique id (each workflow gets its own), 'submit' For the script name, and 'Done' for ITS Status. You will see two lists - automatic approved workflows and workflows that require financial approval. The list should include a unique ID (there is your own id), SubmitInvoice is the script name, DONE is its status.

Now Click The 'Snapshot' Button. This Will Open A New Window Which Will Allow You To Get More Detail About The Current State of this Workflow. Click the 'Snapshot' (Snapshot) button. This will open a new window, which will give you more details about this workflow current state

转载请注明原文地址:https://www.9cbs.com/read-91940.html

New Post(0)