External task parameters in workflows

Posted: 15 September 2010 in External tasks, Teamsite, Worfklow models, Workflows
Tags: , , , , ,

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s