Archive for September, 2010

Updated skeleton task

Posted: 20 September 2010 in Uncategorized
Tags: ,

Have a look here https://lpicquet.wordpress.com/2009/05/18/skeleton-urlexternaltask/.

The skeleton URL task has been updated to allow workflow control with error handling.

Advertisements

When an external task is invoked from a workflow, the command is passed additional parameters.

These are:

  • The workflow job ID
  • The workflow task ID
  • The VPAth of the area in which the task is set to execute, as specified by the AREA V PAth property
  • the area relative VPath of each file attached to the task

For example, let’s say we have a little program that just says hello to a specific user to standard output. If the command is specified as follows:

$IW_HOME/iw-perl/bin/iwperl $IW_HOME/custom/bin/acme_helloworld.sh $IW_USER

Then the final program invocation will look like this:

$IW_HOME/iw-perl/bin/iwperl $IW_HOME/custom/bin/acme_helloworld.sh $IW_USER jobid taskid /default/main/acme/WORKAREA/someworkarea file1relativepath file2relativepath ...

Note that in this example, $IW_USER is part of the command property of the task and is not added by the system.