Hi,
Is there any way to implement an exclusive gate way right after start event?
For example, I have start, task1, task2. When started, the flow could be go to task1 then task2, or directly go to task2 without task1.
I did not find how to configure 2 outcome of start event, so have no idea about how to proceed.
When user click “Start Event”, I need the user to choose next user task. This “next task” can only be decided when the user click “start event”, is it possible?
Or if it can support two start events, it is also ok, is this possible?
Or make the user task after “start event” optional, is it possible?
Create a custom start process form. On that form add a component that will be used for a decision.
Save the decision in a process variable when the process is started (a custom start process form example can be found here, a desription is here)
put an exclusive gateway right after the start event and make this gateway analyze the process variable value you’ve passed from your custom start form.
Thanks Max.
Unfortunely, we are using cuba6.6.4; I tried to build your example with cuba 6.9.0, but failed to download some jars like jquery-file-upload-9.12.1.cuba.0.jar which required by cuba-web:6.9.0, I did not find any maven repo which contains it. I did not find it even from cuba repo.
Even I use the repo included by default in your project, there are many failures about can’t download jars.
I meant another thing in this sample. Take a look how process variable automaticApprovalPeriod is set in the form. Later this variable is used in the model. You may use a value of the process variable from the start form in a condition for the flow nodes of your exclusive gateway.
start process goes to task1 then task2; I can cancle task1 by signal, right? By adding a boundry signal event to task1; if got the signal, cancel task1, else, task1 behave as normal. Is this doable?
But I did not find how to send signal to task1 from the mannual book - i m using cuba6.6.4. Do you have guide or example?