GetWorkflowProperty
Pushes the extracted property from the root activity of the workflow onto the stack.
<wf:Operation Name="GetWorkflowProperty">
<wf:Argument>Arg1</wf:Argument>
</wf:Operation>
Name of the property.
String containing the value of the property.
This operation is only valid in Updates.
You can use dotted-notation for qualifying the property name you want to retrieve. This will provide you access to objects inside of other objects exposed through properties. For example, to access the City property of an Address instance of a purchase order, use "purchaseOrder.Address.City".
Property names are case-sensitive first, and then case-insensitive. This is important when you have two or more activity properties that vary only by case in your WF application. For example, if your workflow application has the properties "myWorkflow" and "MyWorkflow" defined and you were looking for "MyWorkflow", it would match on the second property through a case-sensitive match. If you specify "MYWORKFLOW", it would match "myWorkflow" through a case-sensitive match after a case-insensitive match attempt fails.
Note
NULL property values will result in a NullReferenceException being thrown back to the workflow instance.
In the following sample, an update expression is used to persist the workflow property "City" from a purchase order by using GetWorkflowProperty
.
<ic:Update DataItemName="City" Type="NVARCHAR">
<ic:Expression>
<wf:Operation Name="GetWorkflowProperty">
<wf:Argument>po.Info.City</wf:Argument>
</wf:Operation>
</ic:Expression>
</ic:Update>