Java Code Examples for org.activiti.engine.identity.User#getFirstName()
The following examples show how to use
org.activiti.engine.identity.User#getFirstName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TraceProcessController.java From activiti-in-action-codes with Apache License 2.0 | 6 votes |
/** * 获取当前节点信息 * * @return */ private void setCurrentTaskInfo(String executionId, String activityId, Map<String, Object> vars) { Task currentTask = taskService.createTaskQuery().executionId(executionId) .taskDefinitionKey(activityId).singleResult(); logger.debug("current task for processInstance: {}", ToStringBuilder.reflectionToString(currentTask)); if (currentTask == null) return; String assignee = currentTask.getAssignee(); if (assignee != null) { User assigneeUser = identityService.createUserQuery().userId(assignee).singleResult(); String userInfo = assigneeUser.getFirstName() + " " + assigneeUser.getLastName() + "/" + assigneeUser.getId(); vars.put("当前处理人", userInfo); vars.put("创建时间", new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(currentTask.getCreateTime())); } else { vars.put("任务状态", "未签收"); } }
Example 2
Source File: TraceProcessController.java From activiti-in-action-codes with Apache License 2.0 | 6 votes |
/** * 获取当前节点信息 * * @return */ private void setCurrentTaskInfo(String executionId, String activityId, Map<String, Object> vars) { Task currentTask = taskService.createTaskQuery().executionId(executionId) .taskDefinitionKey(activityId).singleResult(); logger.debug("current task for processInstance: {}", ToStringBuilder.reflectionToString(currentTask)); if (currentTask == null) return; String assignee = currentTask.getAssignee(); if (assignee != null) { User assigneeUser = identityService.createUserQuery().userId(assignee).singleResult(); String userInfo = assigneeUser.getFirstName() + " " + assigneeUser.getLastName() + "/" + assigneeUser.getId(); vars.put("当前处理人", userInfo); vars.put("创建时间", new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(currentTask.getCreateTime())); } else { vars.put("任务状态", "未签收"); } }
Example 3
Source File: TraceProcessController.java From activiti-in-action-codes with Apache License 2.0 | 6 votes |
/** * 获取当前节点信息 * * @return */ private void setCurrentTaskInfo(String executionId, String activityId, Map<String, Object> vars) { Task currentTask = taskService.createTaskQuery().executionId(executionId) .taskDefinitionKey(activityId).singleResult(); logger.debug("current task for processInstance: {}", ToStringBuilder.reflectionToString(currentTask)); if (currentTask == null) return; String assignee = currentTask.getAssignee(); if (assignee != null) { User assigneeUser = identityService.createUserQuery().userId(assignee).singleResult(); String userInfo = assigneeUser.getFirstName() + " " + assigneeUser.getLastName() + "/" + assigneeUser.getId(); vars.put("当前处理人", userInfo); vars.put("创建时间", new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(currentTask.getCreateTime())); } else { vars.put("任务状态", "未签收"); } }
Example 4
Source File: TraceProcessController.java From activiti-in-action-codes with Apache License 2.0 | 6 votes |
/** * 获取当前节点信息 * * @return */ private void setCurrentTaskInfo(String executionId, String activityId, Map<String, Object> vars) { Task currentTask = taskService.createTaskQuery().executionId(executionId) .taskDefinitionKey(activityId).singleResult(); logger.debug("current task for processInstance: {}", ToStringBuilder.reflectionToString(currentTask)); if (currentTask == null) return; String assignee = currentTask.getAssignee(); if (assignee != null) { User assigneeUser = identityService.createUserQuery().userId(assignee).singleResult(); String userInfo = assigneeUser.getFirstName() + " " + assigneeUser.getLastName() + "/" + assigneeUser.getId(); vars.put("当前处理人", userInfo); vars.put("创建时间", new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(currentTask.getCreateTime())); } else { vars.put("任务状态", "未签收"); } }
Example 5
Source File: TraceProcessController.java From activiti-in-action-codes with Apache License 2.0 | 6 votes |
/** * 获取当前节点信息 * * @return */ private void setCurrentTaskInfo(String executionId, String activityId, Map<String, Object> vars) { Task currentTask = taskService.createTaskQuery().executionId(executionId) .taskDefinitionKey(activityId).singleResult(); logger.debug("current task for processInstance: {}", ToStringBuilder.reflectionToString(currentTask)); if (currentTask == null) return; String assignee = currentTask.getAssignee(); if (assignee != null) { User assigneeUser = identityService.createUserQuery().userId(assignee).singleResult(); String userInfo = assigneeUser.getFirstName() + " " + assigneeUser.getLastName() + "/" + assigneeUser.getId(); vars.put("当前处理人", userInfo); vars.put("创建时间", new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(currentTask.getCreateTime())); } else { vars.put("任务状态", "未签收"); } }
Example 6
Source File: WorkflowTraceService.java From maven-framework-project with MIT License | 5 votes |
/** * 设置当前处理人信息 * @param vars * @param currentTask */ private void setCurrentTaskAssignee(Map<String, Object> vars, Task currentTask) { String assignee = currentTask.getAssignee(); if (assignee != null) { User assigneeUser = identityService.createUserQuery().userId(assignee).singleResult(); String userInfo = assigneeUser.getLastName() + " " + assigneeUser.getFirstName(); vars.put("当前处理人", userInfo); } }