This wiki page addresses the implementation side of OODT-568. Specifically, this document will show you how to run your pre-existing PGE Task within a Windows (Cygwin-enabled) environment.
Requirements:
- Pre-existing PGE task. See CAS-PGE Learn By Example for details if you do not know how to set one up.
- Windows XP+ box
- Cygwin
- OODT Workflow manager 0.6-SNAPSHOT+
- OODT PGE 0.6-SNAPSHOT+
Steps:
1. Tell Workflow Manager to run your PGE using special Windows (cygwin) specific code
To do this, modify your pre-existing PGE task instance entry for your PGE task within tasks.xml (WORKFLOW_HOME/policy/tasks.xml) to use the special WinPGETaskInstance class. You will need simply set the class attribute of your PGETask to use the WinPGETaskInstance class: 'org.apache.oodt.cas.pge.WinPGETaskInstance'. An example is shown below.
<task id="urn:myawesomeproject:MyWinPGETask" name="MyWinPGETask" class="org.apache.oodt.cas.pge.WinPGETaskInstance"> <conditions/> <configuration> <property name="PGETask_Name" value="MyWinPGETask"/> <property name="PGETask_ConfigFilePath" value="[PGE_ROOT]/pge-configs/my-win-pge-task.xml" envReplace="true"/> <property name="PGETask_DumpMetadata" value="true"/> <property name="PCS_WorkflowManagerUrl" value="[WORKFLOW_URL]" envReplace="true" /> <property name="PCS_FileManagerUrl" value="[FILEMGR_URL]" envReplace="true"/> <property name="PCS_MetFileExtension" value="met"/> <property name="PCS_ClientTransferServiceFactory" value="org.apache.oodt.cas.filemgr.datatransfer.LocalDataTransferFactory"/> <property name="PCS_ActionRepoFile" value="file:[CRAWLER_HOME]/policy/crawler-config.xml" envReplace="true"/> <property name="QueueName" value="win-queue"/> <!-- assuming we are using resource manager to configure a specific queue for windows tasks --> </configuration> </task>