Hi Team,
I have an scenario to start process instances for below cases,
- Whenever email receives
- Manual start thru form
Email receiver should start only one time to read mails asynchronously while starting process for the deployed process definition. Once email flow started, process should starts with embedded form for manual process.
How to achieve this? I tried with conditional start event with start form but not able to start process.
Please share your suggestions.
Any help on above one?multistartevent.bpmn (5.6 KB)
Hi
could you explain a bit more about the scenario? Its Ambiguous
Hi @mrdavoodi64 ,
Thanks for the reply.
I have an scenario, where only one process should run to support both manual and email enquiries. Once I deployed diagram in engine and start first instance it should starts email-connector to fetch enquiries from email. Once this email-connector started, if user starts second and third … instances it should start manual enquiry flow configured in start event with embedded form.
Is there any way to set default start event for an process diagram?
Currently I am using 7.13 camunda engine and it doesnt have supports for conditional start event with form.
Any help to resolve above usecase?
Conditional start event can not have form based on bpmn notation. I think you should use service task for email-connector and start the process manually
Yes @mrdavoodi64 as per @StephenOTT conditional start event form not implemented in current(7.13) camunda engine. May be it will be implemented in upcoming releases.
Yes I am using service/connector implementation for ‘Email-Connector’ activity. My requirement is after deploying diagram into engine first instance should start ‘Email-Connector’ flow and subsequent process instance should go to manual flow with start form.
Hi @Parthasarathi_Muthai ,
You can add a new user task after start and put your form there, every time when an email is received automatically the token will go to the form stage and if you want to initiate from none start event, that will also land on the form task.
Other option is to add a service task after email connector and use runtimeservice to initiate the process.
https://docs.camunda.org/javadoc/camunda-bpm-platform/7.3/org/camunda/bpm/engine/RuntimeService.html
I am not sure whether it will pick up the running instance or create a new instance, but there are many overloaded methods, you can try .
Hope it Helps!
Thanks,
Anmol
Thanks @Anmol_Gupta
With your approach flow will create an user task with embedded form, then user should got to ‘Tasks’ page to complete it. But here we want to show the enquiry form while starting process instance with start event embedded form. I will try with any other option is there to achieve this.