Previous Topic

Next Topic

Book Contents

Book Index

On Do Action XML value example

The following example describes how to export to XML an On Do Action in the Planning domain, and then add it to the Conversion Option value column in the UC4 Script Conversion file.

  1. In Job Properties, create the following On Do Action:

    S_CONV_ON_DO

  2. From the Workspace tab, select Export, and save the exported XML.
  3. Open the following XML:

    <?xml version="1.0" encoding="utf-8"?>

    <!--Exported at 18-09-2017 15:35:47-->

    <DEFTABLE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Folder.xsd">

    <FOLDER DATACENTER="CTM-Server1" VERSION="900" PLATFORM="UNIX" FOLDER_NAME="Folder#2" FOLDER_ORDER_METHOD="SYSTEM" TYPE="1" ENFORCE_VALIDATION="N">

    <JOB MEMNAME="a" JOBNAME="OS_Job#1" CREATED_BY="amir" RUN_AS="a" CRITICAL="0" TASKTYPE="Job" CYCLIC="0" INTERVAL="00001M" MEMLIB="a" CONFIRM="0" RETRO="0" MAXWAIT="0" MAXRERUN="0" AUTOARCH="1" MAXDAYS="0" MAXRUNS="0" DAYS="ALL" JAN="1" FEB="1" MAR="1" APR="1" MAY="1" JUN="1" JUL="1" AUG="1" SEP="1" OCT="1" NOV="1" DEC="1" DAYS_AND_OR="O" SHIFT="Ignore Job" SHIFTNUM="+00" SYSDB="1" IND_CYCLIC="S" RULE_BASED_CALENDAR_RELATIONSHIP="O" APPL_TYPE="OS" MULTY_AGENT="N" USE_INSTREAM_JCL="N" CYCLIC_TOLERANCE="0" CYCLIC_TYPE="C" PARENT_FOLDER="Folder#2">

    <ON STMT="*" CODE="NOTOK">

    <DOACTION ACTION="OK" />

    <DOMAIL URGENCY="R" DEST="amir_banai@bmc.com" SUBJECT="Job Failed" ATTACH_SYSOUT="D" />

    </ON>

    </JOB>

    </FOLDER>

    </DEFTABLE>

  4. Copy the following XML to the Conversion Option value column:

    <ON STMT="*" CODE="NOTOK">

    <DOACTION ACTION="OK" />

    <DOMAIL URGENCY="R" DEST="amir_banai@bmc.com" SUBJECT="Job Failed" ATTACH_SYSOUT="D" />

    </ON>

Parent Topic

UC4 scripts conversion