multi-instantiated

Multi-instantiate processes from relational data

(Very new to Bonita, please over-explain any and all advice).

In my process flow, there are orders and items.

The orders have details of the client, delivery dates etc.

The items are the individual parts of the order which are required to be produced, with specifications.

There can be 1 or many items per order.

In the initial section of my diagram, I require that orders and their full list of items are processed together.

However, once the orders are forwarded to production, I wish to only have one item processed at a time.

Multi-instantiated tasks and parallel execution / Bonita 7.3

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...

multi-instantiated process for every user in a group

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());

REST API / Get current business data of multi-instantiated task

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.

Iterate on a list - best practice

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.

domenico.giordano's picture
domenico.giordano
Category: 

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.

Releases for Multi-instantiated example

Total downloads: 8 360
Version BonitaBPM Version Post date Download Link to content
2.0 7.2.x 2016-Aug-26 Download
2303 downloads
Release note
1.1 6.3.x 2016-Aug-26 Download
1587 downloads
Release note
First Version 6.2.x 2014-Mar-15 Download
2323 downloads
Release note
1.0 6.2.x 2014-Mar-14 Download
2147 downloads
Release note

Multi-Instantiated 6.x

I'm tring to understand how can distribute one task per user in BOS 6.x.

at sometime in my process i have to get the aproval from some actores id difined in a List(java.util.List) listOfUsers(global variable)

so i create a step multi-instance:

1º-General->Iterration-> i select "is Multi-Instantiated"

2º-I select "Use a Collection" and i use the listOfUsers to this field

-"input Data"- i don't now what to put in this field

Notifications