Hi,
Yes it can be done in single activity. Write below free marker script in input variable of activity (type is none).
<#assign new_list=[]>
<#list [1, 2, 3, 4] as x> //defining list of values
<#assign new_list = new_list +[2 * x]> //multiplying by 2 and store in new_list
</#list>
${new_list} //print
Yes, multi-instance parallel loop refer to the capability for executing the activity by different users at the same time.
Let's take an scenario of Reporting System in which all executive need to provide input and update to Higher officer.
1)There is a Parent process which can be triggered by either Timer/Mail/WI.
a) First activity we store list of executive/users in array.
b) Second activity type loop iterating as per "User" array. Calling sub-process and allocating task simultaneously to multiple executive.
c) Third activity is of type "Email" sending notification to Higher officer that update has been done.(Once sub-process will complete this activity will execute)
2) Sub process -
a) Manual activity which will allocate task to multiple user(notified through email).
b) Action will be taken by all executive independently.
c) As executive will enter the information/ comments and submit the form. Information will be sent to parent process. Similarly, for executive 2..and so on.
d) Once all executive fill it sub-process will complete.
Please refer attachment for workflow of above scenario.