Assigning involved users to a Process Instance

Hi,

We are migrating from Activiti version 7.0.0 to Camunda - Spring + Cockpit (BPM 7.10)

One of our old endpoints was responsible for taking a list of user Ids and assigning them to the given process instance id like so.

  public void addInvolvedUsersToProcess(List<String> involvedUsers, String workflowProcessId) {
    involvedUsers.forEach(userId ->
        runtimeService.addUserIdentityLink(workflowProcessId, userId, IdentityLinkType.PARTICIPANT)
    );
  }

I am trying to do the same with Camunda but there isn’t a method for addUserIdentityLink in the RuntimeService interface.

How can I add list of involved users to a process instance with Camunda?

The reason I need this is so we can query at a later stage for users who are involved but do not have an active task currently.

Thanks

Any ideas or suggestions?

Thanks

Hi @CamundaCommando,

In Camunda you have to do this on the task level. Here is the REST api: https://docs.camunda.org/manual/7.10/reference/rest/task/identity-links/

Java-API is available, too.

Hope this helps, Ingo