![]() |
OpenMake Meister |
Table WF-5 will walk you through the steps of executing a Workflow that executes an existing ANT script, and then launches the application once it has been built. The Workflow will execute the application by launching it through the Java virtual machine.
*Note: This Workflow requires that you have a JDK installed. You can install the JDK by going to https://java.sun.com/. You need the Java Standard Edition JDK for compiling and running the Metalworks application. Once you install the JDK you will need to set your JAVA_HOME directory in your machine's environment variables to the location where the JDK was installed. For example:
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_11
Table WF-5: "Metalworks ANT Build" Sample Workflow
Step |
Action |
1 |
Be sure you install the Java Standard Edition JDK for compiling and running the Metalworks application before you execute this Workflow. You can install the JDK by going to https://java.sun.com/. You must also set your Java Home directory as described above. |
2 |
From the OM Workflow perspective, go to the Workflow Explorer. Expand the Public Workflow node and double click on "Metalworks ANT Build". |
3 |
A default output directory must be defined so that if a build directory is not defined for the Workflow then the Workflow knows where to write the results. If you have not set a default output directory, a dialog box will display. Enter c:\build. |
4 |
Select the Activities tab to go to the Activities View. Double click on the "Metalworks ANT Script – Sample Workflow" Activity. This Workflow executes Activities that builds the Metalworks application by running an ANT script and mimics a deployment step that launches the applications from the c:\mojo\metalworks directory. |
5 |
From the Workflow Explorer right mouse click on the "Metalworks ANT Script – Sample Workflow" Workflow and select Execute Workflow. |
6 |
You will see the progress of the Workflow as it executes in the bottom pane of your screen in the Workflow Monitor. |
7 |
Before the Workflow completes, Metalworks will display to your screen. Notice in your Workflow monitor that the Workflow has not completed as long as Metalworks is still executing. This demonstrates how the Workflow Monitor watches each process as it executes. |
8 |
Close Metalworks and notice that the Workflow will now be reported as "complete". |
9 |
From the Workflow Log Explorer expand the nodes Metalworks ANT Script - Sample Workflow– Today – My Computer. Select the log. If you do not see your log, select the refresh icons (two circular arrows) to refresh your data from the Knowledge Base Server. |
10 |
The log will display the results of each Activity in the Workflow. |