CasewareDocs

IsAppWorkflowExecution

Specifies whether an audit test or a Standard Import Routine is executed from within an app workflow. If the execution is app workflow-related, it is true, otherwise it is false.

Compatibility

Available as of IDEA version 10.3

Syntax

IsAppWorkflowExecution

Type

Boolean

Remarks

Some macro commands may be used in the app workflow execution context only, otherwise they raise an error. These commands are:

GlobalParameters.Set4App

GlobalParameters.Get4App

GlobalParameters.GetString4App

GlobalParameters.GetBoolean4App

GlobalParameters.GetDateTime4App

GlobalParameters.GetInteger4App

GlobalParameters.GetFloat4App

GlobalParameters.GetObject4App

GlobalParameters.GetPeriod4App

Example

Dim mc As Object 
Dim sc As Object
Dim parameterizer As Object
Dim isWorkflow As Boolean
Dim intVal As Integer

Set mc = SmartContext.MacroCommands
Set sc = mc.SimpleCommands
Set parameterizer = mc.GlobalParameters

isWorkflow = SmartContext.IsAppWorkflowExecution

If isWorkflow Then
SmartContext.Log.LogMessage "App Workflow execution; ID=" & SmartContext.AppWorkflowID"
parameterizer.Set4App "IntVal", 100
intValue = parameterizer.GetInteger4App("IntVal")
Else
SmartContext.Log.LogMessage "Non-App Workflow execution"
Enf If