REQ-3502: rename elements to precise names
This commit is contained in:
parent
19b05e6043
commit
fbb01192f2
@ -138,9 +138,11 @@ public class TodoSyncCardService {
|
|||||||
request.setSubBizCode(todo.getSubBizCode());
|
request.setSubBizCode(todo.getSubBizCode());
|
||||||
request.setReceivers(Sets.newHashSet(PeerPerson.create(
|
request.setReceivers(Sets.newHashSet(PeerPerson.create(
|
||||||
todo.getExecutorPersonId(), todo.getOuId(), todo.getOrgId())));
|
todo.getExecutorPersonId(), todo.getOuId(), todo.getOrgId())));
|
||||||
request.setBizState(business.getBizCategory() == BizCategoryEnum.FLOW
|
if (todo.getState() != PendingMessageStateEnum.PROCESSING) {
|
||||||
? determineCardBizStateForFlowTodo(business)
|
request.setBizState(business.getBizCategory() == BizCategoryEnum.FLOW
|
||||||
: determineCardBizStateForBizTodo(todo));
|
? determineCardBizStateForFlowTodo(business)
|
||||||
|
: determineCardBizStateForBizTodo(todo));
|
||||||
|
}
|
||||||
request.setCardCompleted(todo.getState() == PendingMessageStateEnum.COMPLETED);
|
request.setCardCompleted(todo.getState() == PendingMessageStateEnum.COMPLETED);
|
||||||
TodoRequestContext ctx = TodoRequestContext
|
TodoRequestContext ctx = TodoRequestContext
|
||||||
.create("updateCardState", event)
|
.create("updateCardState", event)
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import java.util.Optional;
|
|||||||
* @author yanglin
|
* @author yanglin
|
||||||
*/
|
*/
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
class FlowTodoCardButtonInterceptor implements CardButtonInterceptor {
|
class WorkflowTodoCardButtonInterceptor implements CardButtonInterceptor {
|
||||||
|
|
||||||
private final Todo todo;
|
private final Todo todo;
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ import javax.annotation.Nullable;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
@Component
|
@Component
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
class FlowTodoCardButtonInterceptorFactory implements CardButtonInterceptorFactory {
|
class WorkflowTodoCardButtonInterceptorFactory implements CardButtonInterceptorFactory {
|
||||||
|
|
||||||
private final TodoDao todoDao;
|
private final TodoDao todoDao;
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ class FlowTodoCardButtonInterceptorFactory implements CardButtonInterceptorFacto
|
|||||||
log.warn("todo not found. identityCode={}", identityCode);
|
log.warn("todo not found. identityCode={}", identityCode);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return new FlowTodoCardButtonInterceptor(todo);
|
return new WorkflowTodoCardButtonInterceptor(todo);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user