Hi folks,
Is it possible to use a Java Class in a conditional Start event? I have to execute a SQL command to load a field from the database table and check it to start the process. Or is there an alternative way to check a specific condition before I start a process? The process is depending on another process.
Best wishes
@Onur-Erdogan You can configure execution listener for the conditional start event with event type as “Start” event like below:
When the condition is met, new process instance will be created and the listeners (if any) will be executed.
1 Like
Hi @Onur-Erdogan,
Conditional start event wouldn’t serve your need.
You can implement your validity check logic as an execution listener configured to get triggered on end event of a none start event. A Java exception to be thrown from within the execution listener in case of a false value is returned (the loaded field’s value is considered as a falsy value).
1 Like
Hi @Onur-Erdogan,
I read your question again and I realised that your need is to process falsy value without throwing errors so I believe that modeling your logic is much better.
You can implement your check validity logic as service task followed by two paths, the normal path and a falsy path with end event to end the process.
1 Like