Hi Frank,
There is no out-of-the-box solution for your problem, i.e. there is no build-in process variable or something in that direction.
Depending on how you start the process instance, you can submit the user name yourself. Assuming you use camunda Tasklist and embedded forms, you could implement a start form that automatically submits the name of the logged in user as a process variable.
Inside the form you are to execute your custom javascript [1], which could look like as follows:
<form role="form">
<script cam-script type="text/form-script">
inject([ '$rootScope', function($rootScope) {
// get variable manager
var variableManager = camForm.variableManager;
// current authentication to get the current logged in user
var user = $rootScope.authentication.name;
// a new variable will add it to the form submit
variableManager.createVariable({
name: 'customVariable',
type: 'String',
value: name,
isDirty: true
});
}]);
</script>
// custom fields
</form>
Please note: I did not test the snippet above.
Fell free to aks if you need assistance with that task. To do so, it would be good to know hou you start the process.
Cheers,
Roman