How can I suspend a task in flowable using Java APIs?

I want to set the suspend flag to true for some tasks in flowable.