# WfContextType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Workflow context of the operation that is to be executed. Points to a process instance in a workflow engine, and to an externalized view of its state. Beware, some attributes like process state or work items may not be always present.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
processInstanceId | property string | [0,1] |
processName | property string | [0,1] |
processInstanceName | property string | [0,1] |
localizableProcessInstanceName | property LocalizableMessageType | [0,-1] | Localizable name of the process instance.
localizableTaskName | property LocalizableMessageType | [0,1] | Localizable name of the task instance.
startTimestamp | property dateTime | [0,1] |
endTimestamp | property dateTime | [0,1] |
requesterRef | reference ObjectReferenceType | [0,1] | User who requested the respective operation was carried out.
objectRef | reference ObjectReferenceType | [0,1] | Object whose modification is to be approved.
targetRef | reference ObjectReferenceType | [0,1] |
approvedByRef | reference ObjectReferenceType | [0,-1] | User(s) who approved current operation.
rootTaskRef | reference ObjectReferenceType | [0,1] | This property is put into model task (i.
stageNumber | property int | [0,1] |
outcome | property anyURI | [0,1] |
changeProcessor | property string | [0,1] |
processInterface | property string | [0,1] |
processorSpecificState | container WfProcessorSpecificStateType | [0,1] | State that is specific to a given change processor.
processSpecificState | container WfProcessSpecificStateType | [0,1] | State that is specific to a given BPMN process.
event | property CaseEventType | [0,-1] |
workItem | container WorkItemType | [0,-1] | Currently open work items for this process.

- ### Items

  - #### processInstanceId

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### processName

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### processInstanceName

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### localizableProcessInstanceName

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Localizable name of the process instance. To be used e.g. in GUI. May consist of more parts. (But this situation should be avoided if possible.)

  - #### localizableTaskName

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Localizable name of the task instance. To be used e.g. in GUI. This is to be set only for the root task. EXPERIMENTAL. TEMPORARY. Will be replaced in the future by some kind of localizable object names.

  - #### startTimestamp

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### endTimestamp

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### requesterRef

    Flags: RAM

    Multiplicity: [0,1]

    User who requested the respective operation was carried out. Stored in repository.

  - #### objectRef

    Flags: RAM,composite

    Multiplicity: [0,1]

    Object whose modification is to be approved. (Normally the same as task.objectRef but there can be differences in cases when the object is only to be created.) TODO - think this through.

  - #### targetRef

    Flags: RAM

    Multiplicity: [0,1]

  - #### approvedByRef

    Flags: RAM

    Multiplicity: [0,-1]

    User(s) who approved current operation. Stored in repository.

  - #### rootTaskRef

    Flags: RAM

    Multiplicity: [0,1]

    This property is put into model task (i.e. not wf root task). It points to the wf root task - that's important e.g. in cases when wf root task is not a subtask of the model task.

  - #### stageNumber

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### outcome

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### changeProcessor

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### processInterface

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### processorSpecificState

    Flags: RAM,runtime

    Multiplicity: [0,1]

    State that is specific to a given change processor.

  - #### processSpecificState

    Flags: RAM,runtime

    Multiplicity: [0,1]

    State that is specific to a given BPMN process.

  - #### event

    Flags: RAM,runtime

    Multiplicity: [0,-1]

  - #### workItem

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Currently open work items for this process.