When you need a repetitive process such as one to transmit multiple emails or generate multiple PDF files, you should consider a looping structure which consists only of automatic [Service Tasks] and [Events] (i.e. without a [Human Task]). You will need to create list data such as addresses or file names which should be stored in a String-type multiple line Data Item. (Script Step)
1. Overview of Storage Methods for Sequence Information
- a. String Data in multiple lines
- Storing strings line by line (separated with line breaks)
- b. Table-type Data
- Storing strings in String-type data within a Table-type Data item
- There are other methods of sequence information management, such as comma delimiting in a String-type single line Data Item, or Select-type check box
2. Overview of the Methods of Calling Sequence Information inside the Loop
- 1. Referring to sequence information
- Retrieve necessary data by referring to the sequence information using a [Script Task]
- 2. Setting the referenced information
- Set it to a Data item; for example, "email destination"
- 3. Execute Events, etc. with the information
- Place an event; for example, "email transmission"
- 4. Confirm the repeating conditions
- Set the condition for ending the loop, such as by the number of repetitions or a time limit, etc.
- If the number of processes in the Workflow (Automated Steps, Human Steps, various Events) goes beyond the 500 Step limit it will cause a midstream error
Z. Additional Information: A Recursive Workflow
- a. Dequeue a data list and call the process recursively
- Dequeues a list set to a multi-line string, and then recursively calls its own application
- An Add-on called Multiline String, Dequeue First is recommended