Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following examples are for task-related records for all task types except where noted otherwise.
 

Examples

XML

JSON

Anchor
Examples for Workflow Task-Related Records
Examples for Workflow Task-Related Records
Examples for Workflow Task-Related Records


Expand
titleXML

Code Block
languagetext
Workflow Vertices

<workflowVertices>
	<workflowVertex>
		
<alias
<alias />
		
<task>zos
<task>zos task</
task>
task>
		
<vertexId>4</vertexId>
<vertexId>4</vertexId>
		
<vertexX>560</vertexX>
<vertexX>560</vertexX>
		
<vertexY>50</vertexY>
<vertexY>50</vertexY>
	</workflowVertex>
</workflowVertices>

 


 


Workflow Edges

<workflowEdges>
	<workflowEdge>
		
<condition
<condition type="Step Condition">1:*:*:1</
condition>
condition>
		
<sourceId>4</sourceId>
<sourceId>4</sourceId>
		
<straightEdge>true</straightEdge>
<straightEdge>true</straightEdge>
		
<targetId>2</targetId>
<targetId>2</targetId>
	</workflowEdge> 
	<workflowEdge>
		
<points>
<points>
			<point x="280" y="300" />
		</
points>
points>
		
<condition>Success</condition>
<condition>Success</condition>
		
<sourceId>2</sourceId>
<sourceId>2</sourceId>
		
<straightEdge>false</straightEdge>
<straightEdge>false</straightEdge>
		
<targetId>3</targetId>
<targetId>3</targetId>
	</workflowEdge>
</workflowEdges>

 


Step Conditions

<stepConditions>
	<stepCondition>
		
<programName>programName</programName>
<programName>programName</programName>
		
<pstepName>procedureName</pstepName>
<pstepName>procedureName</pstepName>
		
<stepAction>Continue
<stepAction>Continue/Success</
stepAction>
stepAction>
		
<stepCodes>U0016</stepCodes>
<stepCodes>U0016</stepCodes>
		
<stepName>stepName</stepName>
<stepName>stepName</stepName>
		
<stepOrder>0</stepOrder>
<stepOrder>0</stepOrder>
		
<sysId>1f85c539f50a4b488af5aad39a60c05c</sysId>
<sysId>1f85c539f50a4b488af5aad39a60c05c</sysId>
	</stepCondition>
</stepConditions>
 
Step Actions<stepActions> <systemOperation> <actionCriteriaTask>zos task</actionCriteriaTask> <agent>AGNT0001</agent> <agentCluster /> <agentClusterVar /> <agentVar /> <description>description</description> <execCommand>Cancel</execCommand> <execCriteria>Oldest Active Instance</execCriteria> <execId /> <execLookupOption>Instance Name</execLookupOption> <execName


Variable Conditions 
<variableCondition>
         <firstValue>${_varToLowerCase('variableName')</firstValue>
         <operator>=</operator>
         <secondValue>${var2}</secondValue>
</variableCondition>



 
Step Actions
<stepActions>
	<systemOperation>
		<actionCriteriaTask>zos task</actionCriteriaTask>
		<agent>AGNT0001</agent>
		<agentCluster />
		<agentClusterVar />
		
<execWorkflowName
<agentVar />
		
<execWorkflowNameCode>Equals</execWorkflowNameCode>
<description>description</description>
		
<limit
<execCommand>Cancel</
>
execCommand>
		
<notificationOption>Operation Success/Failure</notificationOption>
<execCriteria>Oldest Active Instance</execCriteria>
		
<operation>Suspend
<execId 
Agent<
/
operation
>


		
<overrideTriggerDateOffset>5</overrideTriggerDateOffset>
<overrideTriggerDateTime>true</overrideTriggerDateTime
<overrideTriggerTime>20:00</overrideTriggerTime>
<execLookupOption>Instance Name</execLookupOption>
		
<programName
<execName />
		
<pstepName
<execWorkflowName />
		
<stepCodes>123</stepCodes>
<execWorkflowNameCode>Equals</execWorkflowNameCode>
		
<stepName
<limit />
		
<sysId>d722fd81df0b4ac8ad0c684a1b17a766</sysId>
<notificationOption>Operation Success/Failure</notificationOption>
		
<task
<operation>Suspend Agent</
>
operation>
		
<taskLimitType>Unlimited</taskLimitType
<overrideTriggerDateOffset>5</overrideTriggerDateOffset>
		<overrideTriggerDateTime>true</overrideTriggerDateTime
		<overrideTriggerTime>20:00</overrideTriggerTime>
		<programName />
		
<taskVar
<pstepName />
		<stepCodes>123</stepCodes>
		<stepName />
		<sysId>d722fd81df0b4ac8ad0c684a1b17a766</sysId>
		<task />
		<taskLimitType>Unlimited</taskLimitType>
		<taskVar />
        
<trigger>Trigger
        <trigger>Trigger A</
trigger>
trigger>
                
<triggerVar
<triggerVar />
                
<variables>
<variables>
                      <variable>
                            
<name>var1</name>
<name>var1</name>
                            
<value>val1</value>
<value>val1</value>
                      </variable>
                      <variable>
                            
<name>var2</name>
<name>var2</name>
                            
<value>val2</value>
<value>val2</value>
                      </variable>
                </
variables>
variables>
                
<variablesUnresolved>false</variablesUnresolved>
<variablesUnresolved>false</variablesUnresolved>
		
<vertexId>1</vertexId>
<vertexId>1</vertexId>
		
<virtualResource
<virtualResource />
		
<virtualResourceVar
<virtualResourceVar />
	</systemOperation>
</stepActions>

 


Run Criteria

<runCriteria>
	<runCriterion>
		
<businessDay>true</businessDay>
<businessDay>true</businessDay>
		
<complex>true</complex>
<complex>true</complex>
		
<complexAdjective>Every</complexAdjective>
<complexAdjective>Every</complexAdjective>
		
<complexNouns>
<complexNouns>
                   <complexNoun>Monday</complexNoun>


                   <complexNoun>CustomDay1</complexNoun>


                </
complexNouns>
complexNouns>
		
<complexNthAmount>5</complexNthAmount>
<complexNthAmount>5</complexNthAmount>
                
<complexQualifiers>
<complexQualifiers>
                   <complexQualifier>Jan</complexQualifier>


                   <complexQualifier>CustomDay1</complexQualifier>


                </
complexQualifiers>
complexQualifiers>
                
<complexAdjustment>Less</complexAdjustment>
<complexAdjustment>Less</complexAdjustment>
                
<complexAdjustmentAmount>1</complexAdjustmentAmount>
<complexAdjustmentAmount>1</complexAdjustmentAmount>
                
<complexAdjustmentType>Day</complexAdjustmentType>
<customDay>false</customDay>
<complexAdjustmentType>Day</complexAdjustmentType>
		<customDay>false</customDay>
		
<customDayChoice
<customDayChoice />
		
<description
<description />
		
<evaluateAt>Trigger
<evaluateAt>Trigger Time</
evaluateAt>
evaluateAt>
		
<holiday>false</holiday>
<holiday>false</holiday>
                
<holidayAdjustment>Less</holidayAdjustment>
<holidayAdjustment>Less</holidayAdjustment>
                
<holidayAdjustmentAmount>1</holidayAdjustmentAmount>
<holidayAdjustmentAmount>1</holidayAdjustmentAmount>
                
<holidayAdjustmentType>Day</holidayAdjustmentType>
<holidayAdjustmentType>Day</holidayAdjustmentType>
		
<specificDay>false</specificDay>
<specificDay>false</specificDay>
		
<specificDayFri>false</specificDayFri>
<specificDayFri>false</specificDayFri>
		
<specificDayMon>false</specificDayMon>
<specificDayMon>false</specificDayMon>
		
<specificDaySat>false</specificDaySat>
<specificDaySat>false</specificDaySat>
		
<specificDaySun>false</specificDaySun>
<specificDaySun>false</specificDaySun>
		
<specificDayThu>false</specificDayThu>
<specificDayThu>false</specificDayThu>
		
<specificDayTue>false</specificDayTue>
<specificDayTue>false</specificDayTue>
		
<specificDayWed>false</specificDayWed>
<specificDayWed>false</specificDayWed>
		
<sysId>bb5f7807b0614153942572ecbc2dcfbe</sysId>
<sysId>bb5f7807b0614153942572ecbc2dcfbe</sysId>
		
<task>Sleep
<task>Sleep 60</
task>
task>
		
<type>Skip
<type>Skip Criteria</
type
type>
		<variable>false</variable>
		<variableName />
		
<variable>false</variable
<variableOp>=</variableOp>
		<variableValue />
		
<variableName /> <variableOp>=</variableOp> <variableValue /> <vertexId>13</vertexId> </runCriterion> </runCriteria> Expand
titleJSON

Workflow Vertices

"workflowVertices": [ { "alias": null, "task": {
<vertexId>13</vertexId>
	</runCriterion>
</runCriteria>


Critical Endpoints
 <criticalEndpoints>
        <criticalEndpoint>
            <description>test1</description>
            <lfDayConstraint>Next Day</lfDayConstraint>
            <lfDuration>00:00:00:00</lfDuration>
            <lfEnabled>true</lfEnabled>
            <lfNthAmount>5</lfNthAmount>
            <lfOffsetDuration />
            <lfOffsetDurationUnit>Minutes</lfOffsetDurationUnit>
            <lfOffsetPercentage>0</lfOffsetPercentage>
            <lfOffsetType>Percentage</lfOffsetType>
            <lfTime>22:22</lfTime>
            <lfType>Time</lfType>
            <lsDayConstraint>Same Day</lsDayConstraint>
            <lsDuration>00:00:00:00</lsDuration>
            <lsEnabled>true</lsEnabled>
            <lsNthAmount>5</lsNthAmount>
            <lsTime>01:01</lsTime>
            <lsType>Time</lsType>
            <sysId>6ca686c553314947b8ffcc489b2a84ec</sysId>
            <task>task_1</task>
            <vertexId>Any</vertexId>
        </criticalEndpoint>
    </criticalEndpoints>





Expand
titleJSON


Code Block
languagetext
Workflow Vertices
"workflowVertices": [ {
  "alias": null,
  "task": {
      "value": "SB_ZOS_Task "
  },
  "vertexId": "2",
  "vertexX": "510",
  "vertexY": "40"
  }
]

 
Workflow Edges
"workflowEdges": [ {
  "condition": {
    "value": "Success"
  },
  "sourceId": {
    "taskName": "SB_ZOS_Task ",
    "value": "2"
  },
  "straightEdge": true,
  "targetId": {
    "taskAlias": "Timer 0",
    "taskName": "Sleep 0",
    "value": "3"
  }
]

 
 
 
Step Conditions
"stepConditions": [ {
  "programName": null,
  "pstepName": null,
  "stepAction": "Halt/Failed",
  "stepCodes": "1-4095",
  "stepName": null,
  "stepOrder": 1,
  "sysId": "100b1da7c19f40a3848c2549a7c24de4"
  }
]

Variable Conditions 
 "condition": {
       "firstValue": "${_varToLowerCase('variableName')}",
       "operator": "=",
       "secondValue": "${var2}",
       "type": "Variable"
      }


Step Actions
"stepActions": [ {
    "actionCriteriaTask": "SB_ZOS_Task ",
    "agent": null,
    "agentCluster": null,
    "agentClusterVar": null,
    "agentVar": null,
    "description": null,
    "execCommand": "Cancel",
    "execCriteria": "Oldest Active Instance",
    "execId": null,
    "execLookupOption": "Instance Name",
    "execName": "SB_Timer",
    "execWorkflowName": "SB_Workflow",
    "execWorkflowNameCond": "Equals",
    "limit": null,
    "notificationOption": "Operation Failure",
    "operation": "Task Instance Command",
    "overrideTriggerDateOffset": 5,
    "overrideTriggerDateTime": true
    "overrideTriggerTime": "20:00",
    "programName": null,
    "pstepName": null,
    "stepCodes": "S0C4",
    "stepName": null,
    "sysId": "e1149f680ce542febfa022f3c0dbf828",
    "task": null,
    "taskLimitType": "Unlimited",
    "taskVar": null,
    "trigger": null,
    "triggerVar": null,
    "variables": [ ],
    "variablesUnresolved": false,
    "vertexId": "Any",
    "virtualResource": null,
    "virtualResourceVar": null
  } 
]

Run Criteria 
"runCriteria": [
         {
            "businessDay": true,
            "complex": false,
            "complexAdjective": "Every",
            "complexAdjustment": "None",
            "complexAdjustmentAmount": 1,
            "complexAdjustmentType": "Day",
            "complexNoun": {
                "value": "Day"
            },
            "complexNouns": [
                {
                    "value": "Day"
                }
            ],
            "complexNthAmount": 5,
            "complexQualifier": {
                "value": "Year"
            },
            "complexQualifiers": [
                {
                    "value": "Year"
                }
            ],
            "customDay": false,
            "customDayChoice": null,
            "description": "test1",
            "evaluateAt": "Trigger Time",
            "holiday": false,
            "holidayAdjustment": "None",
            "holidayAdjustmentAmount": 1,
            "holidayAdjustmentType": "Day",
            "specificDay": false,
            "specificDayFri": false,
            "specificDayMon": false,
            "specificDaySat": false,
            "specificDaySun": false,
            "specificDayThu": false,
            "specificDayTue": false,
            "specificDayWed": false,
            "sysId": "c26f0ecd92fe4cf19782291a91894beb",
            "
value
task": "
SB_ZOS_Task "
task_1",
     
},
   
"vertexId":
 
"2",
   "
vertexX
type": "
510
Run Criteria",
  
"vertexY": "40"
     
}
 
]  
Workflow Edges"workflowEdges
    "variable": 
[
false,
   
{
   
"condition":
 
{
     "
value
variableName": null,
"Success"
   
},
   
"sourceId":
 
{
     "
taskName
variableOp": "
SB_ZOS_Task
=",
    
"value
        "variableValue":
"2"
 null,
     
},
   
"straightEdge":
 
true,
   "
targetId
vertexId": 
{
"Any"
    
"taskAlias":
 
"Timer
 
0",
  }
  
"taskName":
 
"Sleep
 
0"
],


Critical Endpoints
"
value
criticalEndpoints": [
"3"
   
}
 
]  
 
 
Step Conditions"stepConditions": [ {
    {
    
"programName":
 
null,
   
"pstepName":
 
null,
   "
stepAction
description": "
Halt/Failed
test1",
            "
stepCodes
lfDayConstraint": "
1-4095
Next Day",
  
"stepName": null,
      
"stepOrder":
 
1,
   "
sysId
lfDuration": "
100b1da7c19f40a3848c2549a7c24de4"
00:00:00:00",
  
}
 
]
 
 
 
Step Actions
 
"stepActions":
 
[
 
{
     "
actionCriteriaTask
lfEnabled":
"SB_ZOS_Task ",
 true,
      
"agent":
 
null,
     "
agentCluster
lfNthAmount": 
null
5,
      
"agentClusterVar":
 
null,
     "
agentVar
lfOffsetDuration": null,
      
"description":
 
null,
     "
execCommand
lfOffsetDurationUnit": "
Cancel
Minutes",
    
"execCriteria":
 
"Oldest
 
Active
 
Instance",
     "
execId
lfOffsetPercentage": 
null
0,
    
"execLookupOption": "Instance Name",
        "
execName
lfOffsetType": "
SB_Timer
Percentage",
    
"execWorkflowName
        "lfTime": "
SB_Workflow
22:22",
      
"execWorkflowNameCond":
 
"Equals",
     "
limit
lfType": 
null
"Time",
     
"notificationOption":
 
"Operation
 
Failure",
     "
operation
lsDayConstraint": "
Task
Same 
Instance Command
Day",


   
"overrideTriggerDateOffset":
 
5,
    
"overrideTriggerDateTime":
 
true
   
"
overrideTriggerTime
lsDuration": "
20
00:00:00:00",
            "
programName
lsEnabled": 
null
true,
    
"pstepName": null,
        "
stepCodes
lsNthAmount": 
"S0C4"
5,
    
"stepName": null,
        "
sysId
lsTime": "
e1149f680ce542febfa022f3c0dbf828
01:01",
    
"task": null,
        "
taskLimitType
lsType": "
Unlimited
Time",
      
"taskVar":
 
null,
     "
trigger
sysId": 
null
"331ae420fe264026b3f9a78b1f05e8de",
    
"triggerVar": null,
        "
variables
task": "task_1",
[
 
],
     
"variablesUnresolved":
 
false,
     "vertexId": "Any"
,

    
"virtualResource":
 
null,
   }
 
"virtualResourceVar": null
 
}
  ]
,




Properties

See the Workflow Task - Workflow Task-Related Records Properties page for information on Workflow task-related records properties.