CasewareDocs

AppWorkflowID

Returns the ID of the currently active App Workflow as string. If no App Workflow is active, an empty string is returned.

Compatibility

Available as of IDEA version 10.3

Syntax

AppWorkflowID

Type

String

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
AppWorkflowID | Caseware Docs