Table of contents

Official Content

The Workflow Context is a data type that allows you to work with the process definition, process instance and workitem that are running. You can access them using the WorkflowContext variable this way:


As of GeneXus X, it is not necessary to add the parm rule with the three parameters in all the objects, it is only required when working with procedures associated with conditions.

If you want to use a procedure associated with a condition instead of the condition editor you have to define the following parm rule:


Where the variables are defined as follows:

&wfprocessdefinition - WorkflowProcessDefinition
&wfprocessinstance - WorkflowProcessInstance
&wfworkitem - WorkflowWorkitem
&conditioncode - Numeric(4.0)

Warning: you can't use the &WorkflowContext in procedures associated with conditionals, timers events and event handling properties.


Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant