AnsweredAssumed Answered

How is HistoricProcessInstanceEntity's startUserId set?

Question asked by jwestra on May 10, 2016
Latest reply on May 15, 2016 by martin.grofcik
I am trying to understand how this is set when a process instance on all of these scenarios:
===========================================================================
1. By None StartEvent both synchronous and asynchronous

I figured from <activiti:initiator> process variable.  Is this coming from Spring like example below?


String initiator = SecurityContextHolder.getContext().getAuthentication().getPrincipal();


2. By Message start event both synchronous and asynchronous

3. By Signal start event both synchronous and asynchronous

I figured I'd back track from the DB entity, to see, but when I do a Eclipse "Call Hierarchy" on HistoricProcessInstanceEntity.setStartUserId(), I get zero hits.  How is this field in the DB even populated then?

Outcomes