Versions Compared

Key

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

...

Universal Controller supports the following RESTful-based web services for Workflow Task operations.

  • Create a Workflow Task
  • List Workflow Forecast

  • Modify a Workflow Task
  • Read a Workflow Task

...

Links to detailed information about the properties used in these web services also is located on this page.
 

For information informaion on Workflow Task web services that are applicable to all task types, see:

...

Anchor
Create a Workflow Task
Create a Workflow Task

Create a Workflow Task


Description

URI

http://host_name/uc/resources/task

HTTP Method

POST

Description

Creates a new Workflow task.

Example URI

http://localhost:8080/uc/resources/task

Consumes Content-Type

application/xml, application/json

Produces Content-Type

n/a

Example

See Workflow Task: XML and JSON Examples, below.

Properties

See Properties.

Example Response

  • Status 200 /OK
    Successfully created the <task type> task with sysId <sysId>.

...

List Workflow Forecast


Description

URI

http://host_name/uc/resources/task

Consumes Content-Type

application/xml, application/json

Produces Content-Type

n/aworkflow/forecast

Authentication

HTTP Basic

HTTP Method

PUTGET

Description

Modifies the task specified by the sysId in the request.
 
To modify Workflow Task properties without modifying related records, use the excludeRelated property.

Example Response

  • Status 200 /OK
    Successfully updated the <task type> task with sysId <sysId> to version <version>.

...

Description

URI

http://host_name/uc/resources/task

HTTP Method

GET

Description

Retrieves information on the specified task.

Request Parameters

taskid or taskname

Mutually Exclusive Parameters

taskid and taskname

Example URI

Get Forecast Details

Example URI

http://localhost:8080/uc/resources/workflow/forecast?workflowname=work_4

The retainSysIds and version properties are specified as attributes in XML.

The exportReleaseLevel and /wiki/spaces/UC71x/pages/5179227 properties are specified as attributes in XML.

Example for Task<taskWorkflow exportReleaseLevel="7.2.0.0" exportTable="ops_task_workflow" retainSysIds="true" version="1"

http://localhost:8080/uc/resources/workflow/taskforecast?taskname=test

Examples

XML

JSON

Anchor
Example for TaskExample for Task
Expand
titleXML

Consumes Content-Type

n/a

Produces Content-Type

application/xml, application/json

Example Response

...

workflowname=work_4&time=10:10&date=2022-01-06

http://localhost:8080/uc/resources/workflow/forecast?workflowname=work_4&calendarname=System Default&timezone=GMT-6&date=2022-01-08

http://localhost:8080/uc/resources/workflow/forecast?workflowname=work_4&calendarname=System Default&timezone=GMT-6&date=2022-01-08&triggername=trigger-1

http://localhost:8080/uc/resources/workflow/forecast?workflowname=work_4&exclude=Run&exclude=Skip

http://localhost:8080/uc/resources/workflow/forecast?workflowname=work_4&variable=name1:value1&variable=name2:value2

Consumes Content-Type

application/xml, application/json

Produces Content-Type

 application/xml, application/json

ExampleSee List Workflow Forecast: XML and JSON Examples, below. 
PropertiesSee List Workflow Forecast: URI Parameters, below. 

List Workflow Forecast: URI Parameters

Property

Description

Specifications

Required

Mutually Exclusive With

workflowid

ID used within the Controller to identify the workflow.

String; URI parameter.

Y
(unless workflowname
is specified)

workflowname

workflowname

Name used within the Controller to identify the workflow.

String; URI parameter.

Y
(unless workflowid
is specified)

workflowid

calendarid

Unique ID for the Calendar.


N
(unless calendarname
is specified)

calendarname

calendarname

Name used within the Controller to identify the Calendar.

Maximum 100 alphanumeric.

N
(unless calendarid
is specified)

calendarid

triggerid

Unique ID for this trigger.


N
(unless triggername
is specified)

triggername

triggername

Name used within the Controller to identify this trigger.

Maximum 255 alphanumeric.

N
(unless triggerid
is specified)

triggerid

date

Date of the forecast.

Date (yyyy-mm-dd)

N


time

Time of the forecast.

Time(HH:mm)


N


timezone

Timezone.


N


forecastTimezone

Forecast Timezone.


N


exclude

Exclude the forecast types in the response.

Valid values:

  • As String = Not Evaluated, As Value = 1

  • As String = Run, As Value = 2

  • As String = Skip, As Value = 3

  • As String = Run*, As Value = 4

  • As String = Skip*, As Value = 5


N


variable

Override the variables.

List of name:value variables





List Workflow Forecast: XML and JSON Examples

<avgRunTimeDisplay>3Seconds</avgRunTimeDisplay><cpDuration/> <cpDurationUnit>Minutes</cpDurationUnit><customField1label=Domain">web.com</customField1> <customField2/><efDayConstraint>Nth</efDayConstraint><efDuration>00:00:00:00</efDuration><efEnabled>false</efEnabled> <efNthAmount>10</efNthAmount>       <efOffsetDuration />
       <efOffsetDurationUnit>MInutes</efOffsetDurationUnit>
       <efOffsetPercentage>0</efOffsetPercentage>
       <efOffsetType>Percentage</efOffsetType>
       <efTime>00:00</efTime> <efType>Time</efType><executionRestriction>Run</executionRestriction>
<firstRun>2021-03-15 13:59:37 -0400</firstRun> <holdResources>false</holdResources>
<lastRun>2021-03-16 17:12:42 -0400</lastRun>
<lastRunTime>9</lastRunTime>
<lastRunTimeDisplay>9seconds</lastRunTimeDisplay><lfDayConstraint>Nth</lfDayConstraint><lfDuration>00:00:00:00</lfDuration> <lfEnabled>false</lfEnabled><lfNthAmount>1</lfNthAmount>        <lfOffsetDuration />
       <lfOffsetDurationUnit>MInutes</lfOffsetDurationUnit>
       <lfOffsetPercentage>0</lfOffsetPercentage>
       <lfOffsetType>Percentage</lfOffsetType>
       <lfTime>00:00</lfTime> <lfType>Time</lfType> <lsDayConstraint>Nth</lsDayConstraint><lsDuration>00:00:00:00</lsDuration><lsEnabled>false</lsEnabled> <lsNthAmount>7</lsNthAmount><lsTime>00:00</lsTime><lsType>Time</lsType>
<maxRunTime>9</maxRunTime>
<maxRunTimeDisplay>9Seconds</maxRunTimeDisplay>
<minRunTime>3</minRunTime>
<minRunTimeDisplay>3 Seconds</minRunTimeDisplay><name>uc - Test Email</name> <opswiseGroups /> <resolveNameImmediately>false</resolveNameImmediately><resPriority>10</resPriority> <restrictionPeriod>Span</restrictionPeriod><restrictionPeriodAfterDate>2017-11-10</restrictionPeriodAfterDate> <restrictionPeriodAfterTime>10:30</restrictionPeriodAfterTime> <restrictionPeriodBeforeDate>2017-11-20</restrictionPeriodBeforeDate><restrictionPeriodBeforeTime>15:00</restrictionPeriodBeforeTime> <restrictionPeriodDateList />
<runCount>32</runCount>
<runTime>108</runTime> <skippedOption>Show Skipped</skippedOption><startHeld>false</startHeld> <startHeldReason/><summary/><sysId>c835007fc0a802650080dabfc04d4d67</sysId> <timeZonePref>-- System Default --</timeZonePref><twDelayAmount /> <twDelayDuration>00:00:00:00</twDelayDuration><twDelayType>None</twDelayType><twWaitAmount/> <twWaitDayConstraint>None</twWaitDayConstraint><twWaitDuration>00:00:00:00</twWaitDuration> <twWaitTime>00:00</twWaitTime><twWaitType>None</twWaitType><twWorkflowOnly>--SystemDefault--</twWorkflowOnly><userEstimatedDuration/><calculateCp>false</calculateCp><calendar/> <layoutOption>-- None --</layoutOption> <numberOfTasks>10</numberOfTasks><overrideCalendar>false</overrideCalendar> <skippedOption>ShowSkipped</skippedOption></taskWorkflow>{typetaskWorkflow"actions{ "abortActions":[], emailNotifications[],setVariableActions[], "snmpNotifications":[], systemOperations:[]},
"avgRunTime":3,
avgRunTimeDisplay3 Seconds"calculateCp": false,calendarnull"cpDuration":null,cpDurationUnitMinutes
criticalEndpointnull"customField1":{labelDomainvaluenull }"customField2":{labelnull,valuenull },"efDayConstraint":"NthDay",efDuration00:00:00:00","efEnabled":false"efNthAmount": 10,   "efOffsetDuration": null, 
  "efOffsetDurationUnit": "Minutes",
  "efOffsetPercentage": 0,
  "efOffsetType": "Percentage",
  "efTime": "00:00", "efType": "Time", "excludeRelated": false, "exclusiveTasks": [], "executionRestriction": "Run",
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_task_manual",
"firstRun": "2021-03-15 13:59:37 -0400", "holdResources": false,
"lastRun": "2021-03-16 17:12:42 -0400",
"lastRunTime": 9,
"lastRunTimeDisplay": "9 Seconds", "layoutOption": "-- None --", "lfDayConstraint": "Nth Day", "lfDuration": "00:00:00:00", "lfEnabled": false, "lfNthAmount": 1,   "lfOffsetDuration": null, 
  "lfOffsetDurationUnit": "Minutes",
  "lfOffsetPercentage": 0,
  "lfOffsetType": "Percentage",
  "lfTime": "00:00", "lfType": "Time", "lsDayConstraint": "Nth Day", "lsDuration": "00:00:00:00", "lsEnabled": false, "lsNthAmount": 7, "lsTime": "00:00", "lsType": "Time",
"maxRunTime": 9,
"maxRunTimeDisplay": "9 Seconds",
"minRunTime": 3,
"minRunTimeDisplay": "3 Seconds", "name": "test-wkfl-web-service", "notes": [], "numberOfTasks": 2, "opswiseGroups": [], "overrideCalendar": false, "resolveNameImmediately": false, "resPriority": 10, "restrictionPeriod": "Span", "restrictionPeriodAfterDate": "2017-11-10", "restrictionPeriodAfterTime": "10:30", "restrictionPeriodBeforeDate": "2017-11-20", "restrictionPeriodBeforeTime": "15:00", "restrictionPeriodDateList": [], "retainSysIds": true,
"runCount": 32,
"runCriteria": [],
"runTime": 108, "skippedOption": "Show Skipped", "startHeld": false, "startHeldReason": null, "stepActions": [], "stepConditions": [], "summary": null, "sysId": "fb59a227517a421a92c15ff5aefe3b66", "timeZonePref": "-- System Default --", "twDelayAmount": null, "twDelayDuration": "00:00:00:00", "twDelayType": "None", "twWaitAmount": null, "twWaitDayConstraint": "None", "twWaitDuration": "00:00:00:00", "twWaitTime": "00:00", "twWaitType": "None", "twWorkflowOnly": "-- System Default --", "userEstimatedDuration": null, "variables": [], "version": 2, "virtualResources": [], "workflowEdges": [ { "condition": { "value": "Success" }, "sourceId": { "taskName": "SB_ZOS_Task ", "value": "2" }, "straightEdge": true, "targetId": { "taskAlias": "Timer 0", "taskName": "Sleep 0", "value": "3" } } ], "workflowVertices": [ { "alias": nulltask{ valueSB_ZOS_Task" },vertexId2vertexX480vertexY90" },{ aliasTimer0task { valueSleep 0"}, vertexId3vertexX480vertexY270 }] }

Examples

XMLJSON
Response


Expand
titleXML


Code Block
languagetext
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<workflowForecast>
    <forecast>
        <agent />
       
<actions
 <agentCluster />
       
<variables
 <agentClusterVariable />
        
<notes
<agentVariable />
       
<virtualResources
 <businessServices/>
        
<exclusiveTasks
<clusterBroadcast />
       
<stepConditions
 <clusterBroadcastVariable />
        <created>2023-01-12 17:24:45 -0500</created>
     
<stepActions />
   <createdBy>ops.admin</createdBy>
        <endTime>2022-01-08 10:04:32 -0500</endTime>
        <endTimeAccuracy>High</endTimeAccuracy>
        
<runCriteria />
<launchTime>2022-01-08 10:03:00 -0500</launchTime>
       
<criticalEndpoint
 <runSkipEvalution>Run</
>
runSkipEvalution>
       
<workflowVertices>
 <sysId>3dd2ff81f3934898adba1396b44a7537</sysId>
       
<workflowVertex>
 <task>work-1</task>
        <taskType>Workflow</taskType>
        <trigger>work-1 #TRIGGER#</trigger>
    
<alias
 
/>
   <triggerTime>2022-01-08 10:03:00 -0500</triggerTime>
        <updated>2023-01-12 17:24:45 -0500</updated>
        
<task>Sleep 30</task>
<updatedBy>ops.admin</updatedBy>
        <vertexId />
        <workflow />
    
<
vertexId>2<
/
vertexId>
forecast>
    <forecast>
        <agent />
        <agentCluster 
<vertexX>360<
/
vertexX
>
        <agentClusterVariable />
        
<vertexY>60</vertexY
<agentVariable />
        <businessServices/>
       
</workflowVertex>
 <clusterBroadcast />
        <clusterBroadcastVariable />
    
<workflowVertex>
    <created>2023-01-12 17:24:46 -0500</created>
        <createdBy>ops.admin</createdBy>
        
<alias />
<endTime>2022-01-08 10:03:41 -0500</endTime>
        <endTimeAccuracy>Medium</endTimeAccuracy>
        <launchTime>2022-01-08 
10:03:41 -0500</launchTime>
 
<task>Sleep
 
60</task>
      <runSkipEvalution>Run</runSkipEvalution>
        <sysId>088f8283fcdf42d7858bc991d42e8e66</sysId>
        <task>Sleep 
<vertexId>3<
0</
vertexId>
task>
        <taskType>Timer</taskType>
        <trigger>work-1 #TRIGGER#</trigger>
     
<vertexX>360</vertexX>
   <triggerTime>2022-01-08 10:03:00 -0500</triggerTime>
        <updated>2023-01-12 17:24:46 -0500</updated>
        
<vertexY>170<
<updatedBy>ops.admin</
vertexY>
updatedBy>
        <vertexId>3</vertexId>
        
<
<workflow>work-1</
workflowVertex>
workflow>
    </forecast>
    <forecast>
      
<workflowVertex>
  <agent />
        <agentCluster />
        
<alias
<agentClusterVariable />
        <agentVariable />
        
<businessServices/>
   
<task>zos
 
task</task>
    <clusterBroadcast />
        <clusterBroadcastVariable />
        
<vertexId>4</vertexId>
<created>2023-01-12 17:24:46 -0500</created>
        <createdBy>ops.admin</createdBy>
        <endTime>2022-01-08 10:03:41 -0500</endTime>
     
<vertexX>560</vertexX>
   <endTimeAccuracy>Medium</endTimeAccuracy>
        <launchTime>2022-01-08 10:03:11 -0500</launchTime>
        <runSkipEvalution>Run</runSkipEvalution>
 
<vertexY>50</vertexY>
       <sysId>a7fa4a5b35854af297eb2f9197e63f97</sysId>
        <task>Sleep 
<
30</
workflowVertex>
task>
        <taskType>Timer</taskType>
       
<workflowVertex>
 <trigger>work-1 #TRIGGER#</trigger>
        
<triggerTime>2022-01-08 10:03:00 -0500</triggerTime>
        <updated>2023-01-12 
<alias />
17:24:46 -0500</updated>
        <updatedBy>ops.admin</updatedBy>
        <vertexId>2</vertexId>
       
<task>uc
 <workflow>work-
Windows Sleep</task>
1</workflow>
    </forecast>
    <forecast>
        <agent />
    
<vertexId>5</vertexId>
    <agentCluster />
        <agentClusterVariable />
        <agentVariable 
<vertexX>390<
/
vertexX>
>
        <businessServices>
            
<vertexY>310</vertexY>
<businessService>A</businessService>
            <businessService>B</businessService>
   
</workflowVertex>
     </businessServices>
  
</workflowVertices>
      <clusterBroadcast />
<workflowEdges>
        <clusterBroadcastVariable />
       
<workflowEdge>
 <created>2023-01-12 17:24:46 -0500</created>
        <createdBy>ops.admin</createdBy>
        <endTime>2022-01-08 
<condition>Success</condition>
10:03:05 -0500</endTime>
        <endTimeAccuracy>Medium</endTimeAccuracy>
        <launchTime>2022-01-08 
10:03:00 -0500</launchTime>
  
<sourceId>2</sourceId>
      <runSkipEvalution>Run</runSkipEvalution>
        <sysId>efea93a7ed804280b6fbee22a29a004c</sysId>
        <task>Sleep 
<straightEdge>true</straightEdge>
5</task>
        <taskType>Timer</taskType>
        <trigger>work-1 #TRIGGER#</trigger>
     
<targetId>3</targetId>
   <triggerTime>2022-01-08 10:03:00 -0500</triggerTime>
        <updated>2023-01-12 
</workflowEdge>
17:24:46 -0500</updated>
        <updatedBy>ops.admin</updatedBy>
       
<workflowEdge>
 <vertexId>5</vertexId>
        <workflow>work-1</workflow>
    </forecast>
    <forecast>
    
<condition
 
type="Exit
 
Code">123</condition>
  <agent />
        <agentCluster />
        <agentClusterVariable />
 
<sourceId>3</sourceId>
       <agentVariable />
        <businessServices>
       
<straightEdge>true</straightEdge>
     <businessService>C</businessService>
        </businessServices>
        
<clusterBroadcast 
<targetId>5<
/
targetId>
>
        <clusterBroadcastVariable />
      
</workflowEdge>
  <created>2023-01-12 17:24:46 -0500</created>
        <createdBy>ops.admin</createdBy>
   
<workflowEdge>
     <endTime>2022-01-08 10:03:15 -0500</endTime>
        <endTimeAccuracy>Medium</endTimeAccuracy>
        
<condition type="Step Condition">1:*:*:1</condition>
<launchTime>2022-01-08 10:03:05 -0500</launchTime>
        <runSkipEvalution>Run</runSkipEvalution>
        <sysId>c0901a00837b46da99606d45998ba780</sysId>
      
<sourceId>4</sourceId>
  <task>Sleep 10</task>
        <taskType>Timer</taskType>
        
<straightEdge>true</straightEdge>
<trigger>work-1 #TRIGGER#</trigger>
        <triggerTime>2022-01-08 10:03:00 -0500</triggerTime>
        
<targetId>2</targetId>
<updated>2023-01-12 17:24:46 -0500</updated>
        <updatedBy>ops.admin</updatedBy>
        
<
<vertexId>6</
workflowEdge>
vertexId>
        
</workflowEdges>
<workflow>work-1</workflow>
    
</forecast>
<
avgRunTime>3</avgRunTime>
/workflowForecast>




Expand
titleJSON


Code Block
languagetext
[
    {
 
 
      "agent": null,
 
       
"agentCluster": null,
       
 
"
agentClusterVariable": null,
      
 
 "agentVariable": null,
     
   "businessServices": [],
   
     "clusterBroadcast": null,
 
       
"clusterBroadcastVariable": null,
        "created": "2023-01-12 17:19:12 -0500",
    
    "createdBy": "ops.admin",
  
      
"endTime": "2022-01-08 10:04:32 -0500",
        "endTimeAccuracy": "High",
        "launchTime": "2022-01-08 10:03:00 -0500",
        
"runSkipEvalution": "Run",
       
 "sysId": "bca33d227d8d4bcda7e8ede5abe62994",
    
 
   "task": "work-1",
   
     "taskType": "Workflow",
 
       
"trigger": "work-1 #TRIGGER#",
       
 "triggerTime": "2022-01-08 10:03:00 -0500",
        "updated": "2023-01-12 17:19:12 -0500",
        "updatedBy": 
"ops.admin",
        
"vertexId": null,
       
 "workflow": null
    
},
    {
   
     "agent": null,
 
       
"agentCluster": null,
     
 
  "agentClusterVariable": null,
   
     
"agentVariable": null,
        
"businessServices": [],
        
"clusterBroadcast": null,
        
"clusterBroadcastVariable": null,
       
 "created": "2023-01-12 17:19:12 -0500",
   
     "createdBy": "ops.admin",
 
       
"endTime": "2022-01-08 10:03:41 -0500",
    
    "endTimeAccuracy": "Medium",
  
      
"launchTime": "2022-01-08 10:03:41 -0500",
    
    "runSkipEvalution": "Run",
 
       
"sysId": "57232f7ecb3b4dae9ff1367442036a81",
        
"task": "Sleep 0",
     
 
  "taskType": "Timer",
    
 
   "trigger": "work-1 #TRIGGER#",
  
      
"triggerTime": "2022-01-08 10:03:00 -0500",
       
 "updated": "2023-01-12 17:19:12 -0500",
    
    "updatedBy": "ops.admin",
  
      "vertexId": "3",
 
       
"workflow": "work-1"
    },
   
 {
      
  "agent": null,
    
    "agentCluster": null,
  
 
 
 
   "agentClusterVariable": null,
   
 
    "agentVariable": null,
  
      "businessServices": [],
 
       
"clusterBroadcast": null,
        
"clusterBroadcastVariable": null,
       
 "created": "2023-01-12 17:19:12 -0500",
   
 
 
Expand
titleJSON
   "
createdBy": "
ops.admin",
  
      "endTime": 
"2022-01-08 10:03:41 -0500",
  
 
     
"
endTimeAccuracy": 
"Medium",
        "
launchTime": 
"2022-01-08 10:03:11 -0500",
   
 
    
"runSkipEvalution": "
Run"
,
   
  
 
  "
sysId": "
f531aa964eb6495e8e7549e13d2f3ea1",
  
      "
task": "Sleep 
30",
    
 
   "
taskType": "
Timer",

        "
trigger": 
"work-1 #TRIGGER#",
  
 
     "
triggerTime": "
2022-01-08 10:03:00 -0500",
        "
updated": 
"2023-01-12 17:19:12 -0500",
  
 
     "
updatedBy": 
"ops.admin",
        "
vertexId": 
"2",
   
 
 
   "
workflow": "
work-1"
   
 
},
  
  {
        "agent": null,
        "agentCluster": null,
        "agentClusterVariable": null,
        "agentVariable": null,
        "businessServices": [
            "A",
            "B"
        ],
        "clusterBroadcast": null,
        "clusterBroadcastVariable": null,
        "created": "2023-01-12 17:19:12 -0500",
        "createdBy": "ops.admin",
        "endTime": "2022-01-08 10:03:05 -0500",
        "endTimeAccuracy": "Medium",
        "launchTime": "2022-01-08 10:03:00 -0500",
        "runSkipEvalution": "Run",
        "sysId": "2f9fee276640457ba1c743dfb683b9a6",
        "task": "Sleep 5",
        "taskType": "Timer",
        "trigger": "work-1 #TRIGGER#",
        "triggerTime": "2022-01-08 10:03:00 -0500",
        "updated": "2023-01-12 17:19:12 -0500",
        "updatedBy": "ops.admin",
        "vertexId": "5",
        "workflow": "work-1"
    },
    {
        "agent": null,
        "agentCluster": null,
        "agentClusterVariable": null,
        "agentVariable": null,
        "businessServices": [
            "C"
        ],
        "clusterBroadcast": null,
        "clusterBroadcastVariable": null,
        "created": "2023-01-12 17:19:12 -0500",
        "createdBy": "ops.admin",
        "endTime": "2022-01-08 10:03:15 -0500",
        "endTimeAccuracy": "Medium",
        "
launchTime": 
"2022-01-08 10:03:05 -0500",
        "
runSkipEvalution": "
Run",
        "
sysId": "
12ca3120496e48f5be1ff5a5a103b927",
        "
task": "
Sleep 10",
        "
taskType": "
Timer",
 
       
"
trigger": "
work-1 
#TRIGGER#",
        "
triggerTime":
 "2022-01-08 10:03:00 -0500",
        
"
updated": "
2023-01-12 17:19:12 -0500",
       
 
"
updatedBy": "
ops.admin",
        "
vertexId": "
6",
        "
workflow": "
work-1"
    }

...

]




Anchor
Modify a Workflow Task
Modify a Workflow Task

Modify a Workflow Task


Description

URI

http://host_name/uc/resources/
workflow/forecast

Authentication

HTTP Basic
task

Consumes Content-Type

application/xml, application/json

Produces Content-Type

n/a

HTTP Method

GET

PUT

Description

Get Forecast Details

Example URI

http://localhost:8080/uc/resources/workflow/forecast?workflowname=work_4

http://localhost:8080/uc/resources/workflow/forecast?workflowname=work_4&time=10:10&date=2022-01-06

http://localhost:8080/uc/resources/workflow/forecast?workflowname=work_4&calendarname=System Default&timezone=GMT-6&date=2022-01-08

Modifies the task specified by the sysId in the request.
 
To modify Workflow Task properties without modifying related records, use the excludeRelated property.

Example Response

  • Status 200 /OK
    Successfully updated the <task type> task with sysId <sysId> to version <version>.

Anchor
Read a Workflow Task
Read a Workflow Task

Read a Workflow Task


Description

URI

http://host_name/uc/resources/task

HTTP Method

GET

Description

Retrieves information on the specified task.

Request Parameters

taskid or taskname

Mutually Exclusive Parameters

taskid and taskname

Example URI

http://localhost:8080/uc/resources/

workflow/forecast

task?

workflowname=work_4&calendarname=System Default&timezone=GMT-6&date=2022-01-08&triggername=trigger-1

http://localhost:8080/uc/resources/workflow/forecast?workflowname=work_4&exclude=Run&exclude=Skip

http://localhost:8080/uc/resources/workflow/forecast?workflowname=work_4&variable=name1:value1&variable=name2:value2

Consumes Content-Type

application/xml, application/json

Produces Content-Type

 application/xml, application/json

List Workflow Forecast: XML and JSON Examples

Examples

XMLJSONResponse Expand
titleXML
Code Block
languagetext
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <workflowForecast> <forecast>

taskname=test

Consumes Content-Type

n/a

Produces Content-Type

application/xml, application/json

Example Response

Anchor
Workflow Task XML and JSON Examples
Workflow Task XML and JSON Examples

Workflow Task: XML and JSON Examples

The retainSysIds and version properties are specified as attributes in XML.

The exportReleaseLevel and /wiki/spaces/UC71x/pages/5179227 properties are specified as attributes in XML.


Examples

XML

JSON

Anchor
Example for Task
Example for Task
Example for Task


Expand
titleXML
<taskWorkflow exportReleaseLevel="7.2.0.0" exportTable="ops_task_workflow" retainSysIds="true" version="1">
       <actions />
       <variables />
       <notes />
       <virtualResources />
       <exclusiveTasks />
       <stepConditions />
       <stepActions />
       <runCriteria />
<criticalEndpoint /> <workflowVertices> <workflowVertex>
<agent
<alias />
             
<agentCluster
  
/>
         
<agentClusterVariable
<task>Sleep 
/>
30</task>
              
<agentVariable
 
/>
         
<businessServices
<clusterBroadcast
    
/>
         
<clusterBroadcastVariable
<created>2023-01-12 17:24:45 -0500</created>
         
<createdBy>ops.admin</createdBy>
<endTime>2022-01-08
 
10:04:32
 
-0500</endTime>
         
<endTimeAccuracy>High</endTimeAccuracy>
    </workflowVertex>
    
<launchTime>2022-01-08
 
10:03:00
 
-0500</launchTime>
         
<runSkipEvalution>Run</runSkipEvalution>
 <workflowVertex>
       
<sysId>3dd2ff81f3934898adba1396b44a7537</sysId>
         
<task>work-1</task>
        <alias 
<taskType>Workflow<
/
taskType>
>
        
<trigger>work-1
 
#TRIGGER#</trigger>
         
<triggerTime>2022-01-08
 
10:03:00
 
-0500</triggerTime>
    <task>Sleep 60</task>
   
<updated>2023-01-12
 
17:24:45
 
-0500</updated>
         
<updatedBy>ops.admin</updatedBy>
         
<vertexId
 <vertexId>3</
>
vertexId>
        
<workflow
 
/>
     
</forecast>
     
<forecast>
     <vertexX>360</vertexX>
   
<agent
 
/>
         
<agentCluster
 
/>
         
<agentClusterVariable
 <vertexY>170</
>
vertexY>
        
<agentVariable
 
/>
       </workflowVertex>
 
<businessServices/>
          
<clusterBroadcast
 
/>
    <workflowVertex>
    
<clusterBroadcastVariable
 
/>
         
<created>2023-01-12
 
17:24:46
 
-0500</created>
        <alias 
<createdBy>ops.admin</createdBy>
/>
          
<endTime>2022-01-08
 
10:03:41
 
-0500</endTime>
         
<endTimeAccuracy>Medium</endTimeAccuracy>
   <task>zos task</task>
    
<launchTime>2022-01-08
 
10:03:41
 
-0500</launchTime>
         
<runSkipEvalution>Run</runSkipEvalution>
         
<sysId>088f8283fcdf42d7858bc991d42e8e66<
<vertexId>4</
sysId>
vertexId>
         
<task>Sleep
 
0</task>
         
<taskType>Timer</taskType>
     <vertexX>560</vertexX>
   
<trigger>work-1 #TRIGGER#</trigger>
           
<triggerTime>2022-01-08
 
10:03:00
 
-0500</triggerTime>
        
<updated>2023-01-12 17:24:46 -0500</updated>
<vertexY>50</vertexY>
           
<updatedBy>ops.admin</updatedBy>
     </workflowVertex>
   
<vertexId>3</vertexId>
         
<workflow>work-1</workflow>
    <workflowVertex>
</forecast>
     
<forecast>
         
<agent
 
/>
         
<agentCluster
<alias />
               
<agentClusterVariable
  
/>
       <task>uc - 
<agentVariable
Windows Sleep</
>
task>
         
<businessServices/>
         
<clusterBroadcast
 
/>
     <vertexId>5</vertexId>
   
<clusterBroadcastVariable
 
/>
         
<created>2023-01-12
 
17:24:46
 
-0500</created>
         
<createdBy>ops.admin</createdBy>
<vertexX>390</vertexX>
          
<endTime>2022-01-08
 
10:03:41
 
-0500</endTime>
         
<endTimeAccuracy>Medium</endTimeAccuracy>
   <vertexY>310</vertexY>
     
<launchTime>2022-01-08
 
10:03:11
 
-0500</launchTime>
         
<runSkipEvalution>Run<
</
runSkipEvalution>
workflowVertex>
       
<sysId>a7fa4a5b35854af297eb2f9197e63f97</sysId>
<task>Sleep
 
30</task>
         
<taskType>Timer</taskType>
    <workflowEdge>
    
<trigger>work-1
 
#TRIGGER#</trigger>
         
<triggerTime>2022-01-08
 
10:03:00
 
-0500</triggerTime>
        
<updated>2023-01-12 17:24:46 -0500</updated>
<updatedBy>ops.admin</updatedBy>
         
<vertexId>2</vertexId>
<workflow>work-1</workflow>
     
</forecast>
     
<forecast>
         
<agent
<agentCluster />
              
<agentClusterVariable
<agentVariable
  
/>
      </workflowEdge>
  
<businessServices>
             
<businessService>A</businessService>
 <workflowEdge>
           
<businessService>B</businessService>
         
</businessServices>
    <condition type="Exit Code">123</condition>
  
<clusterBroadcast
 
/>
         
<clusterBroadcastVariable
 
/>
         
<created>2023-01-12
 
17:24:46 -0500</created>
 <sourceId>3</sourceId>
         
<createdBy>ops.admin</createdBy>
         
<endTime>2022-01-08
 
10:03:05
 
-0500</endTime>
    <straightEdge>true</straightEdge>
    
<endTimeAccuracy>Medium</endTimeAccuracy>
         
<launchTime>2022-01-08
 
10:03:00
 
-0500</launchTime>
         
<runSkipEvalution>Run<
<targetId>5</
runSkipEvalution>
targetId>
         
<sysId>efea93a7ed804280b6fbee22a29a004c</sysId>
       </workflowEdge>
 
<task>Sleep
  
5</task>
         
<taskType>Timer</taskType>
    <workflowEdge>
    
<trigger>work-1
 
#TRIGGER#</trigger>
         
<triggerTime>2022-01-08
 
10:03:00
 
-0500</triggerTime>
        
<updated>2023-01-12 17:24:46 -0500</updated>
<condition type="Step Condition">1:*:*:1</condition>
           
<updatedBy>ops.admin</updatedBy>
         
<vertexId>5</vertexId>
    <sourceId>4</sourceId>
    
<workflow>work-1</workflow>
     
</forecast>
     
<forecast>
         
<agent
 
/>
<straightEdge>true</straightEdge>
             
<agentCluster
 
/>
         
<agentClusterVariable
 <targetId>2</
>
targetId>
        
<agentVariable
 
/>
       </workflowEdge>
 
<businessServices>
<businessService>C</businessService>
<
Seconds</
businessServices>
<clusterBroadcast
<clusterBroadcastVariable /
<created>2023-01-12 17:24:46 -0500</created>
<customField1 label="Domain">web.com</customField1>
       <customField2 />
    
<createdBy>ops.admin</createdBy>
<endTime>2022-01-08 10:03:15 -0500</endTime>
  <efDuration>00:00:00:00</efDuration>
       
<endTimeAccuracy>Medium</endTimeAccuracy>
<launchTime>2022-01-08 10:03:05 -0500</launchTime> <runSkipEvalution>Run</runSkipEvalution>
<efNthAmount>10</efNthAmount>
       <efOffsetDuration />
       <efOffsetDurationUnit>MInutes</efOffsetDurationUnit>
       <efOffsetPercentage>0</efOffsetPercentage>
       <efOffsetType>Percentage</efOffsetType>
       <efTime>00:00</efTime>
<sysId>c0901a00837b46da99606d45998ba780</sysId>
<efType>Time</efType>
       
<task>Sleep 10</task>
<taskType>Timer</taskType>
13:59:37 -0400</firstRun>
       
<trigger>work-1 #TRIGGER#</trigger>
<triggerTime>2022-01-08 10:03:00 -0500</triggerTime>
<lastRun>2021-03-16 17:12:42 -0400</lastRun>
<updated>2023-01-12 17:24:46 -0500</updated>
<updatedBy>ops.admin</updatedBy>
<vertexId>6</vertexId>
<workflow>work-1</workflow>
<lfDuration>00:00:00:00</lfDuration>
       <lfEnabled>false</
forecast> </workflowForecast> Expand
titleJSON
Code Block
languagetext
[
{
  <lfNthAmount>1</lfNthAmount>
       <lfOffsetDuration />
      
"agent": null,
"agentCluster":
 
null,
 <lfType>Time</lfType>
       
"agentClusterVariable": null,
"agentVariable": null,
"businessServices":
 
[],
"clusterBroadcast":
 
null,
   
<lsTime>00:00</lsTime>
  
"clusterBroadcastVariable":
 
null,
    <lsType>Time</lsType>
"created": "2023-01-12 17:19:12 -0500",
"createdBy":
 
"ops.admin",
"endTime": "2022-01-08 10:04:32 -0500",
"endTimeAccuracy": "High",
Test Email</name>
       
"launchTime": "2022-01-08 10:03:00 -0500",
"runSkipEvalution":
 
"Run",
"sysId":
 
"bca33d227d8d4bcda7e8ede5abe62994",
"task": "work-1",
"taskType": "Workflow",
"trigger": "work-1 #TRIGGER#",
"triggerTime": "2022-01-08 10:03:00 -0500",
"updated": "2023-01-12 17:19:12 -0500",
"updatedBy":
 
"ops.admin",
"vertexId": null,
 <skippedOption>Show Skipped</skippedOption>
       
"workflow": null
},
{
      <summary />
 
"agent":
 
null,
     <sysId>c835007fc0a802650080dabfc04d4d67</sysId>
   
"agentCluster":
 
null,
   <timeZonePref>-- System Default --</timeZonePref>
  
"agentClusterVariable":
 
null,
"agentVariable":
 
null,
   
"businessServices":
 
[],
"clusterBroadcast":
 
null,
"clusterBroadcastVariable": null,
"created": "2023-01-12 17:19:12 -0500",
"createdBy": "ops.admin",
"endTime": "2022-01-08 10:03:41 -0500",
<twWaitType>None</twWaitType>
       <twWorkflowOnly>-- System Default --</twWorkflowOnly>
 
"endTimeAccuracy":
 
"Medium",
"launchTime":
 
"2022-01-08
 
10:03:41
 
-0500",
"runSkipEvalution": "Run",
 <calendar />
       
"sysId": "57232f7ecb3b4dae9ff1367442036a81",
"task": "Sleep 0",
"taskType":
 
"Timer",
    <skippedOption>Show Skipped</skippedOption>
</taskWorkflow>



Expand
titleJSON
{
  "
trigger
type": "
work-1 #TRIGGER#
taskWorkflow",
  "actions": {
     "
triggerTime
"2022-01-08 10:03:00 -0500",
[],
     
"
updated
"2023-01-12 17:19:12 -0500",
[],
     
"
updatedBy
"ops.admin"
[],
     
"
vertexId
"3"
[],
     
"
workflow
"work-1"
[]
  },
"avgRunTime": 3,
{
"avgRunTimeDisplay": "3 Seconds",
  "calculateCp": false,
  "
agent
calendar": null,

  "
agentCluster
cpDuration": null,
  
"cpDurationUnit": "Minutes",
"
agentClusterVariable
,

  "customField1": {
    "
agentVariable
label": 
null
"Domain",

    "value": null
 
"businessServices": []
 },
  "customField2": {
    "
clusterBroadcast
label": null,

    "
clusterBroadcastVariable
value": null
,

  
},
  "
created
2023-01-12 17:19:12 -0500",
Nth Day",
  
"
createdBy
ops.admin
00:00:00:00",
  "efEnabled": false,
  
"
endTime
"2022-01-08
 10
:03:41 -0500"
,
"endTimeAccuracy
Medium
Minutes",
  "efOffsetPercentage": 0,
 
"launchTime
"efOffsetType": "Percentage",
  "efTime": "
2022-01-08 10:03:11 -0500
00:00",
  "efType": "Time",
  
"
runSkipEvalution
"Run"
false,
  
sysId
f531aa964eb6495e8e7549e13d2f3ea1
Run",

"
task
Sleep 30
7.2.0.0",
"taskType
Timer
ops_task_manual",

"
trigger
work-1 #TRIGGER#
2021-03-15 13:59:37 -0400",
  
"holdResources": false,
"
triggerTime
2022
2021-
01
03-
08
16 
10
17:
03
12:
00
42 -
0500
0400",
"
updated
2023-01-12 17:19:12 -0500
9 Seconds",
  "layoutOption": "-- None --",
  "
updatedBy
ops.admin
Nth Day",

  
"
vertexId
2
00:00:00:00",
  
"lfEnabled": false,
  
"
workflow
"work-
1
"
,
  
}, { "agent": null, "agentCluster": null, "agentClusterVariable": null, "agentVariable": null, "businessServices": [ "A", "B" ], "clusterBroadcast": null, "clusterBroadcastVariable": null, "created": "2023-01-12 17:19:12 -0500", "createdBy": "ops.admin", "endTime": "2022-01-08 10:03:05 -0500", "endTimeAccuracy": "Medium", "launchTime": "2022-01-08 10:03:00 -0500", "runSkipEvalution": "Run", "sysId": "2f9fee276640457ba1c743dfb683b9a6", "task": "Sleep 5", "taskType": "Timer", "trigger": "work-1 #TRIGGER#", "triggerTime": "2022-01-08 10:03:00 -0500", "updated": "2023-01-12 17:19:12 -0500", "updatedBy": "ops.admin", "vertexId": "5", "workflow": "work-1" }, { "agent": null, "agentCluster": null, "agentClusterVariable": null, "agentVariable": null, "businessServices": [ "C" ], "clusterBroadcast": null, "clusterBroadcastVariable": null, "created": "2023-01-12 17:19:12 -0500", "createdBy": "ops.admin",
"lfOffsetDuration": null,  
  "lfOffsetDurationUnit": "Minutes",
  "lfOffsetPercentage": 0,
  "lfOffsetType": "Percentage",
  "lfTime": "00:00", "lfType": "Time", "lsDayConstraint": "Nth Day", "lsDuration": "00:00:00:00", "lsEnabled": false, "lsNthAmount": 7, "lsTime": "00:00", "lsType": "Time",
"maxRunTime": 9,
"maxRunTimeDisplay": "9 Seconds",
"minRunTime": 3,
"minRunTimeDisplay": "3 Seconds", "name": "test-wkfl-web-service", "notes": [], "numberOfTasks": 2, "opswiseGroups": [], "overrideCalendar": false, "resolveNameImmediately": false, "resPriority": 10, "restrictionPeriod": "Span", "restrictionPeriodAfterDate": "2017-11-10", "restrictionPeriodAfterTime": "10:30", "restrictionPeriodBeforeDate": "2017-11-20", "restrictionPeriodBeforeTime": "15:00", "restrictionPeriodDateList": [], "retainSysIds": true,
"runCount": 32,
"runCriteria": [],
"runTime": 108, "skippedOption": "Show Skipped", "startHeld": false, "startHeldReason": null, "stepActions": [], "stepConditions": [], "summary": null, "sysId": "fb59a227517a421a92c15ff5aefe3b66", "timeZonePref": "-- System Default --", "twDelayAmount": null, "twDelayDuration": "00:00:00:00", "twDelayType": "None", "twWaitAmount": null, "twWaitDayConstraint": "None", "twWaitDuration": "00:00:00:00", "twWaitTime": "00:00", "twWaitType": "None", "twWorkflowOnly": "-- System Default --", "userEstimatedDuration": null, "variables": [], "version": 2, "virtualResources": [], "workflowEdges": [ { "condition": { "value": "Success" }, "sourceId": { "taskName": "SB_ZOS_Task ", "value": "2" }, "straightEdge": true, "targetId": { "taskAlias": "Timer 0", "taskName": "Sleep 0", "value": "3" } } ], "workflowVertices": [ { "alias": null, "
endTime
task": 
"2022-01-08 10:03:15 -0500",
{
          "
endTimeAccuracy
value": "
Medium
SB_ZOS_Task"
,

       
"launchTime": "2022-01-08 10:03:05 -0500",
},
       "
runSkipEvalution
Run
2",
       
"
sysId
12ca3120496e48f5be1ff5a5a103b927
480",

       "
task
Sleep 10
90"
,

       
"taskType": "Timer",
},{
       "
trigger
alias": "
work-1
Timer 
#TRIGGER#
0",

       "
triggerTime
task": 
"2022-01-08 10:03:00 -0500",
{
          "
updated
value": "Sleep 
"2023-01-12 17:19:12 -0500"
0"
       },
       
"
updatedBy
ops.admin
3",

       "
vertexId
6
480",

       "
workflow
work-1"
270"
       }]
]
}



See Task Web Services - Task Actions for XML and JSON examples of task actions.

...

See Workflow Task - Workflow Task-Related Records for XML and JSON examples of Worklfow task-related records.

Anchor
Properties
Properties

Properties