WAPISUBWORK is the object handle of a sub-workflow. 
  It is used in the WAPI functions for workflow manipulation 
  operations.

 
   pWORKID pWORKID
- The unique ID for the workflow.
 pSUBWORKID pSUBWORKID
- The unique ID for the sub-workflow.
 pMAPID pMAPID
- The ID for the map stored 
    in the WMap table that will be used as the route definition for the sub-workflow.
 pRETURNSUBWORKID pRETURNSUBWORKID
- The subWorkID for the sub-workflow 
    that started this sub-workflow if it was started as a sub-workflow from a 
    task.
 pRETURNTASKID pRETURNTASKID
- The ID for the task that 
    started this sub-workflow if it was started as a sub-workflow from a task.
 pDATEDUE_MIN pDATEDUE_MIN
- The minimum possible due 
    date for the sub-workflow.
 pDATEDUE_MAX pDATEDUE_MAX
- The maximum possible due 
    date for the sub-workflow.
 pDATEINITIATED pDATEINITIATED
- The date the sub-workflow 
    was initiated.
 pDATECOMPLETED pDATECOMPLETED
- The date the sub-workflow 
    was completed.
 pSTATUS pSTATUS
- The status of the sub-workflow.
 pTITLE pTITLE
- The title of the sub-workflow.
 pPROJECT pPROJECT
- The project identifier for 
    the sub-workflow.
 pUSERDATA pUSERDATA
- Stored data that can be 
    used by the sub-workflow.
 pCUSTOMDATA pCUSTOMDATA
- Stored data from customization that can be 
    used by the sub-workflow.

 pWORKID
 
pWORKID 
 Integer pWORKID
 
  - The unique ID for the workflow. 
    The column in the WSubWork table is SubWork_WorkID.
 pSUBWORKID
 
pSUBWORKID 
 Integer pSUBWORKID
 
  - The unique ID for the sub-workflow. 
    The column in the WSubWork table is SubWork_SubWorkID.
 pMAPID
 
pMAPID 
 Integer pMAPID
 
  - The ID for the map stored in 
    the WMap table that will be used as the route definition for the sub-workflow. 
    The column in the WSubWork table is SubWork_MapID.
 pRETURNSUBWORKID
 
pRETURNSUBWORKID 
 Integer pRETURNSUBWORKID
 
  - The subWorkID for the sub-workflow 
    that started this sub-workflow if it was started as a sub-workflow from a 
    task. The column in the WSubWork table is SubWork_ReturnSubWorkID.
 pRETURNTASKID
 
pRETURNTASKID 
 Integer pRETURNTASKID
 
  - The ID for the task that started 
    this sub-workflow if it was started as a sub-workflow from a task. The column 
    in the WSubWork table is SubWork_ReturnTaskID.
 pDATEDUE_MIN
 
pDATEDUE_MIN 
 Date pDATEDUE_MIN
 
  - The minimum possible due date 
    for the sub-workflow. There is a minimum and maximum possible due date because 
    a workflow can have multiple paths that can be taken based on conditional 
    routing. The column in the WSubWork table is SubWork_DateDue_Min.
 pDATEDUE_MAX
 
pDATEDUE_MAX 
 Date pDATEDUE_MAX
 
  - The maximum possible due date 
    for the sub-workflow. There is a minimum and maximum possible due date because 
    a workflow can have multiple paths that can be taken based on conditional 
    routing. The column in the WSubWork table is SubWork_DateDue_Max.
 pDATEINITIATED
 
pDATEINITIATED 
 Date pDATEINITIATED
 
  - The date the sub-workflow was 
    initiated. The column in the WSubWork table is SubWork_DateInitiated.
 pDATECOMPLETED
 
pDATECOMPLETED 
 Date pDATECOMPLETED
 
  - The date the sub-workflow was 
    completed. The column in the WSubWork table is SubWork_DateCompleted.
 pSTATUS
 
pSTATUS 
 Integer pSTATUS
 
  - The status of the sub-workflow. 
    The column in the WSubWork table is SubWork_Status. The possible values for 
    the status are: 
 WAPI.SUBWORK_STATUS_EXECUTING
 WAPI.SUBWORK_STATUS_DONE
 
 pTITLE
 
pTITLE 
 String pTITLE
 
  - The title of the sub-workflow. 
    The column in the WSubWork table is SubWork_Title.
 pPROJECT
 
pPROJECT 
 String pPROJECT
 
  - The project identifier for the 
    sub-workflow. The column in the WSubWork table is SubWork_Project.
 pUSERDATA
pUSERDATA
 Dynamic pUSERDATA
 
  - Stored data that can be used 
    by the sub-workflow. The column in the WSubWork table is SubWork_UserData.
 pCUSTOMDATA
pCUSTOMDATA
 Dynamic pCUSTOMDATA
 
  - Stored data that can be used 
    by the sub-workflow. This field is used to store data that is needed for customizations. 
    The column in the WSubWork table is SubWork_CustomData.