Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Object: esri/tasks/datareviewer/ReviewerLifecycle

require(["esri/tasks/datareviewer/ReviewerLifecycle"], function(reviewerLifecycle) { /* code goes here */ });

Description

(Added at v3.14)
The ReviewerLifecycle object 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.

Samples

Search for samples that use this class.

Properties

NameTypeSummary
ACCEPTABLENumberAcceptable lifecycleStatus code = 4 belongs to Verification Phase.
CORRECTIONNumberCode for Correction Phase.
EXCEPTIONNumberException lifecycleStatus code = 9 belongs to Verification Phase.
FAILEDNumberFailed lifecycleStatus code = 12 belongs to Verification Phase.
LIFECYCLEPHASE_DESCRIPTIONSObjectObject containing lifecycle phase codes and their associated descriptions.
LIFECYCLESTATUS_DESCRIPTIONSObjectObject containing lifecycle status codes and their associated descriptions.
MARK_AS_EXCEPTIONNumberMark As Exception lifecycleStatus code = 3 belongs to Correction Phase.
NEWNumberNew lifecycleStatus code = 10 belongs to Review Phase.
PASSEDNumberPassed lifecycleStatus code = 11 belongs to Verification Phase.
RESOLVEDNumberResolved lifecycleStatus code = 2 belongs to Correction Phase.
REVIEWNumberCode for Review Phase.
REVIEWEDNumberReviewed lifecycleStatus code = 1 belongs to Review Phase.
UNACCEPTABLENumberUnacceptable lifecycleStatus code = 6 belongs to Review Phase.
UNKNOWNNumberUnknown lifecycleStatus code = 0 belongs to Review Phase.
UNRESOLVED_ACCEPTABLENumberUnresolved Acceptable lifecycleStatus code = 8 belongs to Verification Phase.
UNRESOLVED_EXCEPTIONNumberUnresolved Exception lifecycleStatus code = 5 belongs to Verification Phase.
UNRESOLVED_UNACCEPTABLENumberUnresolved Unacceptable lifecycleStatus code = 7 belongs to Review Phase.
VERIFICATIONNumberCode for Verififcation Phase.

Methods

NameReturn typeSummary
getCurrentLifecyclePhase(lifecycleStatus)StringThis function returns the the associated lifecycle phase of the input lifecycle status.
getLifecycleInfo(lifecycleStatus)ObjectThis 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.
toLifecyclePhaseString(lifecyclePhase)StringThis function returns lifecycle phase string associated with the input lifecycle phase code.
toLifecycleStatusString(lifecycleStatus)StringThis function returns lifecycle status string associated with the input lifecycle status code.
Property Details

<Number> ACCEPTABLE

Acceptable lifecycleStatus code = 4 belongs to Verification Phase.

<Number> CORRECTION

Code for Correction Phase.

<Number> EXCEPTION

Exception lifecycleStatus code = 9 belongs to Verification Phase.

<Number> FAILED

Failed lifecycleStatus code = 12 belongs to Verification Phase.

<Object> LIFECYCLEPHASE_DESCRIPTIONS

Object containing lifecycle phase codes and their associated descriptions.

<Object> LIFECYCLESTATUS_DESCRIPTIONS

Object containing lifecycle status codes and their associated descriptions.

<Number> MARK_AS_EXCEPTION

Mark As Exception lifecycleStatus code = 3 belongs to Correction Phase.

<Number> NEW

New lifecycleStatus code = 10 belongs to Review Phase.

<Number> PASSED

Passed lifecycleStatus code = 11 belongs to Verification Phase.

<Number> RESOLVED

Resolved lifecycleStatus code = 2 belongs to Correction Phase.

<Number> REVIEW

Code for Review Phase.

<Number> REVIEWED

Reviewed lifecycleStatus code = 1 belongs to Review Phase.

<Number> UNACCEPTABLE

Unacceptable lifecycleStatus code = 6 belongs to Review Phase.

<Number> UNKNOWN

Unknown lifecycleStatus code = 0 belongs to Review Phase.

<Number> UNRESOLVED_ACCEPTABLE

Unresolved Acceptable lifecycleStatus code = 8 belongs to Verification Phase.

<Number> UNRESOLVED_EXCEPTION

Unresolved Exception lifecycleStatus code = 5 belongs to Verification Phase.

<Number> UNRESOLVED_UNACCEPTABLE

Unresolved Unacceptable lifecycleStatus code = 7 belongs to Review Phase.

<Number> VERIFICATION

Code for Verififcation Phase.
Method Details

getCurrentLifecyclePhase(lifecycleStatus)

This function returns the the associated lifecycle phase of the input lifecycle status.
Return type: String
Parameters:
<Number> lifecycleStatus Required The lifecycle status code.

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.
Return type: Object
Parameters:
<Array> lifecycleStatus Required An Array of lifecycle statuses.

toLifecyclePhaseString(lifecyclePhase)

This function returns lifecycle phase string associated with the input lifecycle phase code.
Return type: String
Parameters:
<Number> lifecyclePhase Required The lifecycle phase code.

toLifecycleStatusString(lifecycleStatus)

This function returns lifecycle status string associated with the input lifecycle status code.
Return type: String
Parameters:
<Number> lifecycleStatus Required The lifecycle status code.
Show Modal