Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

GetWorkflowLog

Use this function to retrieve a history log for a specified Workflow process and step. The function will return an object with the following properties:

Property Description

WFProcessName

String indicating the name of the Workflow Process

WFStepName

String indicating the Workflow step name

DimensionName

String indicating the Approval Dimension, if applicable

SymbolName

String indicating the Symbol Name, for hierarchical steps

History

An object list containing a history of the status changes for the workflow step. The history object contains the following properties:

  • UserID: Username of the user who last changed the state
  • UserDescription: User description of the user who last changed the state
  • Modified: Datetime stamp of the last state change
  • Comment: Comment for the last state change, if applicable
  • CurrentStatus: Current state of the workflow step
  • PreviousStatus: Previous state of the workflow step

The return values for the status properties CurrentStatus and PreviousStatus:

Property Description

-1

Failed

Note: Failed indicates the Longview Application Framework function did not execute properly or encountered an issue.

0

Not Started

999

Rejected

1000

In Progress

2000

Submitted for Approval

3000

Approved

9999

No Previous Status Available

Syntax:

GETWORKFLOWLOG TO FileName|ObjectListName Process Step[ Symbol]

where:

  • FileName is the name for the created ASCII file, containing the workflow log data. It can include a complete or partial folder path in the format C:\...\FileName1. If FileName1 includes spaces, enclose it in double quotation marks; for example:

    @"C:\My Documents\WF_Log.json"

  • ObjectListName is the name of the object list variable, containing the workflow log data.
  • Process is the name of an active Workflow process. If the process name contains spaces, enclose it in double quotation marks (" ").
  • Step is the name of the Longview Workflow step within the process. If the step name contains spaces, enclose it in double quotation marks (" ").
  • Symbol is optional for hierarchical steps, and is the symbol for the hierarchical step. Symbol is not used for simple steps.

Syntax example:

CREATE VARIABLE WFLog[] AS Object

GETWORKFLOWLOG TO WFLog MonthEndProcess "ABC Canada" E10000

Published:

GetWorkflowLog

Use this function to retrieve a history log for a specified Workflow process and step. The function will return an object with the following properties:

Property Description

WFProcessName

String indicating the name of the Workflow Process

WFStepName

String indicating the Workflow step name

DimensionName

String indicating the Approval Dimension, if applicable

SymbolName

String indicating the Symbol Name, for hierarchical steps

History

An object list containing a history of the status changes for the workflow step. The history object contains the following properties:

  • UserID: Username of the user who last changed the state
  • UserDescription: User description of the user who last changed the state
  • Modified: Datetime stamp of the last state change
  • Comment: Comment for the last state change, if applicable
  • CurrentStatus: Current state of the workflow step
  • PreviousStatus: Previous state of the workflow step

The return values for the status properties CurrentStatus and PreviousStatus:

Property Description

-1

Failed

Note: Failed indicates the Longview Application Framework function did not execute properly or encountered an issue.

0

Not Started

999

Rejected

1000

In Progress

2000

Submitted for Approval

3000

Approved

9999

No Previous Status Available

Syntax:

GETWORKFLOWLOG TO FileName|ObjectListName Process Step[ Symbol]

where:

  • FileName is the name for the created ASCII file, containing the workflow log data. It can include a complete or partial folder path in the format C:\...\FileName1. If FileName1 includes spaces, enclose it in double quotation marks; for example:

    @"C:\My Documents\WF_Log.json"

  • ObjectListName is the name of the object list variable, containing the workflow log data.
  • Process is the name of an active Workflow process. If the process name contains spaces, enclose it in double quotation marks (" ").
  • Step is the name of the Longview Workflow step within the process. If the step name contains spaces, enclose it in double quotation marks (" ").
  • Symbol is optional for hierarchical steps, and is the symbol for the hierarchical step. Symbol is not used for simple steps.

Syntax example:

CREATE VARIABLE WFLog[] AS Object

GETWORKFLOWLOG TO WFLog MonthEndProcess "ABC Canada" E10000

For an optimal Community experience, Please view on Desktop