No actor initiator defined on the process

1
+1
-1

Hello,

Since an upgrade of our Bonita server from 7.5.4 to 7.8.3 we encounter an issue for displaying form to the users. The following error appear :
Screenshot-2019-04-12-Bonita-Portal.png

In the application logs, I get the following exception :
org.bonitasoft.engine.bpm.actor.ActorNotFoundException: No actor initiator defined on the process

Which I don't really get since actor initiator is not mandatory.

This error appear on both processes that have an initiator defined and processes that do not.

I found a workaround for now:
- For processes that have an initiator defined, have the user assigned to the task belong to the same group the actor initiator is mapped to.
- For processes that don't have an initiator defined, have the user assigned to the task be admin. (Really not ideal)

Some additional precisions:
All was working fine before the upgrade. No changes has been done to the processes since the upgrade.
Upgrade has been done using the provided migration scripts.
Error also seem to appear on freshly deployed 7.8.3 environments that don't have been upgraded before.
All our processes use external form URL.
Everything is working fine on local environment with Bonita Studio.

I don't have any clue on how to resolve this. Any help would be greatly appreciated.

Thank you

Comments

Submitted by delphine.coille on Fri, 05/03/2019 - 15:54

Bonjour Pierre, Si vous pensez qu'il s'agit là d'un bug, je vous remercie de reporter un problème dans notre bug tracker. Ainsi nous pourrons essayer de le reproduire et si c'est le cas ouvrir un bug auprès de la R&D de Bonitasoft.

Si vous avez des difficultés pour le renseigner, je vous laisse vous reporter à la section correspondante dans les FAQ.

Je reste à votre disposition pour toute autre question. Merci d'avance. Delphine

Submitted by antoine.mottier on Tue, 05/14/2019 - 09:46

Hi,

In order to reproduce your issue I would like to better understand your process. Can you confirm my understanding and answers the following questions:

  1. You are working with 2 different "types" of process definitions: one that has an actor with the initiator flag, one that doesn't.
  2. For the process definitions that have no actors with initiator flag, can you describe how you start the process? Is it using a call activity?
  3. Your process definitions includes the declaration of 2 actors.
  4. To define the task candidates (i.e. set of users who can do the task) are you using an actor (with a mapping to groups, roles, users) or an actor filter?
  5. In your normal situation the user(s) who can do the tasks don't have the "Administrator" profile and are not in the group associated with the actor flagged "initiator".
  6. This issue is reproduce using a Bonita+Tomcat 7.8.3 bundle configured with which database?
  7. The issue is this error log message but the process run as expected?

Thanks a lot.

Submitted by pierre.deville on Tue, 05/28/2019 - 14:32

Hi,

Thank you for your answer.

  1. That's correct
  2. This is done using the endpoint "/API/bpm/process/:processId/instantiation" from the REST API
  3. That's right, 2 or more.
  4. It depends, the error happen in both cases.
  5. Exactly
  6. The database is PostgresSQL 9.3
  7. Not really, the form as shown in the screenshot appear rather than the dedicated form for the task.

Hope it helps.

Regards.

Submitted by antoine.mottier on Tue, 06/25/2019 - 19:39

A quick update on this issue and my investigation. I created an external web applications that display forms to start processes and execute tasks. I also create a process create in Bonita 7.8.3 that use my custom webapp to display forms using "Redirect URL" option. Task in the process is associated with an actor. Actor is mapped to a single user that has only "user" profile (not an admin).

I can successfully run this in Bonita Studio (forms handle by the external webapps are displayed as expect in Bonita Portal).

I can also successfully run this process on a 7.8.3 Tomcat bundle configured with PostgreSQL. Again forms are displayed as expected.

In your question you mentioned that "Error also seem to appear on freshly deployed 7.8.3 environments". Are you able to provide step by step instructions that might give me more chances to reproduce your issue?

No answers yet.
Notifications