Skip to main content

GetWorkflowStatus

Use this function to retrieve the status of a specific step within a Longview Workflow process. Review the following table for a summary of possible return values and their corresponding status.

Return value Longview Workflow Status

-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

Syntax:

GETWORKFLOWSTATUS(Process, Step[, Symbol])

where:

  • Process is the name of the Longview Workflow process for which to return the status. 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 unless the specified step is hierarchical, and is the symbol for the step.

Syntax example:

Create Variable nWorkflowStatus as NUM

Set Variable nWorkflowStatus = GETWORKFLOWSTATUS(MonthEndProcess, "ABC Canada")

Syntax example:

Create Variable nWorkflowStatus as NUM

Set Variable nWorkflowStatus = GETWORKFLOWSTATUS(MonthEndProcess, "ABC Canada", E11111)

Was this article helpful?

We're sorry to hear that.