Submitted by ephemeris.lappis on Thu, 11/10/2016 - 09:28
Hello.
We're testing multi-instance tasks and their execution parallelism. After some tests, it seems that despite a parallel setting, task instances, generated from a pool variable array, are executed in a sequential way, and not actually parallel : when storing tasks results in an array, they appear in the same order as the source collection, that seems to be very strange, without any random factor as expected...
Submitted by valeria.torella on Mon, 08/08/2016 - 11:22
Hi, I'd like to start a process instance for every user in a group. I've tried to create a process variable that contains the user's list. This variable has this default value:
final IdentityAPI identityAPI = TenantAPIAccessor.getIdentityAPI(apiSession); final SearchOptionsBuilder builder = new SearchOptionsBuilder(0, 100); builder.filter(UserSearchDescriptor.GROUP_ID, groupID); final SearchResult<User> userResults = identityAPI(apiSession).searchUsers(builder.done());
Submitted by ephemeris.lappis on Fri, 02/12/2016 - 14:50
Hello.
I'm trying to make a multi-instantiated task, based on the case business data which is marked as multiple, ie a list.
The process design seems to work when I test it from the studio : instances of the task are created according to the number of elements in my business object list. The current object, with the right type, is given by the iterator task variable, and the operations at the end of the task update the business object with the contract attributes as expected.
Submitted by yannick.lombardi on Mon, 01/19/2015 - 11:30
Hi.
In a process I have a list on which I need to iterate.
For each value in this list, I need to do 4 tasks (2 human and 2 script).
What is the best practice between :
1) create a sub-process that is multi-instanciate and each instance do only once the 4 tasks
2) create a single process that iterate on the list (with an iterator and gateway) ?
If I have a lot of values in my list, I dont know if it is good to instantiate many time th sub-process.
The example shows how to use multi-instantiated tasks in Bonita BPM. The goal is to create multiple instance of the same activity, how to manage different environments for each instance, how to assign each instance to a different user, how to get results form each instance and how to put a condition over that multi-instantiated task.