add the display method under the table methods nodes.

public display WorkflowStatusUserName getApproverUserName()
{
    WorkflowTrackingStatusTable     trackingStatusTable;
    WorkflowTrackingTable           workflowTrackingTable;
    ;

    select firstOnly User from  workflowTrackingTable
            order by CreatedDateTime desc, RecId desc
            where workflowTrackingTable.TrackingContext == WorkflowTrackingContext::WorkItem                    &&
                  workflowTrackingTable.TrackingType    == WorkflowTrackingType::Approval
        exists join trackingStatusTable
            where trackingStatusTable.RecId             == workflowTrackingTable.WorkflowTrackingStatusTable    &&
                  trackingStatusTable.ContextTableId    == this.TableId                                         &&
                  trackingStatusTable.ContextRecId      == this.RecId;

    return SysWorkflowHelper::getDirPartyNameFromUserId(workflowTrackingTable.User);
}

 

相关文章:

  • 2021-11-20
  • 2022-02-03
  • 2021-05-23
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
猜你喜欢
  • 2021-11-16
  • 2021-12-20
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案