I am developing a frontend app in AngularJS. What is the best way of setting a daily quota for the number of instances that a demo (or any) user can start? The demo user is anonymous and hence I am afraid of somebody attacking the Engine via my app.
so you want to have a quota only for your client application (the one you are working on) or the quota should be global ? (which will affect all the client applications)
—- Please note that a process could be started by a timer event. (and it could be configured in the process definition XML so you should do it in the engine globally in order to restrict the engine from creating too many instances.)
Thanks pmsevestre for your contribution; I have some comments: (killing a instance after it was created maybe is not a very nice solution since he want to prevent creation)
@ vasilnedev, since you want to prevent creation of process instances maybe you could put some code inside StartProcessInstanceCmd.java in order to prevent instance creation if quota is reached. (as pmsevestre said for the first solution, by checking the historic data)