OOTHUB Blog Detail

  • workflow table_181.png

    Understanding Workflow Tables and Views

    WData Table

    Think of the WData table as a registry for workflow data. It records every type of work package data associated with a workflow.

    Purpose: Tracks elements of the work package.
    Key Columns:

     Data_Subtype → Defines the type of data (attachments, comments, attributes, forms).
     Data_UserData → Stores the reference needed to retrieve the data.

    Examples:
    • For attachments, Data_UserData contains the related DTreeCore.DataID.
    • For attributes, it stores definitions as an Assoc (an OScript data type).

    Valid values for Data_Subtype:

    • 1 → Attachments
    • 2 → Comments
    • 3 → Attributes
    • 4 → Forms

    2. DTreeCore

    Attachments and forms linked to a workflow are stored here and in its associated tables. This is where the actual content resides.


    3. WFComments

    Workflow comments are captured in the WFComments table. These are the notes and feedback added during task execution.

    4. WFAttrData & WFAttrDataVersions

    Workflow attributes are stored in WFAttrData. If the Map designer requires versioning, attribute history is maintained in WFAttrDataVersions.

     

    Query

    Sample SQL query that retrieves workflow comments tied to subwork items:

    SELECT subwork_title, wf_taskid, wf_value FROM wfcomments, wsubwork WHERE subwork_workid = wf_workflowid AND LEN(wf_value) > 0 AND wf_value IS NOT NULL;

    Final Thoughts

    While OpenText Content Server offers many workflow-related tables, focusing on WData, DTreeCore, WFComments, and WFAttrData will cover most day-to-day reporting needs. Understanding how these tables interact makes it easier to design efficient reports and troubleshoot workflow data.

    Would you like me to also add visuals (like a diagram of table relationships) to make this blog more engaging for readers?