Skip to content

Commit

Permalink
chore(merge): release-10.2.0 into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bonita-ci committed Sep 23, 2024
2 parents 0b04de4 + e2fe7ad commit 0b8eae2
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,21 @@
@AvailableInMaintenanceMode
public class PlatformInformationAPIImpl implements PlatformInformationAPI {

private final ProcessStarterVerifier processStarterVerifier;
private ProcessStarterVerifier processStarterVerifier;

public PlatformInformationAPIImpl() {
this.processStarterVerifier = ServiceAccessorSingleton.getInstance().getProcessStarterVerifier();
// Keep this empty constructor for compatibility with the APIAccessResolverImpl
}

protected PlatformInformationAPIImpl(ProcessStarterVerifier processStarterVerifier) {
PlatformInformationAPIImpl(ProcessStarterVerifier processStarterVerifier) {
this.processStarterVerifier = processStarterVerifier;
}

@Override
public Map<String, String> getPlatformInformation() {
if (processStarterVerifier == null) {
this.processStarterVerifier = ServiceAccessorSingleton.getInstance().getProcessStarterVerifier();
}
return Map.of(
"edition", "community",
"caseCounter", valueOf(processStarterVerifier.getCurrentNumberOfStartedProcessInstances()),
Expand Down

0 comments on commit 0b8eae2

Please sign in to comment.