Built-in environment variables
You use built-in environment variables when you want the content of the variable to be automatically interpreted by Platform Application Center.
PAC_SPOOLER_DIR
The directory for spoolers. Defined in repository.xml:
<ParamConfs>
<Configuration>
<Repository>
<User>all</User>
<Path>/home</Path>
</Repository>
</Configuration>
</ParamConfs>
…
Example:
<pac:spooler server="${PAC_SPOOLER_DIR}">
...
PAC_SPOOLER_URI
The current directory in which spoolers are running.
Example:
<pac:option id="INP_INPUT_FILE" type="file" />
<pac:action label="Submit" id="submit">
<![CDATA[
if [ -z $INP_INPUT_FILE ];then
echo "You must upload a local file."
else
echo "You uploaded this file:<br/>"
echo "$PAC_SPOOLER_URI/$INP_INPUT_FILE"
fi
]]>
</pac:action>
PAC_DOWNLOAD_URL
The URL for displaying an image or downloading a file.
Example:
<pac:action id="put_my_gif_in_div" hidden="true">
<pac:action label="Submit" id="submit">
<![CDATA[
echo "\$('msgarea').innerHTML='<img
src=\"$PAC_DOWNLOAD_URL?spooler=$PAC_SPOOLER_URI&
file=x.jpg\" alt=\"logo\"/>';"
]]>
</pac:action>
JOB_FLOW_DETAIL_URL
URL for the Flow Details page, to use after a flow is triggered.
Example:
echo "<pac:flow-details id=\"${FLOWID}\" redirect='$JOBFLOW_DETAIL_URL?
insId=${FLOWID}'/>"
JOB_DETAIL_URL
URL for the Job Details page, to use after a job is submitted.
Example:
echo "<pac:job-details id=\"${JOBID}\" redirect=
'$JOB_DETAIL_URL?jobId=${JOBID}'/>"
JOBGROUP_DETAIL_URL
URL for the Job Group Details page, to use after a job is submitted to a job group.
Example:
echo "<pac:jobgroup-details id=\"${JOBID}\" groupName=\"${GROUPNAME}\"
redirect='$JOBGROUP_DETAIL_URL?groupName=${GROUPNAME}'/>"