Let's implement the copy between the BookstoreAResponse
variable and the BookStoreWithLowestQuantity
variable. To do this, we will do the following:
<if>
activity and locate the ifBookstoreALower branch.AssignBookstoreA
assignment.BookstoreAResponse
variable from the left-hand side with the BookStoreWithLowestQuantity
variable on the right-hand side of the dialog window:AssignBookStoreWithLowestQuantity
.We have added the assign activity to copy the message type BookstoreAResponse
variable to the BookStoreWithLowestQuantity
variable. This is possible because both variables are of the same message type from the same XML namespace.
The following source code has been generated:
Copying the whole variable is not always necessary. Sometimes, we would prefer to copy just parts of the variable payload. This is where we need expressions.