Running a microflow as a user in a scheduled task

0
Is it possible to use commucom 'executeMicroflowAsUser' in a scheduled event? If yes, how? Now I get locking errors.
asked
2 answers
0

No this isn't possible. If you would have the users password you could theoretically log him/her in using a Java action and then perform what you want to do, but that is probably a bad way to approach things and it would log the user out at his/her location anyway.

By the way, even if you could prevent locking errors somehow, isn't locking the point of having the locking module? The locking would prevent objects from being changed by 2 actions at the same time and this is what you want when using locking right?

answered
0

I don't know if it works, but you can try

ISession iSession = Core.initializeSession(...); to get an ISession and then

IContext iContext = iSession.createContext(); to get an IContext to be used in

Core.execute(iContext,...)

answered