Skip to content

/AWS1/CL_IOJ=>STARTNEXTPENDINGJOBEXECUTION()

About StartNextPendingJobExecution

Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.

Method Signature

IMPORTING

Required arguments:

IV_THINGNAME TYPE /AWS1/IOJTHINGNAME /AWS1/IOJTHINGNAME

The name of the thing associated with the device.

Optional arguments:

IT_STATUSDETAILS TYPE /AWS1/CL_IOJDETAILSMAP_W=>TT_DETAILSMAP TT_DETAILSMAP

A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.

IV_STEPTIMEOUTINMINUTES TYPE /AWS1/IOJSTEPTIMEOUTINMINUTES /AWS1/IOJSTEPTIMEOUTINMINUTES

Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by calling UpdateJobExecution, setting the status to IN_PROGRESS and specifying a new timeout value in field stepTimeoutInMinutes) the job execution status will be automatically set to TIMED_OUT. Note that setting this timeout has no effect on that job execution timeout which may have been specified when the job was created (CreateJob using field timeoutConfig).

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_IOJSTRTNEXTPENDINGJ01 /AWS1/CL_IOJSTRTNEXTPENDINGJ01