Workflow data types are a series of objects that model the different entities of the Workflow system. Each object (data type) has a series of properties and methods that allow interacting with the system. The purpose of the following sessions is to describe the different objects, enumerating each one of their properties and methods.
The following figure shows the chart corresponding to the Classes Hierarchy of the main data types:

To work with the process definition, the process instance and the workitem that are running it´s necessary to acces the WorkflowContext as follows:
&WorkflowContext.ProcessInstance
&WorkflowContext.ProcessDefinition
&WorkflowContext.Workitem
IMPORTANT: Workflow Apis doesn´t commit, so every time you use workflow data types to do an update you must commit. For example, when you set a Workflow Application Data.