Show TOC

Background documentationData Available for Routing Scripts

 

There are several variables defined that the routing scripts may use. Some of these variables are defined for the convenience of the scriptwriter. Some defined variables may also exist inside the COMPLETE_DATA or in the NC_DATA variables.

The following table describes the routing script variables:

Variable Name

Description

COMPLETE_DATA

Contains the detailed information from the Complete() action (Data).

QTY

Quantity of the SFC number completed successfully (int)

Note Note

This may not contain a fraction. If a fractional value is needed, then use QTY in the COMPLETE_DATA (BigDecimal).

End of the note.

QTY_NON_CONFORMED

Quantity of the SFC number that was nonconformed (int)

Note Note

This variable may not contain a fraction. If a fractional value is needed, then use QTY in the COMPLETE_DATA (BigDecimal).

End of the note.

LOOP_COUNT and TIMES_PROCESSED

This is the loop count for the completing step. It is the TIMES_PROCESSED value from the SFC_STEP table (int).

OPERATION

The operation that is being completed

This is also available as a reference in COMPLETE _DATA (OPERATION_BO) (String).

TO_OPERATION

The operation that is the potential next operation

This is also available as a reference in COMPLETE _DATA (TO_OPERATION_BO) (String).

RESOURCE

The resource the step is being completed at

This is also available as a reference in COMPLETE _DATA (RESOURCE_BO) (String).

SITE

The site the complete took place in (String)

SFC

The SFC number being completed

This is also available as a reference in COMPLETE _DATA(SFC_BO) (String).

ITEM

The SFC number's material

This is also available as a reference in COMPLETE _DATA(ITEM_BO) (String).

USER

The user completing the operation. This can be a resource if it is a process resource.

This is also available as a reference in COMPLETE _DATA(OWNER_GBO) (String).

RETURN_OPERATION

If the next step is a Return step, this value is the operation to return to on the original routing (String).

RETURN_STEP_ID

If the next step is a Return step, this value is the step to return to on the original routing (String).

ELAPSED_TIME

The elapsed production time for the SFC number from start to complete (long in milliseconds)

ELAPSED_QUEUE_TIME

The queue time for the SFC number before the start (long in milliseconds)

NC_DATA

The NC data for the failure on completing the operation

This value is null if there was no failure logged. This value is a Data object containing the NC_DATA elements. See NCDataBOBean for details (Data).

NC_CODE

The NC code for the failure on completing the operation

This value is null if there was no failure logged. This value is also available as a reference in NC_DATA(NC_CODE_BO) (String).

FAILURE_ID

The Failure ID for the failure on completing the operation

This value is null if there was no NC logged or if the NC had no Failure ID entered (String).

NC_DATA_REF_DES

This is a sub-Data object that contains the details of the component the NC was logged at. It contains the next two elements (REF_DES and COMPONENT_BO). This Data object can contain multiple rows when multiple REF_DES’s are logged. (Data).

REF_DES

The Ref Des for the failure on completing the operation

This value is null if there was no NC logged or if the NC had no Ref Des entered. If multiple reference designators are recorded as part of the NC, then the values are stored in NC_DATA (REF_DES_DATA) (String).

NC_COMPONENT_BO

The component that was failed (BOHandle).

COMPLETE_DATA

The following table contains the data from the Complete() action:

Variable Name

Description

SITE

The site the complete action took place in (String)

USER_BO

The user who performed the complete action (BOHandle)

ACTIVITY

The activity that triggered the complete action (String)

OPERATION_BO

The operation that was completed (BOHandle)

RESOURCE_BO

The resource the operation was completed at (BOHandle)

OWNER_GBO

The owner of the SFC number (user or resource if the resource is a process resource) (BOHandle)

SFC_BO

The SFC number that was completed (BOHandle)

ITEM_BO

The material for the SFC number (BOHandle)

TIMES_PROCESSED

The same as LOOP_COUNT (BigDecimal)

QTY

Quantity of the SFC number completed successfully (BigDecimal)

QTY_NON_CONFORMED

Quantity of the SFC number that was nonconformed (failed) (BigDecimal)