Hi Team,
I’m facing the below problem in flowable.
I used a timer(boundary timer event) from one task(test1), and if the task is not completed in 20s, it will move to a task called Test2 instead of Test3. But during this timer event triggered, the task are created in the Engine, but the listener is not able to find the created new task.
I’m using springboot application and the code is as below.
public class CreateTaskListener implements FlowableEventListener
{
@Override
public void onEvent(FlowableEvent event)
{
if (event instanceof FlowableEngineEntityEvent) {
System.out.println(event.getType());
if (event.getType() == FlowableEngineEventType.TASK_CREATED) {
TaskEntity task = (TaskEntity) ((FlowableEngineEntityEvent) event).getEntity();
try {
restClient rest = new restClient("api-env");
rest.createTask(task);
} catch (Exception e) {
e.printStackTrace();
}
}
}
}