|
|
@@ -6,6 +6,7 @@ import com.wflow.workflow.bean.dto.ProcessInstanceUserDto; |
|
|
|
import org.flowable.engine.HistoryService; |
|
|
|
import org.flowable.engine.RuntimeService; |
|
|
|
import org.flowable.engine.history.HistoricActivityInstance; |
|
|
|
import org.flowable.engine.runtime.ActivityInstance; |
|
|
|
import org.junit.Test; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
|
@@ -40,7 +41,17 @@ public class InstanceTest extends AppTests { |
|
|
|
.processInstanceId("085af7ef-d133-11ed-a3f6-02426daa406d").finished() |
|
|
|
.activityType("userTask") |
|
|
|
.orderByHistoricActivityInstanceEndTime().asc().list(); |
|
|
|
|
|
|
|
HistoricActivityInstance historicActivityInstance = finished.get(0); |
|
|
|
System.out.println(finished); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testRuntime(){ |
|
|
|
//如果有已经被审核过的 节点 |
|
|
|
List<ActivityInstance> userTask = runtimeService.createActivityInstanceQuery() |
|
|
|
.processInstanceId("1709ebe3-d148-11ed-9351-02426daa406d") |
|
|
|
.activityType("userTask") |
|
|
|
.orderByActivityInstanceStartTime().asc().list(); |
|
|
|
System.out.println(userTask); |
|
|
|
} |
|
|
|
} |