WMInstanceData

WMInstanceData allows the definition of application data that is particular to each deferred process, so that values can be supplied for that data for each instance of the deferred process.

Consider the situation where you want to develop a deferred method for processing a Case. The deferred processing engine has no knowledge of any cases (or even what a case is), so it cannot supply the ID of the case to your deferred method. It does, however, know about WMInstanceData and supplies the ID of a WMInstanceData record to every deferred method it invokes. This record should be created and populated by you before enacting the deferred process and the ID of the populated record should then be supplied to the enactment API. When the deferred processing engine invokes your deferred method, it will pass in that ID as a parameter.

WMInstanceData shows the WMInstanceData entity class and its properties. As you can see, apart from the unique identifier attribute of this class, all other information must be defined by you. This is done using the modeling environment. The WMInstanceData entity should be created in your model, in a package of your choice. WMInstanceData facilitates in the definition of your application specific information.

Table 1. WMInstanceData Properties

Property

Description

Type

Requirement

wmInstDataID

The unique identifier of the instance data.

WM_INST_DATA_ID

M

myInstanceData1

Property to be included as instance data

Your application domain definition for the property.

O

myInstanceData2

etc.

Property to be included as instance data

Your application domain definition for the property.

O