KB-1330 a!startProcess() fails to trigger "onSuccess"

Symptoms

When using the a!startProcess() function to start a process from an interface and the user has Initiator rights on the target process model, the process starts, but the onSuccess parameter of the function does not trigger. No error is presented on the interface, but the following error occurs in the application server log:

ERROR com.appiancorp.core.expr.reaction.smartservicebridge.SmartServiceBridgeReaction - Exception occurred during activation of ReactionFunction {key='sys.smartService.start-process-2', class='com.appiancorp.core.expr.reaction.smartservicebridge.PluginSmartServiceBridgeReaction'}
INFO  [stdout] (ajp-/0.0.0.0:8009-5) com.appiancorp.suiteapi.process.exceptions.SmartServiceException: The user [<username>] does not have sufficient privileges to perform the requested action.

Cause

This issue has been reported to the Appian product team. The reference number for this issue is AN-80632.

Action

Give users Viewer access to the target process model in the a!startProcess() function in order to trigger the onSuccess parameter.

Affected Versions

This article applies to Appian 16.2 and later.

Last Reviewed: November 2021

Related
Recommended