Required guidance in process diagram

Hello all,

I have a doubt regarding the work flow/process diagram

Workflow or Process diagram
A->B->C->D

How do I skip B task in community edition?
How to assign/move A or B to D on cancel of A or B task respectively.

Thanks & Regards
Harshal Temkar

Hi Harshal,

if the behavior is a part of the regular process then you should model it, e.g. using a message / conditional / timer boundary event. Otherwise, you can use the Process Instance Modification Api. Note that only the integration in Cockpit is an enterprise feature.

Does this answer your question?

Best regards,
Philipp

Hello Philipp

Thanks for your reply.

I wanted to know
A->B->C->D is my process.
I am in task A and w.r.t. variable value can I move directly from A->D. If possible could you explain with an example.

Best Regards
Harshal Temkar

Hi Harshal,

as you can read in the documentation, you can use the Process Instance Modification Api to move the execution token into another activity:

ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().singleResult();
runtimeService.createProcessInstanceModification(processInstance.getId())
  .startBeforeActivity("D")
  .cancelAllForActivity("A")
  .execute();

Note that you should use this Api only in case an incident.

Does this help you?

Best regards,
Philipp