GetContextProperty Overview
Pushes the requested context property onto the stack.
<wf:Operation Name="GetContextProperty">
<wf:Argument>ContextPropertyName</wf:Argument>
</wf:Operation>
One of the following context property names:
Context property name | Description |
---|---|
EventTime | Current date and time. |
InstanceId | Workflow instance ID. |
Note
The context property names are case-sensitive.
String containing the requested context property.
Time is stored in UTC format inside of the database.
In the following sample, an expression for pulling the InstanceId is used inside of a correlationID block to set the correlation ID.
<ic:CorrelationID>
<ic:Expression>
<wf:Operation Name="GetContextProperty">
<wf:Argument>InstanceId</wf:Argument>
</wf:Operation>
</ic:Expression>
</ic:CorrelationID>
This is a common use of GetContextProperty
.