ArcGIS Data Reviewer API for JavaScript
Show:

Lifecycle Class

The Lifecycle class specifies constant values for all lifecycle status and lifecycle phase strings within the Reviewer quality control workflow. It also includes a helper function getLifecycleInfo that will return the next set of lifecycle status and lifecycle phase that a lifecycle status can move to.

Methods

getLifecycleInfo

(
  • lifecycleStatus
)

This function accepts an array of lifecycle statuses and returns an object containing the next appropriate lifecycle status and phase that the record will advance to. If the next option in common for lifecycle status is not found, this function returns null.

Parameters:

  • lifecycleStatus Object

    array of lifecycle statuses.

Returns:

Object containing nextLifecycleStatus (array) and nextLifecyclePhase (int)

toLifecyclePhaseString

(
  • lifecyclePhase
)

This function returns lifecycle phase string associated with the input lifecycle phase code.

Parameters:

  • lifecyclePhase Object

    lifecycle phase code.

Returns:

Returns the associated lifecycle phase description of the input lifecycle phase code.

toLifecycleStatusString

(
  • lifecycleStatus
)

This function returns lifecycle status string associated with the input Lifecycle Status code

Parameters:

  • lifecycleStatus Object

    lifecycle status code.

Returns:

Returns the associated lifecycle status description of the input lifecycle status code.

Properties

ACCEPTABLE

Number

Acceptable lifecycleStatus code = 4 belongs to Verification Phase

CORRECTION

Number

Code for Correction Phase

EXCEPTION

Number

Exception lifecycleStatus code = 9 belongs to Verification Phase

FAILED

Number

Failed lifecycleStatus code = 12 belongs to Verification Phase

LIFECYCLEPHASE_DESCRIPTIONS

Object

Object containing lifecycle phase codes and their associated descriptions

LIFECYCLESTATUS_DESCRIPTIONS

Object

Object containing lifecycle status codes and their associated descriptions

MARK AS EXCEPTION

Number

Mark As Exception lifecycleStatus code = 3 belongs to Correction Phase

NEW

Number

New lifecycleStatus code = 10 belongs to Review Phase

PASSED

Number

Passed lifecycleStatus code = 11 belongs to Verification Phase

RESOLVED

Number

Resolved lifecycleStatus code = 2 belongs to Correction Phase

REVIEW

Number

Code for Review Phase

REVIEWED

Number

Reviewed lifecycleStatus code = 1 belongs to Review Phase

UNACCEPTABLE

Number

Unacceptable lifecycleStatus code = 6 belongs to Review Phase

UNKNOWN

Number

Unknown lifecycleStatus code = 0 belongs to Review Phase

UNRESOLVED ACCEPTABLE

Number

Unresolved Acceptable lifecycleStatus code = 8 belongs to Verification Phase

UNRESOLVED EXCEPTION

Number

Unresolved Exception lifecycleStatus code = 5 belongs to Verification Phase

UNRESOLVED UNACCEPTABLE

Number

Unresolved Unacceptable lifecycleStatus code = 7 belongs to Review Phase

VERIFICATION

Number

Code for Verififcation Phase