Multi-Instance Activities

enaio® 10.10 »

Multi-instance activities are activities to be found in the inboxes of all specified users who can also execute them.

As soon as all participants have forwarded their activity, the following activity will start.

Generally, local variables are required and values need to be merged via an EndActivity event since multiple participants process a step simultaneously.

Example:

All participants of an activity rate the activity positively or negatively using radio buttons.

 

An EndActivity event runs this evaluation. If there are more positive than negative ratings, the variable 'ergebnis' receives the value '1'.

lCount = thisprocess.CurrentActivity.MultiInstances.Count
lpos = 0
lneg = 0
for i = 0 to lCount -1
if Clng ( thisprocess.CurrentActivity.MultiInstances.Item(i)
GetDataFieldByName("bewertung.Value) = 0 then
lpos = lpos +1
else
lneg = lneg +1
end if
next
if lpos > lneg then
ergebnis.Value = 0
else
ergebnis.Value = 1
end if

This result can be displayed in a following activity with the variable 'ergebnis'.

Further instances can now be added to a multi-instance activity which is already running.