Hi Sheryl, I've been learning up on CAS-PGE for the last few weeks, so hopefully I can share some insights with you and help answer some of your questions.
Also, I'm currently working on a tutorial document on how to get a simple PGE running by example. This document is nearly complete, so please stay tuned for it on the OODT website. My responses: On Jul 13, 2011, at 10:24 AM, Sheryl John wrote: Hi, I'm learning CAS-PGE from available sources of documentation(wiki,wengine documentation etc). So far I got the Workflow manager running, but for CAS-PGE I have the following doubts: 1) How does the workflow manager get the pgetask to run? To run the PGE, try something like the following: > cd $WORKFLOW_HOME/bin > ./wmgr-client --url http://localhost:9001 --operation --sendEvent --eventName > <YOUR_PGE_NAME> Remember, the workflow manager runs the PGE like other typical workflow events. Essentially, you should add a new PGE event description to respective policy files within your workflow manager. This will be necessary to do prior to running the PGE. ie. add new PGE event information to: [1] $WORKFLOW_HOME/policy/events.xml [2] $WORKFLOW_HOME/policy/tasks.xml [3] $WORKFLOW_HOME/policy/<YOUR_PGE_NAME>.workflow.xml 2) Where should I specify the path to the pge policy files? Should it specified both in the workflow.properties and pcs-pge-task-workflow.properties ? This is done in: $WORKFLOW_HOME/policy/tasks.xml under the "PGETask_ConfigFilePath" property. Within this file, you will add a property under a new <task> and <configuration> element like: <task id= .... name=... class=...> <configuration> <property name="PGETask_ConfigFilePath" value="[PGE_ROOT]/bin/pge-configs/<YOUR_PGE_NAME>/PGEConfig.xml" envReplace="true"/> .... </configuration> </task> 3) Should I place the pge jar files in the workflow/lib and pge/lib? Place your PGE jar file within workflow/lib at a minimum. Also, ensure the OODT CAS-PGE jar is placed under workflow/lib. 4) Is there anything else I should do apart from defining the PgeConfig files and the TaskInstances for configuring and running the PGE? To set up a PGE, you must do the following: [1] Build your custom PGE jar and place it in $WORKFLOW_HOME/lib [2] Create your custom PGEConfig.xml file detailing how to run the PGE [3] Modify and update CAS-Workflow policy files to reflect information about your PGE task [4] Ensure you have a [PGE_ROOT] directory structure defined - which stores your PGEConfig.xml file as well as any external programs/scripts your PGE uses [5] Specify an output directory location for products of your PGE. This directory will need to be defined within your PGEConfig.xml Thanks, Sheryl No problem! It can be a bit confusing working with CAS-PGE without a good example. I should have the tutorial guide completed very soon. thanks, rishi
