question

Magnus C avatar image
0 Likes"
Magnus C asked Benjamin W2 commented

How to calculate token current %staytime in activity

Is it possible to get the % of a token´s staytime in a delay activity? On entry the token is given a specific "Entry Time" and "Exit Time", so it should be possible, right?


I need to detect when a token in given Delay activity reach a certain % of its staytime. How can I do this?

Choose One
process flowtokensdelay activitycalculate%
· 3
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

Hi @Magnus, because you have edited your question, all your attachments got erased. That is sad, but currently here at this answers site a problem. Please be so kind and upload your attachments pictures and files again at the question directly or inside of a comment. Many thanks! Jörg

0 Likes 0 ·
Magnus C avatar image Magnus C Joerg Vogel commented ·

The pictures seem to be working fine on my end. Anyways here they are. It´s just an example.

0 Likes 0 ·
q1.png (6.8 KiB)
q2.png (8.2 KiB)
Benjamin W2 avatar image Benjamin W2 commented ·

Hi @Magnus C, was tanner.p's answer helpful? If so, please click the red "Accept" button on their answer!

0 Likes 0 ·

1 Answer

·
tannerp avatar image
0 Likes"
tannerp answered

Hi @Magnus C,

I'm not sure of a straightforward way to do this, but maybe someone else has input.

Do you know the delay time for each of the tokens? Or are they randomly distributed? I was able to access the delay time through the tree, but I can't figure out a way to access it through an Assign Labels activity in Process Flow. (see attached model)

If you could figure out how to access this in a label, you could add it to the current model time and then calculate the time at which the staytime will be a certain % complete. Hope this helps.

token exit time.fsm


5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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