|
|
@@ -13,12 +13,14 @@ import com.ningdatech.pmapi.projectlib.service.IProjectInstService; |
|
|
|
import com.wflow.contants.ProcessConstant; |
|
|
|
import com.wflow.workflow.bean.dto.ProcessInstanceUserDto; |
|
|
|
import com.wflow.workflow.bean.dto.TodoCenterListReqDTO; |
|
|
|
import com.wflow.workflow.enums.ProcessHandlerEnum; |
|
|
|
import org.flowable.engine.HistoryService; |
|
|
|
import org.flowable.engine.RuntimeService; |
|
|
|
import org.flowable.engine.history.HistoricActivityInstance; |
|
|
|
import org.flowable.engine.runtime.ActivityInstance; |
|
|
|
import org.flowable.task.api.history.HistoricTaskInstance; |
|
|
|
import org.flowable.task.service.history.NativeHistoricTaskInstanceQuery; |
|
|
|
import org.flowable.variable.api.history.HistoricVariableInstance; |
|
|
|
import org.junit.Test; |
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@@ -116,4 +118,16 @@ public class InstanceTest extends AppTests { |
|
|
|
|
|
|
|
System.out.println(taskInstanceList.size()); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void test2(){ |
|
|
|
// 获取节点处理结果 |
|
|
|
// Map<String, ProcessHandlerEnum> varMap = historyService.createHistoricVariableInstanceQuery() |
|
|
|
// .processInstanceId("e99fe24c-d21c-11ed-af5d-02426daa406d") |
|
|
|
// .variableNameLike("approve_%") |
|
|
|
// .list().stream() |
|
|
|
// .collect(Collectors.toMap(HistoricVariableInstance::getVariableName, v -> (ProcessHandlerEnum) v.getValue())); |
|
|
|
runtimeService.removeVariable("564102ce-d1ff-11ed-b694-02424b2b849f","approve_7d2a191a-d1ff-11ed-b694-02424b2b849f"); |
|
|
|
System.out.println(1); |
|
|
|
} |
|
|
|
} |