flowable / flowable/flowable-engine

Subprocess(Call Activity) is created with userId null

Open
#2,025 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
7h 8m
Merged PRs (30d)
2

Description

**Describe the bug**
If a process has a sub-process(CallActivity) and if the execution before sub-process is async, sub-process is not being listed in modeler-ui. Only the parent process itself is seen at process instances tab. When I check admin-ui I can see that sub-process instance there but with Started by:(None)

**Expected behavior**
Sub-process should be started with the user of parent process

**Code**
org.flowable.engine.impl.persistence.entity.createSubprocessInstance()
in the above method userId is retrieved by calling
String authenticatedUserId = Authentication.getAuthenticatedUserId();

since the execution is async there is no authenticated user in the context and this sets startedby field as null.

**Additional context**
Flowable Version 6.5.0-SNAPSHOT

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.