Fluent Builder Multi Instance User task

Hi,

I was looking for some example to configure User task with multi instance properties like Loop Cardinality, Completion Condition etc.,

In forms and git code i saw only for created BPMN. Is there any sample.

Thanks in advance.

@Mano do you mean something like this?

.userTask("perform-task")
  .name("Perform task")
  .camundaCandidateGroups("my-group")
  .multiInstance()
    .camundaCollection(String.format("${%s}", "collection-var"))
    .camundaElementVariable("collection-item")
  .multiInstanceDone() 

This example uses a collection, but the other options should work similarly.

2 Likes

@tiesebarrell Yeah exactly. Thanks for the response. I was just trying it with UserTask instead of UserTaskBuilder.