question

G C avatar image
0 Likes"
G C asked Mischa Spelt commented

Batch Activity label

In process flow, I have a batch activity with the following settings:

When the max wait timer is fired, I want to release the tokens and change the token label "batchSize" to whatever the current number of tokens were currently batched at time of max wait timer fired (still retaining the "group by" function).

I guess I need a reference to current count of tokens within the batch activity grouped by the label "row" so I can update the "batchSize" label.

Choose One
process flowlabelsbatch
capture.png (13.7 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

jing.c avatar image
2 Likes"
jing.c answered Mischa Spelt commented

Hi!

if check the code in OnWaitTimerFired, you will find the param "collected" which is currently batched at time of max wait timer fired.

You can add a code snippet and type the code as following pic.


batch1.png (24.3 KiB)
batch2.png (6.5 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Mischa Spelt avatar image Mischa Spelt commented ·

Probably a Set Label also works then, instead of the code snippet.

3 Likes 3 ·
G C avatar image G C commented ·

Yes, this is it. Thank you...

0 Likes 0 ·