Creating a workflow with loops and conditional flows
We will create the workflow called SAPPostVendorInvoice
, in which we will include all the steps required for the SAP post vendor invoice subprocess. We will use the same pages and activities that we used in Chapter 13, Designing Scenarios, to post the vendor invoice. We will additionally include activities required to loop through multiple invoices and post, and make the tax data optional in the workflow based on the availability of data.
Before we start with the workflow, as we want to post multiple invoices, we need to update the context to include an array of the invoices. We can do this by checking the box that is next to the Invoice
variable folder in the Context panel to indicate it as an array, as shown in the following screenshot:
Our context to hold multiple invoices to post and fetch statuses is now ready. We will create...