Set Environment Variable
The set environment task (setenv
) allows users to set environment variables.
The following attributes configure the task:
Attribute | Type | Purpose |
---|---|---|
name | string | Name of the environment variable to set |
Example
<?xml version="1.0" encoding="utf-8"?>
<job multithread="false">
<setenv name="OUTDIR">/data</setenv>
<generate name="generate.tablecopy">
<collection type="excel" file="sample.xlsx"/>
<output multi="true">%OUTDIR%/tablecopy/${Object Name}.xml</output>
<template>
<include type="text">templates/tablecopy.xml</include>
</template>
</generate>
</job>
Status codes
Status | Status code | Description |
---|---|---|
Ready | -1 | Task is initialized, but not yet started |
Running | -2 | Task is running |
Success | 0 | Task completed successfully |
Warnings | 1 | Task completed with warnings |
Errors | 2 | Task completed with errors |
Aborted | 9 | Task cannot be executed |