1

I have a form in which I want to have number field and that should be auto increment. Is there any way to achieve this ?

divibisan
  • 11,659
  • 11
  • 40
  • 58
user8030367
  • 81
  • 4
  • 18

2 Answers2

2

There's an aspect called countable aspect, and it does just that. However, it works with it's own property - countable - so if you're looking to use your own property - you will need to write some code.

http://avantec.se/2013/12/05/howto-create-an-auto-increment-field-on-an-object-in-alfresco/

How does cm:countable aspect works in alfresco?

Lista
  • 2,186
  • 1
  • 15
  • 18
  • Thank you for the reply. But I asked about alfresco BPM. Aspects are related to ECM. How to make number field auto increment in BPM? – user8030367 Aug 17 '18 at 05:17
0

Write a task listener. The task listener can be responsible for looking up the latest number, incrementing it, then setting the process or task variable with the new value.

Jeff Potts
  • 10,468
  • 17
  • 40