When I start an instance I would like to know if all went well, but there is no “status” field that tells me “Ok” or “ERROR” or “CANCELED”.
I would like to know if an instance can actually have one of these states, or if it always ends. I’m wondering if an instance can fail by “itself” (I mean for reasons that do not depend on the actions that the instance does), and in that case how can I check it.
Hey @TodoMary,
Did you find any solution? I also have the similar use case.
Hi,
If the process instance is finished correctly, there is a HistoricScopeInstanceEntity.endTime
set.
In the case when an exception is thrown during synchronous process instance execution, exception is logged, transaction is rolled back and process instance is in the consistent state. In the case when failure occurs in the asynchronous execution, the jobEntity has exceptionMessage attribute which stores exception. Further reading: https://flowable.org/docs/userguide/index.html#asyncContinuations
Regards
Martin