I have created jbpmn workflow to create workitem and intention is that need to assign task to individual user, can anybody please tell me how i can access any java class objects inside user task of jbpmn?

没有正确的解决方案

其他提示

you can always access java objects by passing as parameter to jBPM process and use it in jBPM process. To assign dynamic user you can pass variable from java file. If your requirement is to use that changed value in java file too, you can always use global object(shared between java file and jBPM process).

There are ways to assign task to user.

  1. Add user in Actors in properties of task.
  2. Add through java code: After getting task in code user dynamically as below.

    task.getPeopleAssignments().getPotentialOwners()
                .add(new User(assignTo));
    
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top