FRAMES | NO FRAMES Description | Parameters | Examples | Response
Create Dependency (Operation)
URL http://<dependencies-url>/create
Parent Resource Dependencies

Description

Creates a dependency relationship between this job and another job.

Parameters

Parameter Details
f Description: The response format. The default response format is html.

Values: html | json
user Required
Description: The username of the client.
heldOnType Required
Description: An integer value representing the dependency type of this job.

1: Dependency on a step
2: Dependency on a stage
3: Dependency on a status

Values: 1 | 2 | 3
heldOnValue Required
Description: An integer value identifying a step, stage, or status at which this job will be held.
depJobId Required
Description: The ID of the job on which this job is dependent.
depOnType Required
Description: An integer value representing the dependency type of the other job.

1: Dependency on a step
2: Dependency on a stage
3: Dependency on a status

Values: 1 | 2 | 3
depOnValue Required
Description: An integer value identifying a step, stage, or status.

Example Usage

Example 1: URL for creating a dependency for job ID 5 on job ID 4 in the "Workflow" service on sampleserver.

http://sampleserver/arcgis/rest/services/Workflow/WMServer/jobs/5/dependencies/create?user=cjones&heldOnType=3&heldOnValue=6&depJobId=4&depOnType=2&depOnValue=5

JSON Response Syntax

{
  "dependencyId": <dependencyId>
}

JSON Response Example

{
  "dependencyId": 45
}