Object valueObject=Context.getAbstractScriptLanguageMgmt().getVariable("selectInfo");
boolean succecd = false;
if(valueObject != null){
TaskDefinition taskDefinition = assignable.getTaskDefinition();
String nodeId = taskDefinition.getUserTaskNode().getId();
@SuppressWarnings("unused")
String taskId=assignable.getId();
List<Map<String, String>> selectInfoList = (List<Map<String, String>> )valueObject;
for(Map<String, String> seleInfoMap : selectInfoList){
// String _taskId = seleInfoMap.get("taskId");
String _nodeId = seleInfoMap.get("nodeId");
String _processer = seleInfoMap.get("processer");
if(nodeId.equals(_nodeId)){
assignable.setAssignee(_processer);
succecd = true;
break;
}
}
}
if(!succecd){
TaskDefinition taskDefinition=assignable.getTaskDefinition();
List<TaskAssigneeDefinitionTo> taskAssigneeDefinitionTos = taskDefinition.getTaskAssigneeDefinitionTos();
for (TaskAssigneeDefinitionTo taskAssigneeDefinitionTo : taskAssigneeDefinitionTos) {
if (taskAssigneeDefinitionTo.getUserIdExpression() != null) {
List<String> resultList = executionExpression(taskAssigneeDefinitionTo.getUserIdExpression(), executionContext);