1
0
-1

Hi team,

I am trying to build a workflow where some steps in between are carried out by "public" users (ie users without a login). More specifically, how can I start a process as a logged-in user and then map a participant swimlane to "roleAnonymous" or "everybody" for activities within a particular swimlane. 

It seems like this should be possible since assignments can be viewed publicly if a process was started by a user who wasn't logged in. However in the participant mapping of other activities (apart from the start activity), the "role" tab is not available.

Any tips how the beanshell tool or variable update tool could be used to do that?

Cheers!

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Use beanshell and try

      Collection assignees = new ArrayList();
      assignees.add("anonymousUser");
      return assignees;
      1. Eric

        That works like a charm - “roleAnonymous” seems to work as well. Thanks for your help!

      CommentAdd your comment...
    2.  
      1
      0
      -1

      Sharing the updated code snippet as the above did not work.


      import java.util.ArrayList;

      ArrayList users = new ArrayList();
      users.add("roleAnonymous");

      return users;

        CommentAdd your comment...