Code Extension Type: WORKFLOW_CODE_EXTENSION (on page 1)
Purpose: This code extension gets called within the workflow engine when an ASC operation is aborted. By default, it initiates the following behavior, depending on when the ASC aborts the operation:
If the abort occurs before the ASC lifts the container, N4 marks the work assignment as Aborted, resets the move history of the work instruction associated with the aborted WA, and makes the CHE idle. In addition, it marks the work instruction (WI) as SYSTEM_BYPASS (as opposed to BYPASS for user-initiated bypasses) (Suspend State) and reverts the move stage to Planned. It also clears the WI fields wiEcStateDispatch and wiChe in ASC-related WAs . N4 temporarily marks the origin stack as blocked.
If the abort occurs after the ASC lifts the container, N4 marks the work assignment as Aborted. If the WI is:
An outbound move to a rack, N4 attempts to find another rack position; when successful, N4 updates the work instruction's To position and then re-dispatches. If N4 cannot find an alternate rack position, it finds an alternate position inside the stowage block. When the ECS aborts the ASC move onto the AGV, N4 keeps the AGV dispatched; however, if the transfer point where the ASC and AGV are to meet changes, N4 automatically requests a cancel of the AGV. This only happens if the abort handler is able to reroute the aborted ASC move through a different transfer point, which it only attempts for moves of laden ASCs via rack TPs.
A direct outbound move, N4 finds a position close to the transfer zone (TZ) and then re-dispatches the WI to the CHE.
An inbound move, N4 finds an alternate position close to its original planned position and dispatches the WI to the CHE.
When the CHE is re-dispatched and if the move was an outbound move but re-decked inside the block, N4 creates a new WI that precedes the original work instruction. N4 marks the original work instruction as SYSTEM_BYPASSED and reverts the move stage to Planned.
N4 reverts the WI's move stage to Planned only when the WI is not being carried by the CHE and is not part of a vessel discharge.
If a transport order is aborted with a problem type of ABORTED_BY_OPERATOR, the fields CRANE_ABORT_CODE and CRANE_ABORT_DESCRIPTION in the ASC_COMMANDS table typically include additional information provided by the ASC control system. For such situations, you can set up the HandleAscOrderAborted code extension to retrieve error details from the CRANE_ABORT_DESCRIPTION field by un-commenting the respective code snippet that is already included in the system-seeded code extension.