Step 1: Create BPM Application; add an asynchronous BPM process, with User interactive activity.
Figure 1: Asynchronous BPM Process
Step 2: Create a Business Object (AddressBO) base on address.xsd [I am standard US address format - street, city, state and zip]
Figure 2: adress.xsd
Step 3: Create a Data Object (addressDO) base on AddressBO (Business Object)
Step4: Create the human task called it ShowLocationHT, with adressDO in its payload.
Step 5: Now create a generic project under BPM Application. [File > New > All Technologies > Project > Generic Project]
Step 6: Right Click on the Generic Project, Select “New” as show below
Step7: Select “ADF Task Flow base on Human Task (JSF)“.
Tip: search with “human task” to quickly find the item.
Step 8: Select the correct .task file from the BPM Project folder.
Step9: Click on “OK” (go with default settings), Let Jdeveloper to create the required component for you.
Step10: Open default activity within the task flow (one with green background).
Step 11: Enter file Name and click on “OK” button. It will create an empty jspx file.
Step 12: Under data control navigator, you should be able to see a data control with
Expand the data control as show below.
Step 13: Drag and drop “Task” into the empty page. Select Human Task> Complete Task with Payload as shown below.
Click on “OK” twice; wait for JDeveloper to create all the components of Human task.
Step 14: JDeveloper will create all required component for the Human task along with its payload.
Step 15: Before adding map component to the human task, Go to the Project Properties of the ADF task flow project and select Project Properties as shown below.
[ADF task flow Project >Project properties]
Step 16: Select “JSP Tag Libraries” tab,
Click on “Add” to add “ADF Data Visualization 1.1” libraries.
Step 17: From the data control navigator drag and drop Address object into jspx page where you want to show the map.
Select getTaskDetails()>Return>Task>Payload > Address >
Geographic Map > Map and Point Theme. As shown below.
Step 18: In Create Geographic Map wizard, click on the green plus to add Map Configuration.
Step 19: Add MapViewer and Geocoder URL by clicking green plus icon against each field.
Step 20: Add MapViewer URL, click on Test Connection to test the connectivity.
MapViewer URL: http://elocation.oracle.com/mapviewer
Step 21: Add Geocoder URL, click on Test Connection to test the connectivity.
[Geocoder URL: http://elocation.oracle.com/geocoder/gcserver%5D
Step 22: Select MapViewer URL and Geocoder URL and click OK.
Step 23: If you configuration is correct you should be able to see the world map. Like the one you see below.
Step 24: Select US (street,city,state,zip) from the drop down menu.
Step 25: Map street, city, state, zip values as shown below.
Step 25: Once DVT map component is added, open property inspector to change its property.
Under Appearance tab
- Set map Theme_Id for AutoZoomThemeId.
- Set StartingX and StartingY values.
- Set MapZoon to 14 (street level zooming).
Under Other tab
- Set AutoZoomStrategy to CENTERALZOOMLEVEL.
- Provide Summary value [any string value will do].
Step 26: deploy the BPM process.
Step 27: Make sure you DON’T select the ADF project along with your BPM project while deploying BPM project.
[DON'T check any of the following checkboxes.]
Step 28: Wait for BPM process to deploy
Step 29: Right Click on Application, Select Deploy > [ADF project name]
Step 30: Select “Deploy to Application Server” as shown below.
Step 31: Select right Application Server.
Step 32: Select soa_server1, from the list of Standalone Server and Clusters.
Step 32: Click “finish“.
Step 33: Click “Deploy“.
Step 34: for open process in em console, click on “Test” button.
Step 35: Provide a valid US address then Click on “Test Webservice“.
Step 36: Login into BPM workspace, click on the work item to view the address on DVT geographic map embedded on a human task.
No comments:
Post a Comment