She
She

Reputation: 408

Is a subprocess required in the activiti diagram for this use case?

Use case Description: Person1 starts the workflow assigning user tasks to multiple assignees (parallelly) , similarly, those assignees assign user task to multiple assignees.

Confusion: Is a subprocess required for this case?

Activity Diagram Designed by me

Upvotes: 0

Views: 286

Answers (1)

DrAverage
DrAverage

Reputation: 81

First of all i don't think the diagram you provide is a valid BPMN definition, you can't make a sequence flow that goes to a start event.

Is a subprocess required for this case?

It's not required but you can use it. the main reasons to use a sub-process:

  • For clarity purposes: sub-processes make it easier to communicate you process to your clients.
  • Reusability : You can reuse the sub-process logic in another process.
  • Events seperation : When creating a sub-process you are also creating a new scope for events.
  • Looping* : You can make your sub-process repeating until it reaches a specific a condition, just like a looping task.
  • Multiple instances* : You can use sub-process when you want to allow multiple execution in parallel.

P.S: Looping and Multiple instances are techniques that are also achievable using simple tasks, but if the process is fairly complex, using sub-process will be a better approach for maintenance and clarity reasons.

Upvotes: 4

Related Questions