Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This POST service will retrieve the workflowRequest based on the workflowRequestId in the request.

WorkflowRequest contains Status, most of the statuses are interim statuses, only COMPLETED and FAILED are final status. Your request will fall into one of these two upon completion. The following are all of the possible statuses that can be returned:

  • INITIATED
  • PENDING_APPROVAL
  • SCHEDULED
  • ABORTED
  • REJECTED
  • READY
  • SUBMITTED
  • COMPLETED
  • FAILED


API URL

http://host:port/flexdeploy/rest/workflow/getWorkflowRequest
Sample JSON Request
{
	"authentication":
	{
		"userId": "userid",
		"password": "mypassword"
	},
	"workflowRequestId": 28208
}

Parameters

Parameter

Required

Type

Description

authentication

Y

Object

The authentication parameter is comprised of 2 fields.

  • userId – a valid user id for FlexDeploy
  • password – the associated password


workflowRequestId

Y

Long

The requestId to retrieve the status for.

Response

AttributeTypeDescription
requestedBy

packageName

workflowRequestId

projectVersionId

folderRequestId

requestedStartTime

workflowRequestStatus

stopOnPackageError

workflowOverrideVersion

releaseSnapshotIdLongOnly returned for specific cases. 1) deployment is done via pipeline, 2) build was done using Create Snapshot screen action or API.
requestAllFiles

releaseDefinitionIdLongOnly returned if build or deploy was executed with release.
projectName

folderPath

flexFields

projectId

folderId

folderName

projectStreamId

force

cmsissues

projectVersionName

environmentId

folderVersionId

exceptionToWindow

Example Response

{
   "requestedBy": "cideploy",
   "packageName": null,
   "workflowRequestId": 86301,
   "projectVersionId": 4051785,
   "folderRequestId": null,
   "requestedStartTime": null,
   "workflowRequestStatus": "FAILED",
   "stopOnPackageError": false,
   "workflowOverrideVersion": null,
   "releaseSnapshotId": null,
   "requestAllFiles": true,
   "releaseDefinitionId": null,
   "projectName": "XXHR",
   "folderPath": "FlexDeploy/EBS",
   "flexFields": [   {
      "value": "A",
      "code": "DEPLOY_CHANGE_NUMBER"
   }],
   "projectId": 3882238,
   "folderId": 3871702,
   "folderName": "EBS",
   "projectStreamId": 3882239,
   "force": false,
   "cmsissues": "",
   "projectVersionName": "1.0.29",
   "environmentId": 10140,
   "folderVersionId": null,
   "exceptionToWindow": false
}
  • No labels