question

Anggoro P avatar image
0 Likes"
Anggoro P asked Mischa Spelt edited

Modify Label Value

@steven.hamoen @Mischa Spelt

Hi, I have a label "RequiredProductAge" attached to tokens (customer demands). Because the token has a delivery leadtime that has already defined by using delay time, the RequiredProductAge needs to be modified into: RequiredProductAge - Delivery Leadtime (as shown in the picture)

Any idea how to define a modified value of RequiredProductAge? I tried to use token.RequiredProductAge - Delivery Leadtime, but seems that it doesn't work

Thanks

Choose One
assign labels
b.jpg (57.3 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

Mischa Spelt avatar image
1 Like"
Mischa Spelt answered Mischa Spelt edited

Right now the delivery lead time is only sampled in the delay activity and you cannot use it afterwards. You should sample it first, for example using an Assign Labels activity. Then you can use that label both in the delay and in the calculation of the required product age.


45543v2.png (1.2 MiB)
5 |100000

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